@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.
- package/components/_helpers/anchor.js +1 -1
- package/components/_helpers/avatar-info.js +1 -1
- package/components/_helpers/heading.js +2 -2
- package/components/_helpers/icon-svg.js +1 -1
- package/components/_helpers/legacy-table.js +3 -0
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/table.js +1 -1
- package/components/_helpers/theme.js +50 -38
- package/components/alert/alert.js +2 -2
- package/components/alert-service/alert-service.js +1 -1
- package/components/auth/auth-core.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +2 -2
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +2 -2
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.js +1 -1
- package/components/button/button.js +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/collapse/collapse-content.js +5 -5
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +4 -4
- package/components/collapsible-group/collapsible-group.d.ts +20 -0
- package/components/collapsible-group/collapsible-group.js +382 -0
- package/components/components/util-stories.js +63 -1
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +2 -2
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-help/control-help.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.js +1 -2
- package/components/date-picker/date-popup.js +4 -5
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.js +1 -1
- package/components/date-picker/months.js +4 -5
- package/components/date-picker/use-scroll-behavior.js +45 -44
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +6 -7
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +3 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +68 -63
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +127 -113
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/expand/collapsible-group.d.ts +8 -16
- package/components/expand/collapsible-group.js +34 -364
- package/components/footer/footer.js +1 -1
- package/components/global/compose-refs.d.ts +2 -1
- package/components/global/compose-refs.js +44 -8
- package/components/global/create-stateful-context.js +11 -11
- package/components/global/focus-sensor-hoc.js +1 -0
- package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
- package/components/global/focus-with-temporary-tabindex.js +23 -0
- package/components/global/intersection-observer-context.d.ts +31 -11
- package/components/global/intersection-observer-context.js +55 -57
- package/components/global/is-within-interactive-element.d.ts +6 -0
- package/components/global/is-within-interactive-element.js +11 -0
- package/components/global/is-within-navigable-element.d.ts +6 -0
- package/components/global/is-within-navigable-element.js +11 -0
- package/components/global/parse-css-duration.d.ts +5 -0
- package/components/global/parse-css-duration.js +14 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +11 -24
- package/components/global/schedule-with-cleanup.d.ts +12 -0
- package/components/global/schedule-with-cleanup.js +36 -0
- package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
- package/components/{legacy-table/selection.js → global/table-selection.js} +4 -4
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +2 -2
- package/components/header/header-icon.js +1 -1
- package/components/header/header.js +2 -2
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.js +1 -1
- 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/heading/heading.js +4 -4
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +1 -1
- package/components/internal/column-animation.js +133 -0
- package/components/internal/table-header.js +1109 -0
- package/components/internal/virtual-items.js +353 -0
- package/components/island/adaptive-island-hoc.js +3 -3
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +27 -18
- package/components/island/header.js +1 -1
- package/components/island/island.js +1 -1
- package/components/legacy-table/cell.js +1 -1
- package/components/legacy-table/header-cell.js +4 -4
- package/components/legacy-table/header.js +2 -2
- package/components/legacy-table/multitable.d.ts +1 -1
- package/components/legacy-table/row-with-focus-sensor.js +2 -2
- package/components/legacy-table/row.d.ts +1 -1
- package/components/legacy-table/row.js +4 -4
- package/components/legacy-table/selection-adapter.d.ts +3 -3
- package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
- package/components/legacy-table/simple-table.d.ts +2 -2
- package/components/legacy-table/simple-table.js +4 -4
- package/components/legacy-table/smart-table.d.ts +5 -5
- package/components/legacy-table/smart-table.js +5 -5
- package/components/legacy-table/table.js +2 -2
- package/components/list/list-item.js +1 -1
- package/components/list/list-users-groups-source.js +1 -1
- package/components/list/list.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +2 -2
- package/components/markdown/markdown.js +2 -2
- package/components/message/message.js +2 -2
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +1 -1
- package/components/popup/popup.d.ts +2 -0
- package/components/popup/popup.js +6 -2
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +32 -28
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/query-assist/query-assist-suggestions.js +1 -1
- package/components/query-assist/query-assist.d.ts +3 -1
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio-item.d.ts +3 -3
- package/components/radio/radio-item.js +32 -18
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +2 -2
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/chevron-button.js +1 -1
- package/components/select/select-filter.js +1 -1
- package/components/select/select-popup.d.ts +1 -1
- package/components/select/select-popup.js +1 -1
- package/components/select/select.d.ts +4 -2
- package/components/select/select.js +1 -1
- package/components/slider/slider.js +100 -96
- package/components/storage/storage-local.js +1 -1
- package/components/storage/storage.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +83 -80
- package/components/table/default-item-renderer.d.ts +35 -11
- package/components/table/default-item-renderer.js +118 -171
- package/components/table/internal/column-animation.d.ts +16 -0
- package/components/table/internal/table-header.d.ts +4 -0
- package/components/table/internal/virtual-items.d.ts +34 -0
- package/components/table/item-virtualization.d.ts +35 -0
- package/components/table/item-virtualization.js +71 -0
- package/components/table/table-const.d.ts +40 -6
- package/components/table/table-const.js +15 -6
- package/components/table/table-primitives.d.ts +21 -0
- package/components/table/table-primitives.js +123 -0
- package/components/table/table-props.d.ts +280 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.d.ts +205 -224
- package/components/table/table.js +356 -14
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tags-input/tags-input.js +1 -1
- package/components/tags-list/tags-list.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +3 -3
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -29
- package/components/user-agreement/service.js +8 -8
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +1 -1
- 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 +1 -1
- package/components/util-stories.d.ts +26 -0
- package/package.json +7 -7
- package/components/_helpers/table2.js +0 -3
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -93
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -9
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -44
- package/components/table/table-base.d.ts +0 -24
- package/components/table/table-base.js +0 -311
- package/components/table/table-component.d.ts +0 -53
- package/components/table/table-component.js +0 -316
- package/components/table/table-virtualize.d.ts +0 -32
- package/components/table/table-virtualize.js +0 -330
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { c } from 'react
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useEffect } from 'react';
|
|
3
|
+
import { useEffectEvent, useLayoutEffect, useEffect } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Heading, { Levels } from '../heading/heading.js';
|
|
6
6
|
import { Button } from '../button/button.js';
|
|
7
7
|
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
8
8
|
import getUID from '../global/get-uid.js';
|
|
9
9
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
10
|
-
import useEventCallback from '../global/use-event-callback.js';
|
|
11
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
12
11
|
import 'util-deprecate';
|
|
13
12
|
import '../_helpers/heading.js';
|
|
@@ -39,12 +38,12 @@ var styles = {"editableHeading":"ring-editable-heading-editableHeading","fullSiz
|
|
|
39
38
|
function noop() {}
|
|
40
39
|
// eslint-disable-next-line complexity
|
|
41
40
|
const EditableHeading = props => {
|
|
42
|
-
const $ = c(
|
|
43
|
-
if ($[0] !== "
|
|
44
|
-
for (let $i = 0; $i <
|
|
41
|
+
const $ = c(134);
|
|
42
|
+
if ($[0] !== "69c208dee49270703e9eadd0182734d1dca44cb4ecb35c235511c58f936a5946") {
|
|
43
|
+
for (let $i = 0; $i < 134; $i += 1) {
|
|
45
44
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
46
45
|
}
|
|
47
|
-
$[0] = "
|
|
46
|
+
$[0] = "69c208dee49270703e9eadd0182734d1dca44cb4ecb35c235511c58f936a5946";
|
|
48
47
|
}
|
|
49
48
|
let children;
|
|
50
49
|
let className;
|
|
@@ -275,12 +274,16 @@ const EditableHeading = props => {
|
|
|
275
274
|
t21 = $[56];
|
|
276
275
|
}
|
|
277
276
|
const inputClasses = t21;
|
|
278
|
-
const stretch = _temp2;
|
|
279
277
|
let t22;
|
|
280
278
|
if ($[57] !== multiline) {
|
|
281
|
-
t22 =
|
|
282
|
-
if (multiline &&
|
|
283
|
-
|
|
279
|
+
t22 = el => {
|
|
280
|
+
if (multiline && el && el.scrollHeight >= el.clientHeight) {
|
|
281
|
+
el.style.height = "0";
|
|
282
|
+
const {
|
|
283
|
+
paddingTop,
|
|
284
|
+
paddingBottom
|
|
285
|
+
} = window.getComputedStyle(el);
|
|
286
|
+
el.style.height = `${el.scrollHeight - parseFloat(paddingTop) - parseFloat(paddingBottom)}px`;
|
|
284
287
|
}
|
|
285
288
|
};
|
|
286
289
|
$[57] = multiline;
|
|
@@ -291,10 +294,10 @@ const EditableHeading = props => {
|
|
|
291
294
|
const checkValue = t22;
|
|
292
295
|
let t23;
|
|
293
296
|
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
294
|
-
t23 =
|
|
295
|
-
const scrollHeight =
|
|
296
|
-
const clientHeight =
|
|
297
|
-
const scrollTop =
|
|
297
|
+
t23 = el_0 => {
|
|
298
|
+
const scrollHeight = el_0.scrollHeight || 0;
|
|
299
|
+
const clientHeight = el_0.clientHeight || 0;
|
|
300
|
+
const scrollTop = el_0.scrollTop || 0;
|
|
298
301
|
setIsScrolledToBottom(scrollHeight - clientHeight <= scrollTop);
|
|
299
302
|
setIsOverflow(scrollHeight > clientHeight);
|
|
300
303
|
};
|
|
@@ -326,7 +329,7 @@ const EditableHeading = props => {
|
|
|
326
329
|
} else {
|
|
327
330
|
t25 = $[62];
|
|
328
331
|
}
|
|
329
|
-
const onMouseMove =
|
|
332
|
+
const onMouseMove = useEffectEvent(t25);
|
|
330
333
|
let t26;
|
|
331
334
|
if ($[63] !== disabled || $[64] !== isInSelectionMode || $[65] !== isMouseDown || $[66] !== onEdit) {
|
|
332
335
|
t26 = () => {
|
|
@@ -344,7 +347,7 @@ const EditableHeading = props => {
|
|
|
344
347
|
} else {
|
|
345
348
|
t26 = $[67];
|
|
346
349
|
}
|
|
347
|
-
const onMouseUp =
|
|
350
|
+
const onMouseUp = useEffectEvent(t26);
|
|
348
351
|
let t27;
|
|
349
352
|
if ($[68] !== checkValue || $[69] !== onFocus) {
|
|
350
353
|
t27 = e => {
|
|
@@ -400,8 +403,27 @@ const EditableHeading = props => {
|
|
|
400
403
|
const onInputBlur = t30;
|
|
401
404
|
let t31;
|
|
402
405
|
let t32;
|
|
403
|
-
if ($[78] !==
|
|
406
|
+
if ($[78] !== checkValue || $[79] !== isEditing || $[80] !== multiline) {
|
|
404
407
|
t31 = () => {
|
|
408
|
+
if (multiline && isEditing && textAreaRef.current) {
|
|
409
|
+
checkValue(textAreaRef.current);
|
|
410
|
+
checkOverflow(textAreaRef.current);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
t32 = [checkOverflow, checkValue, isEditing, multiline];
|
|
414
|
+
$[78] = checkValue;
|
|
415
|
+
$[79] = isEditing;
|
|
416
|
+
$[80] = multiline;
|
|
417
|
+
$[81] = t31;
|
|
418
|
+
$[82] = t32;
|
|
419
|
+
} else {
|
|
420
|
+
t31 = $[81];
|
|
421
|
+
t32 = $[82];
|
|
422
|
+
}
|
|
423
|
+
useLayoutEffect(t31, t32);
|
|
424
|
+
let t33;
|
|
425
|
+
if ($[83] !== onMouseMove || $[84] !== onMouseUp) {
|
|
426
|
+
t33 = () => {
|
|
405
427
|
window.addEventListener("mousemove", onMouseMove);
|
|
406
428
|
window.addEventListener("mouseup", onMouseUp);
|
|
407
429
|
return () => {
|
|
@@ -409,19 +431,23 @@ const EditableHeading = props => {
|
|
|
409
431
|
window.removeEventListener("mouseup", onMouseUp);
|
|
410
432
|
};
|
|
411
433
|
};
|
|
412
|
-
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[80] = t31;
|
|
416
|
-
$[81] = t32;
|
|
434
|
+
$[83] = onMouseMove;
|
|
435
|
+
$[84] = onMouseUp;
|
|
436
|
+
$[85] = t33;
|
|
417
437
|
} else {
|
|
418
|
-
|
|
419
|
-
t32 = $[81];
|
|
438
|
+
t33 = $[85];
|
|
420
439
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
440
|
+
let t34;
|
|
441
|
+
if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
|
|
442
|
+
t34 = [];
|
|
443
|
+
$[86] = t34;
|
|
444
|
+
} else {
|
|
445
|
+
t34 = $[86];
|
|
446
|
+
}
|
|
447
|
+
useEffect(t33, t34);
|
|
448
|
+
let t35;
|
|
449
|
+
if ($[87] !== autoFocus || $[88] !== children || $[89] !== dataTest || $[90] !== disabled || $[91] !== headingClasses || $[92] !== inputClasses || $[93] !== isEditing || $[94] !== isSaving || $[95] !== isScrolledToBottom || $[96] !== isShortcutsDisabled || $[97] !== level || $[98] !== maxInputRows || $[99] !== multiline || $[100] !== onChange || $[101] !== onInputBlur || $[102] !== onInputChange || $[103] !== onInputFocus || $[104] !== onInputScroll || $[105] !== restProps || $[106] !== shortcutsMap || $[107] !== shortcutsScope || $[108] !== size) {
|
|
450
|
+
t35 = !disabled && isEditing ? /*#__PURE__*/jsxs(Fragment, {
|
|
425
451
|
children: [/*#__PURE__*/jsx(Shortcuts, {
|
|
426
452
|
map: shortcutsMap,
|
|
427
453
|
scope: shortcutsScope,
|
|
@@ -468,44 +494,44 @@ const EditableHeading = props => {
|
|
|
468
494
|
children: children
|
|
469
495
|
})
|
|
470
496
|
});
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
497
|
+
$[87] = autoFocus;
|
|
498
|
+
$[88] = children;
|
|
499
|
+
$[89] = dataTest;
|
|
500
|
+
$[90] = disabled;
|
|
501
|
+
$[91] = headingClasses;
|
|
502
|
+
$[92] = inputClasses;
|
|
503
|
+
$[93] = isEditing;
|
|
504
|
+
$[94] = isSaving;
|
|
505
|
+
$[95] = isScrolledToBottom;
|
|
506
|
+
$[96] = isShortcutsDisabled;
|
|
507
|
+
$[97] = level;
|
|
508
|
+
$[98] = maxInputRows;
|
|
509
|
+
$[99] = multiline;
|
|
510
|
+
$[100] = onChange;
|
|
511
|
+
$[101] = onInputBlur;
|
|
512
|
+
$[102] = onInputChange;
|
|
513
|
+
$[103] = onInputFocus;
|
|
514
|
+
$[104] = onInputScroll;
|
|
515
|
+
$[105] = restProps;
|
|
516
|
+
$[106] = shortcutsMap;
|
|
517
|
+
$[107] = shortcutsScope;
|
|
518
|
+
$[108] = size;
|
|
519
|
+
$[109] = t35;
|
|
494
520
|
} else {
|
|
495
|
-
|
|
521
|
+
t35 = $[109];
|
|
496
522
|
}
|
|
497
|
-
let
|
|
498
|
-
if ($[
|
|
499
|
-
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
523
|
+
let t36;
|
|
524
|
+
if ($[110] !== isEditing || $[111] !== renderMenu) {
|
|
525
|
+
t36 = !isEditing && renderMenu();
|
|
526
|
+
$[110] = isEditing;
|
|
527
|
+
$[111] = renderMenu;
|
|
528
|
+
$[112] = t36;
|
|
503
529
|
} else {
|
|
504
|
-
|
|
530
|
+
t36 = $[112];
|
|
505
531
|
}
|
|
506
|
-
let
|
|
507
|
-
if ($[
|
|
508
|
-
|
|
532
|
+
let t37;
|
|
533
|
+
if ($[113] !== embedded || $[114] !== isCancelDisabled || $[115] !== isEditing || $[116] !== isSaveDisabled || $[117] !== isSaving || $[118] !== onCancel || $[119] !== onSave || $[120] !== translations) {
|
|
534
|
+
t37 = isEditing && !embedded && /*#__PURE__*/jsxs(Fragment, {
|
|
509
535
|
children: [/*#__PURE__*/jsx(Button, {
|
|
510
536
|
className: styles.button,
|
|
511
537
|
primary: true,
|
|
@@ -520,72 +546,60 @@ const EditableHeading = props => {
|
|
|
520
546
|
children: translations.cancel
|
|
521
547
|
})]
|
|
522
548
|
});
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
$[
|
|
529
|
-
$[
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
549
|
+
$[113] = embedded;
|
|
550
|
+
$[114] = isCancelDisabled;
|
|
551
|
+
$[115] = isEditing;
|
|
552
|
+
$[116] = isSaveDisabled;
|
|
553
|
+
$[117] = isSaving;
|
|
554
|
+
$[118] = onCancel;
|
|
555
|
+
$[119] = onSave;
|
|
556
|
+
$[120] = translations;
|
|
557
|
+
$[121] = t37;
|
|
532
558
|
} else {
|
|
533
|
-
|
|
559
|
+
t37 = $[121];
|
|
534
560
|
}
|
|
535
|
-
let
|
|
536
|
-
if ($[
|
|
537
|
-
|
|
561
|
+
let t38;
|
|
562
|
+
if ($[122] !== classes || $[123] !== t35 || $[124] !== t36 || $[125] !== t37) {
|
|
563
|
+
t38 = /*#__PURE__*/jsxs("div", {
|
|
538
564
|
className: classes,
|
|
539
|
-
children: [
|
|
565
|
+
children: [t35, t36, t37]
|
|
540
566
|
});
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
567
|
+
$[122] = classes;
|
|
568
|
+
$[123] = t35;
|
|
569
|
+
$[124] = t36;
|
|
570
|
+
$[125] = t37;
|
|
571
|
+
$[126] = t38;
|
|
546
572
|
} else {
|
|
547
|
-
|
|
573
|
+
t38 = $[126];
|
|
548
574
|
}
|
|
549
|
-
let
|
|
550
|
-
if ($[
|
|
551
|
-
|
|
575
|
+
let t39;
|
|
576
|
+
if ($[127] !== error || $[128] !== isEditing || $[129] !== size) {
|
|
577
|
+
t39 = isEditing && error && /*#__PURE__*/jsx("div", {
|
|
552
578
|
className: classNames(styles.errorText, size !== Size.AUTO && inputStyles[`size${size}`]),
|
|
553
579
|
children: error
|
|
554
580
|
});
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
581
|
+
$[127] = error;
|
|
582
|
+
$[128] = isEditing;
|
|
583
|
+
$[129] = size;
|
|
584
|
+
$[130] = t39;
|
|
559
585
|
} else {
|
|
560
|
-
|
|
586
|
+
t39 = $[130];
|
|
561
587
|
}
|
|
562
|
-
let
|
|
563
|
-
if ($[
|
|
564
|
-
|
|
565
|
-
children: [
|
|
588
|
+
let t40;
|
|
589
|
+
if ($[131] !== t38 || $[132] !== t39) {
|
|
590
|
+
t40 = /*#__PURE__*/jsxs(Fragment, {
|
|
591
|
+
children: [t38, t39]
|
|
566
592
|
});
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
593
|
+
$[131] = t38;
|
|
594
|
+
$[132] = t39;
|
|
595
|
+
$[133] = t40;
|
|
570
596
|
} else {
|
|
571
|
-
|
|
597
|
+
t40 = $[133];
|
|
572
598
|
}
|
|
573
|
-
return
|
|
599
|
+
return t40;
|
|
574
600
|
};
|
|
575
|
-
var editableHeading = /*#__PURE__*/React.memo(EditableHeading);
|
|
576
601
|
function _temp() {
|
|
577
602
|
return null;
|
|
578
603
|
}
|
|
579
|
-
function _temp2(el) {
|
|
580
|
-
if (!el || !el.style) {
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
el.style.height = "0";
|
|
584
|
-
const {
|
|
585
|
-
paddingTop,
|
|
586
|
-
paddingBottom
|
|
587
|
-
} = window.getComputedStyle(el);
|
|
588
|
-
el.style.height = `${el.scrollHeight - parseFloat(paddingTop) - parseFloat(paddingBottom)}px`;
|
|
589
|
-
}
|
|
590
604
|
|
|
591
|
-
export { EditableHeading, Levels, Size,
|
|
605
|
+
export { EditableHeading, Levels, Size, EditableHeading as default };
|
|
@@ -15,7 +15,7 @@ import '../global/sniffer.js';
|
|
|
15
15
|
import 'sniffr';
|
|
16
16
|
import '../global/data-tests.js';
|
|
17
17
|
import '../tab-trap/tab-trap.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
20
|
import '../popup/position.js';
|
|
21
21
|
import '../popup/popup.target.js';
|
|
@@ -6,7 +6,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../_helpers/icon-svg.js';
|
|
9
|
-
import 'react
|
|
9
|
+
import 'react/compiler-runtime';
|
|
10
10
|
import '../global/memoize.js';
|
|
11
11
|
|
|
12
12
|
var styles = {"errorMessage":"ring-error-message-errorMessage","title":"ring-error-message-title","description":"ring-error-message-description","content":"ring-error-message-content","icon":"ring-error-message-icon"};
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
expanded?: boolean | null | undefined;
|
|
10
|
-
onChange?: (expanded: boolean) => void;
|
|
11
|
-
disableAnimation?: boolean;
|
|
12
|
-
interactive?: boolean;
|
|
13
|
-
'data-test'?: string | null | undefined;
|
|
14
|
-
}
|
|
15
|
-
declare const CollapsibleGroup: React.ForwardRefExoticComponent<CollapsibleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default CollapsibleGroup;
|
|
1
|
+
import { type CollapsibleGroupProps } from '../collapsible-group/collapsible-group';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The `expand` module has been renamed to `collapsible-group`. This re-export will be removed in
|
|
4
|
+
* Ring UI 8.0. Use `CollapsibleGroup` from `@jetbrains/ring-ui/components/collapsible-group/collapsible-group` instead.
|
|
5
|
+
*/
|
|
6
|
+
declare const DeprecatedCollapsibleGroup: import("react").ForwardRefExoticComponent<Omit<CollapsibleGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export type { CollapsibleGroupProps };
|
|
8
|
+
export default DeprecatedCollapsibleGroup;
|