@jetbrains/ring-ui-built 7.0.72 → 7.0.73
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 +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef,
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import { forwardRef, cloneElement } from 'react';
|
|
3
3
|
import List, { ActiveItemContext } from '../list/list.js';
|
|
4
4
|
import Dropdown from '../dropdown/dropdown.js';
|
|
5
5
|
import PopupMenu from '../popup-menu/popup-menu.js';
|
|
6
6
|
import getUID from '../global/get-uid.js';
|
|
7
7
|
import { A as Anchor } from '../_helpers/anchor.js';
|
|
8
8
|
import { isArray } from '../global/typescript-utils.js';
|
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
10
|
import 'classnames';
|
|
10
11
|
import 'react-virtualized/dist/es/List';
|
|
11
12
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
@@ -26,9 +27,9 @@ import '../global/create-stateful-context.js';
|
|
|
26
27
|
import '../list/list-item.js';
|
|
27
28
|
import '../avatar/avatar.js';
|
|
28
29
|
import '../global/url.js';
|
|
29
|
-
import '../_helpers/avatar-info.js';
|
|
30
|
-
import '../avatar/avatar-size.js';
|
|
31
30
|
import '../avatar/fallback-avatar.js';
|
|
31
|
+
import '../avatar/avatar-size.js';
|
|
32
|
+
import '../_helpers/avatar-info.js';
|
|
32
33
|
import '../checkbox/checkbox.js';
|
|
33
34
|
import '@jetbrains/icons/checkmark-12px';
|
|
34
35
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -40,9 +41,9 @@ import '../control-help/control-help.js';
|
|
|
40
41
|
import '../link/link.js';
|
|
41
42
|
import '../link/clickable-link.js';
|
|
42
43
|
import '../_helpers/link.js';
|
|
43
|
-
import '../_helpers/list.js';
|
|
44
44
|
import '../list/consts.js';
|
|
45
45
|
import '../list/list.classes.js';
|
|
46
|
+
import '../_helpers/list.js';
|
|
46
47
|
import '../list/list-custom.js';
|
|
47
48
|
import '../global/get-event-key.js';
|
|
48
49
|
import '../list/list-title.js';
|
|
@@ -63,63 +64,189 @@ import '../popup/popup.target.js';
|
|
|
63
64
|
import '../popup/position-css.js';
|
|
64
65
|
|
|
65
66
|
const defaultAriaLabel = 'Dropdown menu';
|
|
66
|
-
function DropdownAnchorWrapper({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}) {
|
|
74
|
-
const anchorAriaProps = useMemo(() => ({
|
|
75
|
-
...(listId ? {
|
|
76
|
-
'aria-haspopup': true
|
|
77
|
-
} : {}),
|
|
78
|
-
...(activeListItemId ? {
|
|
79
|
-
'aria-activedescendant': activeListItemId,
|
|
80
|
-
'aria-owns': listId
|
|
81
|
-
} : {}),
|
|
82
|
-
...(active ? {
|
|
83
|
-
'aria-expanded': true
|
|
84
|
-
} : {})
|
|
85
|
-
}), [active, activeListItemId, listId]);
|
|
86
|
-
const anchorProps = useMemo(() => ({
|
|
87
|
-
active,
|
|
88
|
-
pinned,
|
|
89
|
-
...restProps,
|
|
90
|
-
...anchorAriaProps
|
|
91
|
-
}), [pinned, active, restProps, anchorAriaProps]);
|
|
92
|
-
const anchorComponentProps = useMemo(() => ({
|
|
93
|
-
...anchorProps,
|
|
94
|
-
pinned: `${anchorProps.pinned}`
|
|
95
|
-
}), [anchorProps]);
|
|
96
|
-
if (typeof anchor === 'string') {
|
|
97
|
-
return jsx(Anchor, {
|
|
98
|
-
...anchorComponentProps,
|
|
99
|
-
children: anchor
|
|
100
|
-
});
|
|
67
|
+
function DropdownAnchorWrapper(t0) {
|
|
68
|
+
const $ = c(42);
|
|
69
|
+
if ($[0] !== "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194") {
|
|
70
|
+
for (let $i = 0; $i < 42; $i += 1) {
|
|
71
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
72
|
+
}
|
|
73
|
+
$[0] = "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194";
|
|
101
74
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
75
|
+
let active;
|
|
76
|
+
let activeListItemId;
|
|
77
|
+
let anchor;
|
|
78
|
+
let listId;
|
|
79
|
+
let pinned;
|
|
80
|
+
let restProps;
|
|
81
|
+
if ($[1] !== t0) {
|
|
82
|
+
({
|
|
83
|
+
anchor,
|
|
105
84
|
pinned,
|
|
85
|
+
active,
|
|
86
|
+
activeListItemId,
|
|
87
|
+
listId,
|
|
106
88
|
...restProps
|
|
107
|
-
}
|
|
89
|
+
} = t0);
|
|
90
|
+
$[1] = t0;
|
|
91
|
+
$[2] = active;
|
|
92
|
+
$[3] = activeListItemId;
|
|
93
|
+
$[4] = anchor;
|
|
94
|
+
$[5] = listId;
|
|
95
|
+
$[6] = pinned;
|
|
96
|
+
$[7] = restProps;
|
|
97
|
+
} else {
|
|
98
|
+
active = $[2];
|
|
99
|
+
activeListItemId = $[3];
|
|
100
|
+
anchor = $[4];
|
|
101
|
+
listId = $[5];
|
|
102
|
+
pinned = $[6];
|
|
103
|
+
restProps = $[7];
|
|
104
|
+
}
|
|
105
|
+
let t1;
|
|
106
|
+
if ($[8] !== listId) {
|
|
107
|
+
t1 = listId ? {
|
|
108
|
+
"aria-haspopup": true
|
|
109
|
+
} : {};
|
|
110
|
+
$[8] = listId;
|
|
111
|
+
$[9] = t1;
|
|
112
|
+
} else {
|
|
113
|
+
t1 = $[9];
|
|
114
|
+
}
|
|
115
|
+
let t2;
|
|
116
|
+
if ($[10] !== activeListItemId || $[11] !== listId) {
|
|
117
|
+
t2 = activeListItemId ? {
|
|
118
|
+
"aria-activedescendant": activeListItemId,
|
|
119
|
+
"aria-owns": listId
|
|
120
|
+
} : {};
|
|
121
|
+
$[10] = activeListItemId;
|
|
122
|
+
$[11] = listId;
|
|
123
|
+
$[12] = t2;
|
|
124
|
+
} else {
|
|
125
|
+
t2 = $[12];
|
|
126
|
+
}
|
|
127
|
+
let t3;
|
|
128
|
+
if ($[13] !== active) {
|
|
129
|
+
t3 = active ? {
|
|
130
|
+
"aria-expanded": true
|
|
131
|
+
} : {};
|
|
132
|
+
$[13] = active;
|
|
133
|
+
$[14] = t3;
|
|
134
|
+
} else {
|
|
135
|
+
t3 = $[14];
|
|
136
|
+
}
|
|
137
|
+
let t4;
|
|
138
|
+
if ($[15] !== t1 || $[16] !== t2 || $[17] !== t3) {
|
|
139
|
+
t4 = {
|
|
140
|
+
...t1,
|
|
141
|
+
...t2,
|
|
142
|
+
...t3
|
|
143
|
+
};
|
|
144
|
+
$[15] = t1;
|
|
145
|
+
$[16] = t2;
|
|
146
|
+
$[17] = t3;
|
|
147
|
+
$[18] = t4;
|
|
148
|
+
} else {
|
|
149
|
+
t4 = $[18];
|
|
150
|
+
}
|
|
151
|
+
const anchorAriaProps = t4;
|
|
152
|
+
let t5;
|
|
153
|
+
if ($[19] !== active || $[20] !== anchorAriaProps || $[21] !== pinned || $[22] !== restProps) {
|
|
154
|
+
t5 = {
|
|
155
|
+
active,
|
|
156
|
+
pinned,
|
|
157
|
+
...restProps,
|
|
158
|
+
...anchorAriaProps
|
|
159
|
+
};
|
|
160
|
+
$[19] = active;
|
|
161
|
+
$[20] = anchorAriaProps;
|
|
162
|
+
$[21] = pinned;
|
|
163
|
+
$[22] = restProps;
|
|
164
|
+
$[23] = t5;
|
|
165
|
+
} else {
|
|
166
|
+
t5 = $[23];
|
|
167
|
+
}
|
|
168
|
+
const anchorProps = t5;
|
|
169
|
+
const t6 = `${anchorProps.pinned}`;
|
|
170
|
+
let t7;
|
|
171
|
+
if ($[24] !== anchorProps || $[25] !== t6) {
|
|
172
|
+
t7 = {
|
|
173
|
+
...anchorProps,
|
|
174
|
+
pinned: t6
|
|
175
|
+
};
|
|
176
|
+
$[24] = anchorProps;
|
|
177
|
+
$[25] = t6;
|
|
178
|
+
$[26] = t7;
|
|
179
|
+
} else {
|
|
180
|
+
t7 = $[26];
|
|
181
|
+
}
|
|
182
|
+
const anchorComponentProps = t7;
|
|
183
|
+
if (typeof anchor === "string") {
|
|
184
|
+
let t8;
|
|
185
|
+
if ($[27] !== anchor || $[28] !== anchorComponentProps) {
|
|
186
|
+
t8 = /*#__PURE__*/jsx(Anchor, {
|
|
187
|
+
...anchorComponentProps,
|
|
188
|
+
children: anchor
|
|
189
|
+
});
|
|
190
|
+
$[27] = anchor;
|
|
191
|
+
$[28] = anchorComponentProps;
|
|
192
|
+
$[29] = t8;
|
|
193
|
+
} else {
|
|
194
|
+
t8 = $[29];
|
|
195
|
+
}
|
|
196
|
+
return t8;
|
|
197
|
+
}
|
|
198
|
+
if (typeof anchor === "function") {
|
|
199
|
+
let t8;
|
|
200
|
+
if ($[30] !== active || $[31] !== anchor || $[32] !== anchorAriaProps || $[33] !== pinned || $[34] !== restProps) {
|
|
201
|
+
t8 = anchor({
|
|
202
|
+
active,
|
|
203
|
+
pinned,
|
|
204
|
+
...restProps
|
|
205
|
+
}, anchorAriaProps);
|
|
206
|
+
$[30] = active;
|
|
207
|
+
$[31] = anchor;
|
|
208
|
+
$[32] = anchorAriaProps;
|
|
209
|
+
$[33] = pinned;
|
|
210
|
+
$[34] = restProps;
|
|
211
|
+
$[35] = t8;
|
|
212
|
+
} else {
|
|
213
|
+
t8 = $[35];
|
|
214
|
+
}
|
|
215
|
+
return t8;
|
|
108
216
|
}
|
|
109
217
|
if (!isArray(anchor)) {
|
|
110
|
-
|
|
218
|
+
const t8 = typeof anchor.type === "string" ? anchorAriaProps : anchorComponentProps;
|
|
219
|
+
let t9;
|
|
220
|
+
if ($[36] !== anchor || $[37] !== t8) {
|
|
221
|
+
t9 = /*#__PURE__*/cloneElement(anchor, t8);
|
|
222
|
+
$[36] = anchor;
|
|
223
|
+
$[37] = t8;
|
|
224
|
+
$[38] = t9;
|
|
225
|
+
} else {
|
|
226
|
+
t9 = $[38];
|
|
227
|
+
}
|
|
228
|
+
return t9;
|
|
111
229
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
230
|
+
let t8;
|
|
231
|
+
if ($[39] !== anchor || $[40] !== anchorAriaProps) {
|
|
232
|
+
t8 = /*#__PURE__*/jsx("div", {
|
|
233
|
+
...anchorAriaProps,
|
|
234
|
+
children: anchor
|
|
235
|
+
});
|
|
236
|
+
$[39] = anchor;
|
|
237
|
+
$[40] = anchorAriaProps;
|
|
238
|
+
$[41] = t8;
|
|
239
|
+
} else {
|
|
240
|
+
t8 = $[41];
|
|
241
|
+
}
|
|
242
|
+
return t8;
|
|
116
243
|
}
|
|
117
244
|
function renderDropdownMenuChildren({
|
|
118
245
|
children,
|
|
119
246
|
popupMenuProps
|
|
120
247
|
}) {
|
|
121
248
|
if (!children) {
|
|
122
|
-
return jsx(PopupMenu, {
|
|
249
|
+
return /*#__PURE__*/jsx(PopupMenu, {
|
|
123
250
|
...popupMenuProps
|
|
124
251
|
});
|
|
125
252
|
}
|
|
@@ -128,35 +255,95 @@ function renderDropdownMenuChildren({
|
|
|
128
255
|
...popupMenuProps
|
|
129
256
|
});
|
|
130
257
|
}
|
|
131
|
-
const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu({
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
258
|
+
const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwardedRef) {
|
|
259
|
+
const $ = c(29);
|
|
260
|
+
if ($[0] !== "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194") {
|
|
261
|
+
for (let $i = 0; $i < 29; $i += 1) {
|
|
262
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
263
|
+
}
|
|
264
|
+
$[0] = "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194";
|
|
265
|
+
}
|
|
266
|
+
let anchor;
|
|
267
|
+
let ariaLabel;
|
|
268
|
+
let children;
|
|
269
|
+
let data;
|
|
270
|
+
let id;
|
|
271
|
+
let menuProps;
|
|
272
|
+
let onSelect;
|
|
273
|
+
let restDropdownProps;
|
|
274
|
+
if ($[1] !== t0) {
|
|
275
|
+
({
|
|
276
|
+
id,
|
|
277
|
+
anchor,
|
|
278
|
+
ariaLabel,
|
|
279
|
+
data,
|
|
280
|
+
onSelect,
|
|
281
|
+
menuProps,
|
|
282
|
+
children,
|
|
283
|
+
...restDropdownProps
|
|
284
|
+
} = t0);
|
|
285
|
+
$[1] = t0;
|
|
286
|
+
$[2] = anchor;
|
|
287
|
+
$[3] = ariaLabel;
|
|
288
|
+
$[4] = children;
|
|
289
|
+
$[5] = data;
|
|
290
|
+
$[6] = id;
|
|
291
|
+
$[7] = menuProps;
|
|
292
|
+
$[8] = onSelect;
|
|
293
|
+
$[9] = restDropdownProps;
|
|
294
|
+
} else {
|
|
295
|
+
anchor = $[2];
|
|
296
|
+
ariaLabel = $[3];
|
|
297
|
+
children = $[4];
|
|
298
|
+
data = $[5];
|
|
299
|
+
id = $[6];
|
|
300
|
+
menuProps = $[7];
|
|
301
|
+
onSelect = $[8];
|
|
302
|
+
restDropdownProps = $[9];
|
|
303
|
+
}
|
|
304
|
+
let t1;
|
|
305
|
+
if ($[10] !== id) {
|
|
306
|
+
t1 = id || getUID("dropdown-menu-list");
|
|
307
|
+
$[10] = id;
|
|
308
|
+
$[11] = t1;
|
|
309
|
+
} else {
|
|
310
|
+
t1 = $[11];
|
|
311
|
+
}
|
|
312
|
+
const listId = t1;
|
|
313
|
+
const t2 = ariaLabel || defaultAriaLabel;
|
|
314
|
+
let t3;
|
|
315
|
+
if ($[12] !== data || $[13] !== forwardedRef || $[14] !== listId || $[15] !== menuProps || $[16] !== onSelect || $[17] !== t2) {
|
|
316
|
+
t3 = {
|
|
317
|
+
ref: forwardedRef,
|
|
318
|
+
id: listId,
|
|
319
|
+
ariaLabel: t2,
|
|
320
|
+
closeOnSelect: true,
|
|
321
|
+
activateFirstItem: true,
|
|
322
|
+
data,
|
|
323
|
+
onSelect,
|
|
324
|
+
...menuProps
|
|
325
|
+
};
|
|
326
|
+
$[12] = data;
|
|
327
|
+
$[13] = forwardedRef;
|
|
328
|
+
$[14] = listId;
|
|
329
|
+
$[15] = menuProps;
|
|
330
|
+
$[16] = onSelect;
|
|
331
|
+
$[17] = t2;
|
|
332
|
+
$[18] = t3;
|
|
333
|
+
} else {
|
|
334
|
+
t3 = $[18];
|
|
335
|
+
}
|
|
336
|
+
const popupMenuProps = t3;
|
|
337
|
+
let t4;
|
|
338
|
+
if ($[19] !== anchor || $[20] !== listId) {
|
|
339
|
+
t4 = t5 => {
|
|
340
|
+
const {
|
|
155
341
|
pinned,
|
|
156
342
|
active,
|
|
157
343
|
...restAnchorProps
|
|
158
|
-
}
|
|
159
|
-
|
|
344
|
+
} = t5;
|
|
345
|
+
return /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
|
|
346
|
+
children: activeItemId => /*#__PURE__*/jsx(DropdownAnchorWrapper, {
|
|
160
347
|
anchor: anchor,
|
|
161
348
|
pinned: pinned,
|
|
162
349
|
active: active,
|
|
@@ -164,14 +351,43 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu({
|
|
|
164
351
|
listId: listId,
|
|
165
352
|
...restAnchorProps
|
|
166
353
|
})
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
$[19] = anchor;
|
|
357
|
+
$[20] = listId;
|
|
358
|
+
$[21] = t4;
|
|
359
|
+
} else {
|
|
360
|
+
t4 = $[21];
|
|
361
|
+
}
|
|
362
|
+
let t5;
|
|
363
|
+
if ($[22] !== children || $[23] !== popupMenuProps) {
|
|
364
|
+
t5 = renderDropdownMenuChildren({
|
|
365
|
+
children,
|
|
366
|
+
popupMenuProps
|
|
367
|
+
});
|
|
368
|
+
$[22] = children;
|
|
369
|
+
$[23] = popupMenuProps;
|
|
370
|
+
$[24] = t5;
|
|
371
|
+
} else {
|
|
372
|
+
t5 = $[24];
|
|
373
|
+
}
|
|
374
|
+
let t6;
|
|
375
|
+
if ($[25] !== restDropdownProps || $[26] !== t4 || $[27] !== t5) {
|
|
376
|
+
t6 = /*#__PURE__*/jsx(ActiveItemContext.Provider, {
|
|
377
|
+
children: /*#__PURE__*/jsx(Dropdown, {
|
|
378
|
+
anchor: t4,
|
|
379
|
+
...restDropdownProps,
|
|
380
|
+
children: t5
|
|
172
381
|
})
|
|
173
|
-
})
|
|
174
|
-
|
|
382
|
+
});
|
|
383
|
+
$[25] = restDropdownProps;
|
|
384
|
+
$[26] = t4;
|
|
385
|
+
$[27] = t5;
|
|
386
|
+
$[28] = t6;
|
|
387
|
+
} else {
|
|
388
|
+
t6 = $[28];
|
|
389
|
+
}
|
|
390
|
+
return t6;
|
|
175
391
|
});
|
|
176
392
|
var DropdownMenu$1 = Object.assign(DropdownMenu, {
|
|
177
393
|
ListProps: List.ListProps
|
|
@@ -28,6 +28,6 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement | H
|
|
|
28
28
|
renderMenu?: () => React.ReactNode;
|
|
29
29
|
translations?: EditableHeadingTranslations;
|
|
30
30
|
};
|
|
31
|
-
export declare const EditableHeading: (props: EditableHeadingProps) =>
|
|
32
|
-
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) =>
|
|
31
|
+
export declare const EditableHeading: (props: EditableHeadingProps) => React.JSX.Element;
|
|
32
|
+
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => React.JSX.Element>;
|
|
33
33
|
export default _default;
|