@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.
Files changed (287) hide show
  1. package/components/_helpers/anchor.js +55 -13
  2. package/components/_helpers/avatar-info.js +44 -11
  3. package/components/_helpers/caption.js +2 -2
  4. package/components/_helpers/card.js +21 -21
  5. package/components/_helpers/icon-svg.js +75 -17
  6. package/components/_helpers/input.js +13 -13
  7. package/components/_helpers/query-assist-suggestions.js +5 -5
  8. package/components/_helpers/select-filter.js +5 -5
  9. package/components/_helpers/services-link.js +5 -5
  10. package/components/_helpers/sidebar.js +6 -6
  11. package/components/_helpers/tab-link.js +69 -17
  12. package/components/_helpers/theme.js +231 -54
  13. package/components/_helpers/title.js +5 -5
  14. package/components/alert/alert.d.ts +1 -1
  15. package/components/alert/alert.js +12 -10
  16. package/components/alert/container.js +4 -4
  17. package/components/alert-service/alert-service.d.ts +1 -1
  18. package/components/alert-service/alert-service.js +5 -4
  19. package/components/auth/auth-core.js +8 -8
  20. package/components/auth/auth.js +3 -2
  21. package/components/auth/down-notification.js +61 -17
  22. package/components/auth/iframe-flow.js +7 -6
  23. package/components/auth/storage.js +3 -2
  24. package/components/auth/token-validator.js +1 -1
  25. package/components/auth/window-flow.js +2 -2
  26. package/components/auth-dialog/auth-dialog.d.ts +1 -1
  27. package/components/auth-dialog/auth-dialog.js +15 -14
  28. package/components/auth-dialog-service/auth-dialog-service.js +4 -6
  29. package/components/avatar/avatar-info.d.ts +1 -1
  30. package/components/avatar/avatar-info.js +3 -2
  31. package/components/avatar/avatar.d.ts +1 -1
  32. package/components/avatar/avatar.js +16 -15
  33. package/components/avatar/fallback-avatar.d.ts +1 -1
  34. package/components/avatar/fallback-avatar.js +183 -59
  35. package/components/avatar-stack/avatar-stack.d.ts +1 -1
  36. package/components/avatar-stack/avatar-stack.js +115 -29
  37. package/components/banner/banner.d.ts +1 -1
  38. package/components/banner/banner.js +11 -10
  39. package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  40. package/components/breadcrumbs/breadcrumbs.js +3 -2
  41. package/components/button/button.d.ts +1 -1
  42. package/components/button/button.js +11 -10
  43. package/components/button-group/button-group.d.ts +1 -1
  44. package/components/button-group/button-group.js +6 -8
  45. package/components/button-group/caption.d.ts +1 -1
  46. package/components/button-group/caption.js +1 -1
  47. package/components/button-set/button-set.d.ts +1 -1
  48. package/components/button-set/button-set.js +2 -5
  49. package/components/button-toolbar/button-toolbar.d.ts +1 -1
  50. package/components/button-toolbar/button-toolbar.js +2 -5
  51. package/components/checkbox/checkbox.d.ts +1 -1
  52. package/components/checkbox/checkbox.js +12 -17
  53. package/components/clipboard/clipboard.js +2 -1
  54. package/components/code/code.d.ts +1 -1
  55. package/components/code/code.js +5 -5
  56. package/components/collapse/collapse-content.js +161 -77
  57. package/components/collapse/collapse-control.js +69 -22
  58. package/components/collapse/collapse.js +83 -31
  59. package/components/confirm/confirm.d.ts +1 -1
  60. package/components/confirm/confirm.js +11 -13
  61. package/components/confirm-service/confirm-service.js +4 -3
  62. package/components/content-layout/content-layout.d.ts +1 -1
  63. package/components/content-layout/content-layout.js +4 -7
  64. package/components/content-layout/sidebar.d.ts +1 -1
  65. package/components/content-layout/sidebar.js +1 -1
  66. package/components/contenteditable/contenteditable.d.ts +2 -2
  67. package/components/contenteditable/contenteditable.js +50 -14
  68. package/components/control-help/control-help.d.ts +1 -1
  69. package/components/control-help/control-help.js +45 -9
  70. package/components/control-label/control-label.js +62 -13
  71. package/components/data-list/data-list.d.ts +1 -1
  72. package/components/data-list/data-list.js +10 -9
  73. package/components/data-list/data-list.mock.d.ts +1 -1
  74. package/components/data-list/data-list.mock.js +79 -78
  75. package/components/data-list/item.d.ts +2 -2
  76. package/components/data-list/item.js +18 -17
  77. package/components/data-list/title.d.ts +1 -1
  78. package/components/data-list/title.js +2 -1
  79. package/components/date-picker/consts.js +1 -1
  80. package/components/date-picker/date-input.d.ts +1 -1
  81. package/components/date-picker/date-input.js +4 -3
  82. package/components/date-picker/date-picker.d.ts +1 -1
  83. package/components/date-picker/date-picker.js +97 -31
  84. package/components/date-picker/date-popup.d.ts +1 -1
  85. package/components/date-picker/date-popup.js +11 -10
  86. package/components/date-picker/day.d.ts +1 -1
  87. package/components/date-picker/day.js +4 -3
  88. package/components/date-picker/month-names.d.ts +1 -1
  89. package/components/date-picker/month-names.js +98 -22
  90. package/components/date-picker/month-slider.d.ts +1 -1
  91. package/components/date-picker/month-slider.js +4 -4
  92. package/components/date-picker/month.d.ts +1 -1
  93. package/components/date-picker/month.js +79 -18
  94. package/components/date-picker/months.d.ts +1 -1
  95. package/components/date-picker/months.js +163 -53
  96. package/components/date-picker/weekdays.d.ts +1 -1
  97. package/components/date-picker/weekdays.js +56 -16
  98. package/components/date-picker/years.d.ts +1 -1
  99. package/components/date-picker/years.js +5 -5
  100. package/components/dialog/dialog.d.ts +1 -1
  101. package/components/dialog/dialog.js +21 -23
  102. package/components/dropdown/anchor.d.ts +1 -1
  103. package/components/dropdown/anchor.js +2 -1
  104. package/components/dropdown/dropdown.d.ts +1 -1
  105. package/components/dropdown/dropdown.js +7 -8
  106. package/components/dropdown-menu/dropdown-menu.js +299 -83
  107. package/components/editable-heading/editable-heading.d.ts +2 -2
  108. package/components/editable-heading/editable-heading.js +523 -174
  109. package/components/error-bubble/error-bubble.d.ts +1 -1
  110. package/components/error-bubble/error-bubble.js +7 -9
  111. package/components/error-message/error-message.d.ts +1 -1
  112. package/components/error-message/error-message.js +8 -10
  113. package/components/footer/footer.js +205 -61
  114. package/components/global/create-stateful-context.d.ts +1 -1
  115. package/components/global/create-stateful-context.js +73 -18
  116. package/components/global/focus-sensor-hoc.js +2 -2
  117. package/components/global/get-uid.js +1 -1
  118. package/components/global/react-dom-renderer.d.ts +1 -1
  119. package/components/global/react-dom-renderer.js +2 -2
  120. package/components/global/rerender-hoc.js +23 -6
  121. package/components/global/theme.js +3 -2
  122. package/components/global/use-event-callback.js +37 -13
  123. package/components/grid/col.d.ts +1 -1
  124. package/components/grid/col.js +3 -3
  125. package/components/grid/grid.d.ts +1 -1
  126. package/components/grid/grid.js +3 -6
  127. package/components/grid/row.d.ts +1 -1
  128. package/components/grid/row.js +3 -3
  129. package/components/group/group.d.ts +1 -1
  130. package/components/group/group.js +3 -6
  131. package/components/header/header-icon.d.ts +1 -1
  132. package/components/header/header-icon.js +3 -2
  133. package/components/header/header.d.ts +1 -1
  134. package/components/header/header.js +7 -12
  135. package/components/header/links.d.ts +1 -1
  136. package/components/header/links.js +45 -10
  137. package/components/header/logo.d.ts +1 -1
  138. package/components/header/logo.js +4 -3
  139. package/components/header/profile.js +17 -16
  140. package/components/header/services-link.d.ts +1 -1
  141. package/components/header/services-link.js +1 -1
  142. package/components/header/services.d.ts +1 -1
  143. package/components/header/services.js +35 -16
  144. package/components/header/smart-profile.d.ts +1 -1
  145. package/components/header/smart-profile.js +6 -5
  146. package/components/header/smart-services.d.ts +1 -1
  147. package/components/header/smart-services.js +3 -2
  148. package/components/header/tray.d.ts +1 -1
  149. package/components/header/tray.js +3 -3
  150. package/components/heading/heading.js +188 -44
  151. package/components/i18n/i18n-context.js +51 -13
  152. package/components/icon/icon-svg.d.ts +1 -1
  153. package/components/icon/icon-svg.js +2 -1
  154. package/components/icon/icon.d.ts +1 -1
  155. package/components/icon/icon.js +6 -5
  156. package/components/icon/index.js +2 -1
  157. package/components/input/input.d.ts +1 -1
  158. package/components/input/input.js +2 -1
  159. package/components/island/adaptive-island-hoc.js +4 -4
  160. package/components/island/content.d.ts +1 -1
  161. package/components/island/content.js +36 -17
  162. package/components/island/header.d.ts +1 -1
  163. package/components/island/header.js +32 -14
  164. package/components/island/island.d.ts +1 -1
  165. package/components/island/island.js +3 -5
  166. package/components/link/clickable-link.d.ts +1 -1
  167. package/components/link/clickable-link.js +2 -2
  168. package/components/link/link.js +4 -4
  169. package/components/list/list-custom.d.ts +1 -1
  170. package/components/list/list-custom.js +2 -2
  171. package/components/list/list-hint.d.ts +1 -1
  172. package/components/list/list-hint.js +3 -7
  173. package/components/list/list-item.d.ts +1 -1
  174. package/components/list/list-item.js +23 -26
  175. package/components/list/list-separator.d.ts +1 -1
  176. package/components/list/list-separator.js +3 -3
  177. package/components/list/list-title.d.ts +1 -1
  178. package/components/list/list-title.js +7 -7
  179. package/components/list/list-users-groups-source.js +6 -5
  180. package/components/list/list.d.ts +6 -6
  181. package/components/list/list.js +33 -31
  182. package/components/loader/loader.d.ts +1 -1
  183. package/components/loader/loader.js +8 -14
  184. package/components/loader-inline/loader-inline.d.ts +1 -1
  185. package/components/loader-inline/loader-inline.js +4 -7
  186. package/components/loader-screen/loader-screen.d.ts +1 -1
  187. package/components/loader-screen/loader-screen.js +3 -6
  188. package/components/login-dialog/login-dialog.d.ts +1 -1
  189. package/components/login-dialog/login-dialog.js +10 -9
  190. package/components/login-dialog/service.js +4 -3
  191. package/components/markdown/markdown.d.ts +1 -1
  192. package/components/markdown/markdown.js +3 -6
  193. package/components/message/message.d.ts +1 -1
  194. package/components/message/message.js +13 -15
  195. package/components/old-browsers-message/white-list.js +2 -2
  196. package/components/pager/pager.d.ts +5 -5
  197. package/components/pager/pager.js +28 -27
  198. package/components/panel/panel.d.ts +1 -1
  199. package/components/panel/panel.js +3 -6
  200. package/components/popup/popup.d.ts +2 -2
  201. package/components/popup/popup.js +14 -11
  202. package/components/popup/popup.target.js +68 -16
  203. package/components/popup-menu/popup-menu.d.ts +1 -1
  204. package/components/popup-menu/popup-menu.js +7 -9
  205. package/components/progress-bar/progress-bar.d.ts +1 -1
  206. package/components/progress-bar/progress-bar.js +4 -7
  207. package/components/query-assist/query-assist-suggestions.d.ts +1 -1
  208. package/components/query-assist/query-assist-suggestions.js +5 -4
  209. package/components/query-assist/query-assist.d.ts +2 -2
  210. package/components/query-assist/query-assist.js +37 -34
  211. package/components/radio/radio-item.d.ts +1 -1
  212. package/components/radio/radio-item.js +40 -20
  213. package/components/radio/radio.d.ts +1 -1
  214. package/components/radio/radio.js +3 -5
  215. package/components/scrollable-section/scrollable-section.d.ts +1 -1
  216. package/components/scrollable-section/scrollable-section.js +100 -38
  217. package/components/select/select-filter.d.ts +1 -1
  218. package/components/select/select-filter.js +5 -4
  219. package/components/select/select-popup.d.ts +7 -7
  220. package/components/select/select-popup.js +26 -25
  221. package/components/select/select.d.ts +3 -3
  222. package/components/select/select.js +52 -52
  223. package/components/shortcuts/shortcuts-hoc.js +3 -3
  224. package/components/slider/slider.js +591 -196
  225. package/components/storage/storage-local.js +2 -1
  226. package/components/storage/storage.js +2 -1
  227. package/components/style.css +1 -1
  228. package/components/tab-trap/tab-trap.js +247 -102
  229. package/components/table/cell.d.ts +1 -1
  230. package/components/table/cell.js +2 -2
  231. package/components/table/disable-hover-hoc.js +3 -3
  232. package/components/table/header-cell.d.ts +1 -1
  233. package/components/table/header-cell.js +7 -6
  234. package/components/table/header.d.ts +2 -2
  235. package/components/table/header.js +14 -13
  236. package/components/table/multitable.d.ts +1 -1
  237. package/components/table/multitable.js +3 -3
  238. package/components/table/row-with-focus-sensor.d.ts +1 -1
  239. package/components/table/row-with-focus-sensor.js +3 -2
  240. package/components/table/row.d.ts +1 -1
  241. package/components/table/row.js +51 -24
  242. package/components/table/selection-shortcuts-hoc.js +2 -2
  243. package/components/table/simple-table.d.ts +1 -1
  244. package/components/table/simple-table.js +4 -3
  245. package/components/table/smart-table.d.ts +1 -1
  246. package/components/table/smart-table.js +4 -3
  247. package/components/table/table.d.ts +2 -2
  248. package/components/table/table.js +21 -23
  249. package/components/tabs/collapsible-more.d.ts +3 -3
  250. package/components/tabs/collapsible-more.js +253 -83
  251. package/components/tabs/collapsible-tab.d.ts +1 -1
  252. package/components/tabs/collapsible-tab.js +4 -3
  253. package/components/tabs/collapsible-tabs.d.ts +2 -2
  254. package/components/tabs/collapsible-tabs.js +450 -188
  255. package/components/tabs/dumb-tabs.d.ts +2 -2
  256. package/components/tabs/dumb-tabs.js +10 -9
  257. package/components/tabs/smart-tabs.d.ts +1 -1
  258. package/components/tabs/smart-tabs.js +6 -5
  259. package/components/tabs/tab-link.d.ts +1 -1
  260. package/components/tabs/tab-link.js +2 -1
  261. package/components/tabs/tab.d.ts +1 -1
  262. package/components/tabs/tab.js +2 -2
  263. package/components/tabs/tabs.js +5 -4
  264. package/components/tag/tag.d.ts +5 -5
  265. package/components/tag/tag.js +14 -13
  266. package/components/tags-input/tags-input.d.ts +1 -1
  267. package/components/tags-input/tags-input.js +10 -9
  268. package/components/tags-list/tags-list.d.ts +2 -2
  269. package/components/tags-list/tags-list.js +4 -3
  270. package/components/text/text.d.ts +1 -1
  271. package/components/text/text.js +2 -2
  272. package/components/toggle/toggle.d.ts +1 -1
  273. package/components/toggle/toggle.js +12 -11
  274. package/components/tooltip/tooltip.d.ts +1 -1
  275. package/components/tooltip/tooltip.js +7 -6
  276. package/components/upload/upload.js +10 -9
  277. package/components/user-agreement/service.js +11 -10
  278. package/components/user-agreement/user-agreement.d.ts +1 -1
  279. package/components/user-agreement/user-agreement.js +19 -18
  280. package/components/user-card/card.d.ts +1 -1
  281. package/components/user-card/card.js +3 -2
  282. package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
  283. package/components/user-card/smart-user-card-tooltip.js +7 -6
  284. package/components/user-card/tooltip.d.ts +2 -2
  285. package/components/user-card/tooltip.js +7 -6
  286. package/components/user-card/user-card.js +4 -3
  287. package/package.json +3 -9
@@ -1,11 +1,12 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { forwardRef, useMemo, cloneElement } from 'react';
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
- anchor,
68
- pinned,
69
- active,
70
- activeListItemId,
71
- listId,
72
- ...restProps
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
- if (typeof anchor === 'function') {
103
- return anchor({
104
- active,
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
- }, anchorAriaProps);
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
- return /*#__PURE__*/cloneElement(anchor, typeof anchor.type === 'string' ? anchorAriaProps : anchorComponentProps);
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
- return jsx("div", {
113
- ...anchorAriaProps,
114
- children: anchor
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
- id,
133
- anchor,
134
- ariaLabel,
135
- data,
136
- onSelect,
137
- menuProps,
138
- children,
139
- ...restDropdownProps
140
- }, forwardedRef) {
141
- const listId = useMemo(() => id || getUID('dropdown-menu-list'), [id]);
142
- const popupMenuProps = useMemo(() => ({
143
- ref: forwardedRef,
144
- id: listId,
145
- ariaLabel: ariaLabel || defaultAriaLabel,
146
- closeOnSelect: true,
147
- activateFirstItem: true,
148
- data,
149
- onSelect,
150
- ...menuProps
151
- }), [ariaLabel, data, forwardedRef, listId, menuProps, onSelect]);
152
- return jsx(ActiveItemContext.Provider, {
153
- children: jsx(Dropdown, {
154
- anchor: ({
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
- }) => jsx(ActiveItemContext.ValueContext.Consumer, {
159
- children: activeItemId => jsx(DropdownAnchorWrapper, {
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
- ...restDropdownProps,
169
- children: renderDropdownMenuChildren({
170
- children,
171
- popupMenuProps
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) => import("react/jsx-runtime").JSX.Element;
32
- declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => import("react/jsx-runtime").JSX.Element>;
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;