@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,35 +1,87 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
1
+ import { c } from 'react-compiler-runtime';
2
2
  import { memo } from 'react';
3
3
  import Link from '../link/link.js';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
5
 
5
6
  var styles = {"tabs":"ring-tabs-tabs ring-global-font","titles":"ring-tabs-titles","title":"ring-tabs-title ring-global-font","selected":"ring-tabs-selected","collapsed":"ring-tabs-collapsed","titleLegacy":"ring-tabs-titleLegacy","visible":"ring-tabs-visible","container":"ring-tabs-container","hidden":"ring-tabs-hidden","hiddenBold":"ring-tabs-hiddenBold","hiddenRegular":"ring-tabs-hiddenRegular","tabCounter":"ring-tabs-tabCounter","autoCollapseContainer":"ring-tabs-autoCollapseContainer","autoCollapse":"ring-tabs-autoCollapse","rendered":"ring-tabs-rendered","adjusted":"ring-tabs-adjusted","measure":"ring-tabs-measure","morePopup":"ring-tabs-morePopup","morePopupBeforeEnd":"ring-tabs-morePopupBeforeEnd"};
6
7
 
7
- function TabLink({
8
- isSelected,
9
- title,
10
- collapsed,
11
- ...restProps
12
- }) {
13
- const renderedTitle = typeof title === 'function' ? title(isSelected, collapsed) : title;
14
- return jsx(Link, {
15
- ...restProps,
16
- children: jsxs("div", {
8
+ function TabLink(t0) {
9
+ const $ = c(15);
10
+ if ($[0] !== "39f1a89c5c733a624de38d6be3582c0990b2039ec09c55b8645875ea44f687f4") {
11
+ for (let $i = 0; $i < 15; $i += 1) {
12
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
13
+ }
14
+ $[0] = "39f1a89c5c733a624de38d6be3582c0990b2039ec09c55b8645875ea44f687f4";
15
+ }
16
+ let collapsed;
17
+ let isSelected;
18
+ let restProps;
19
+ let title;
20
+ if ($[1] !== t0) {
21
+ ({
22
+ isSelected,
23
+ title,
24
+ collapsed,
25
+ ...restProps
26
+ } = t0);
27
+ $[1] = t0;
28
+ $[2] = collapsed;
29
+ $[3] = isSelected;
30
+ $[4] = restProps;
31
+ $[5] = title;
32
+ } else {
33
+ collapsed = $[2];
34
+ isSelected = $[3];
35
+ restProps = $[4];
36
+ title = $[5];
37
+ }
38
+ let t1;
39
+ if ($[6] !== collapsed || $[7] !== isSelected || $[8] !== title) {
40
+ t1 = typeof title === "function" ? title(isSelected, collapsed) : title;
41
+ $[6] = collapsed;
42
+ $[7] = isSelected;
43
+ $[8] = title;
44
+ $[9] = t1;
45
+ } else {
46
+ t1 = $[9];
47
+ }
48
+ const renderedTitle = t1;
49
+ let t2;
50
+ if ($[10] !== renderedTitle) {
51
+ t2 = /*#__PURE__*/jsxs("div", {
17
52
  className: styles.container,
18
- children: [jsx("span", {
53
+ children: [/*#__PURE__*/jsx("span", {
19
54
  className: styles.visible,
20
55
  children: renderedTitle
21
- }), jsx("span", {
56
+ }), /*#__PURE__*/jsx("span", {
22
57
  className: styles.hidden,
23
58
  children: renderedTitle
24
- }), jsx("span", {
59
+ }), /*#__PURE__*/jsx("span", {
25
60
  className: styles.hiddenBold,
26
61
  children: renderedTitle
27
- }), jsx("span", {
62
+ }), /*#__PURE__*/jsx("span", {
28
63
  className: styles.hiddenRegular,
29
64
  children: renderedTitle
30
65
  })]
31
- })
32
- });
66
+ });
67
+ $[10] = renderedTitle;
68
+ $[11] = t2;
69
+ } else {
70
+ t2 = $[11];
71
+ }
72
+ let t3;
73
+ if ($[12] !== restProps || $[13] !== t2) {
74
+ t3 = /*#__PURE__*/jsx(Link, {
75
+ ...restProps,
76
+ children: t2
77
+ });
78
+ $[12] = restProps;
79
+ $[13] = t2;
80
+ $[14] = t3;
81
+ } else {
82
+ t3 = $[14];
83
+ }
84
+ return t3;
33
85
  }
34
86
  var TabLink$1 = /*#__PURE__*/memo(TabLink);
35
87
 
@@ -1,10 +1,11 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { createContext, forwardRef, useMemo, useEffect, useContext, useState } from 'react';
1
+ import { c } from 'react-compiler-runtime';
2
+ import { createContext, forwardRef, useEffect, useContext, useState } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { createPortal } from 'react-dom';
5
5
  import { PopupTargetContext, PopupTarget } from '../popup/popup.target.js';
6
6
  import { getPopupContainer } from '../popup/popup.js';
7
7
  import getUID from '../global/get-uid.js';
8
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
9
 
9
10
  var defaultStyles = {"light":"ring-variables-light"};
10
11
 
@@ -22,29 +23,84 @@ const ThemeContext = /*#__PURE__*/createContext({
22
23
  const GLOBAL_DARK_CLASS_NAME = 'ring-ui-theme-dark';
23
24
  const darkMatcher = window.matchMedia('(prefers-color-scheme: dark)');
24
25
  function useTheme() {
26
+ const $ = c(3);
27
+ if ($[0] !== "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620") {
28
+ for (let $i = 0; $i < 3; $i += 1) {
29
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
30
+ }
31
+ $[0] = "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620";
32
+ }
25
33
  const [dark, setDark] = useState(darkMatcher.matches);
26
- useEffect(() => {
27
- const onChange = e => setDark(e.matches);
28
- darkMatcher.addEventListener('change', onChange);
29
- return () => darkMatcher.removeEventListener('change', onChange);
30
- }, []);
34
+ let t0;
35
+ let t1;
36
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
37
+ t0 = () => {
38
+ const onChange = e => setDark(e.matches);
39
+ darkMatcher.addEventListener("change", onChange);
40
+ return () => darkMatcher.removeEventListener("change", onChange);
41
+ };
42
+ t1 = [];
43
+ $[1] = t0;
44
+ $[2] = t1;
45
+ } else {
46
+ t0 = $[1];
47
+ t1 = $[2];
48
+ }
49
+ useEffect(t0, t1);
31
50
  return dark ? Theme.DARK : Theme.LIGHT;
32
51
  }
33
52
  function useThemeClasses(theme) {
53
+ const $ = c(5);
54
+ if ($[0] !== "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620") {
55
+ for (let $i = 0; $i < 5; $i += 1) {
56
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
57
+ }
58
+ $[0] = "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620";
59
+ }
34
60
  const systemTheme = useTheme();
35
61
  const resolvedTheme = theme === Theme.AUTO ? systemTheme : theme;
36
- return classNames({
37
- [darkStyles.dark]: resolvedTheme === Theme.DARK,
38
- [GLOBAL_DARK_CLASS_NAME]: resolvedTheme === Theme.DARK,
39
- [defaultStyles.light]: resolvedTheme === Theme.LIGHT
40
- });
62
+ const t0 = resolvedTheme === Theme.DARK;
63
+ const t1 = resolvedTheme === Theme.DARK;
64
+ const t2 = resolvedTheme === Theme.LIGHT;
65
+ let t3;
66
+ if ($[1] !== t0 || $[2] !== t1 || $[3] !== t2) {
67
+ t3 = classNames({
68
+ [darkStyles.dark]: t0,
69
+ [GLOBAL_DARK_CLASS_NAME]: t1,
70
+ [defaultStyles.light]: t2
71
+ });
72
+ $[1] = t0;
73
+ $[2] = t1;
74
+ $[3] = t2;
75
+ $[4] = t3;
76
+ } else {
77
+ t3 = $[4];
78
+ }
79
+ return t3;
41
80
  }
42
- function WithThemeClasses({
43
- theme,
44
- children
45
- }) {
81
+ function WithThemeClasses(t0) {
82
+ const $ = c(4);
83
+ if ($[0] !== "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620") {
84
+ for (let $i = 0; $i < 4; $i += 1) {
85
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
86
+ }
87
+ $[0] = "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620";
88
+ }
89
+ const {
90
+ theme,
91
+ children
92
+ } = t0;
46
93
  const themeClasses = useThemeClasses(theme);
47
- return children(themeClasses);
94
+ let t1;
95
+ if ($[1] !== children || $[2] !== themeClasses) {
96
+ t1 = children(themeClasses);
97
+ $[1] = children;
98
+ $[2] = themeClasses;
99
+ $[3] = t1;
100
+ } else {
101
+ t1 = $[3];
102
+ }
103
+ return t1;
48
104
  }
49
105
  function applyTheme(theme, container) {
50
106
  if (theme === Theme.DARK) {
@@ -58,50 +114,171 @@ function applyTheme(theme, container) {
58
114
  }
59
115
  }
60
116
  const DefaultWrapper = /*#__PURE__*/forwardRef(function Wrapper(props, ref) {
61
- return jsx("div", {
62
- ...props,
63
- ref: ref
64
- });
117
+ const $ = c(4);
118
+ if ($[0] !== "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620") {
119
+ for (let $i = 0; $i < 4; $i += 1) {
120
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
121
+ }
122
+ $[0] = "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620";
123
+ }
124
+ let t0;
125
+ if ($[1] !== props || $[2] !== ref) {
126
+ t0 = /*#__PURE__*/jsx("div", {
127
+ ...props,
128
+ ref: ref
129
+ });
130
+ $[1] = props;
131
+ $[2] = ref;
132
+ $[3] = t0;
133
+ } else {
134
+ t0 = $[3];
135
+ }
136
+ return t0;
65
137
  });
66
- const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider({
67
- theme = Theme.AUTO,
68
- className,
69
- passToPopups,
70
- children,
71
- WrapperComponent = DefaultWrapper,
72
- target,
73
- ...restProps
74
- }, ref) {
138
+ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(t0, ref) {
139
+ const $ = c(34);
140
+ if ($[0] !== "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620") {
141
+ for (let $i = 0; $i < 34; $i += 1) {
142
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
143
+ }
144
+ $[0] = "420c141f405e041fcedabc175502fba7d82b5112935d96597788965382528620";
145
+ }
146
+ let children;
147
+ let className;
148
+ let passToPopups;
149
+ let restProps;
150
+ let t1;
151
+ let t2;
152
+ let target;
153
+ if ($[1] !== t0) {
154
+ ({
155
+ theme: t1,
156
+ className,
157
+ passToPopups,
158
+ children,
159
+ WrapperComponent: t2,
160
+ target,
161
+ ...restProps
162
+ } = t0);
163
+ $[1] = t0;
164
+ $[2] = children;
165
+ $[3] = className;
166
+ $[4] = passToPopups;
167
+ $[5] = restProps;
168
+ $[6] = t1;
169
+ $[7] = t2;
170
+ $[8] = target;
171
+ } else {
172
+ children = $[2];
173
+ className = $[3];
174
+ passToPopups = $[4];
175
+ restProps = $[5];
176
+ t1 = $[6];
177
+ t2 = $[7];
178
+ target = $[8];
179
+ }
180
+ const theme = t1 === undefined ? Theme.AUTO : t1;
181
+ const WrapperComponent = t2 === undefined ? DefaultWrapper : t2;
75
182
  const systemTheme = useTheme();
76
183
  const resolvedTheme = theme === Theme.AUTO ? systemTheme : theme;
77
- const id = useMemo(() => getUID('popups-with-theme-'), []);
78
- const themeValue = useMemo(() => ({
79
- theme: resolvedTheme
80
- }), [resolvedTheme]);
81
- useEffect(() => {
82
- if (target) {
83
- applyTheme(resolvedTheme, target);
84
- }
85
- }, [resolvedTheme, target]);
184
+ let t3;
185
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
186
+ t3 = getUID("popups-with-theme-");
187
+ $[9] = t3;
188
+ } else {
189
+ t3 = $[9];
190
+ }
191
+ const id = t3;
192
+ let t4;
193
+ if ($[10] !== resolvedTheme) {
194
+ t4 = {
195
+ theme: resolvedTheme
196
+ };
197
+ $[10] = resolvedTheme;
198
+ $[11] = t4;
199
+ } else {
200
+ t4 = $[11];
201
+ }
202
+ const themeValue = t4;
203
+ let t5;
204
+ let t6;
205
+ if ($[12] !== resolvedTheme || $[13] !== target) {
206
+ t5 = () => {
207
+ if (target) {
208
+ applyTheme(resolvedTheme, target);
209
+ }
210
+ };
211
+ t6 = [resolvedTheme, target];
212
+ $[12] = resolvedTheme;
213
+ $[13] = target;
214
+ $[14] = t5;
215
+ $[15] = t6;
216
+ } else {
217
+ t5 = $[14];
218
+ t6 = $[15];
219
+ }
220
+ useEffect(t5, t6);
86
221
  const themeClasses = useThemeClasses(theme);
87
222
  const parentTarget = useContext(PopupTargetContext);
88
- return jsx(ThemeContext.Provider, {
89
- value: themeValue,
90
- children: jsx(WrapperComponent, {
223
+ let t7;
224
+ if ($[16] !== className || $[17] !== target || $[18] !== themeClasses) {
225
+ t7 = target ? undefined : classNames(className, themeClasses);
226
+ $[16] = className;
227
+ $[17] = target;
228
+ $[18] = themeClasses;
229
+ $[19] = t7;
230
+ } else {
231
+ t7 = $[19];
232
+ }
233
+ let t8;
234
+ if ($[20] !== children || $[21] !== parentTarget || $[22] !== passToPopups || $[23] !== themeClasses) {
235
+ t8 = passToPopups ? /*#__PURE__*/jsx(PopupTarget, {
236
+ id: id,
237
+ children: popupTarget => /*#__PURE__*/jsxs(Fragment, {
238
+ children: [children, /*#__PURE__*/createPortal(/*#__PURE__*/jsx("div", {
239
+ className: themeClasses,
240
+ children: popupTarget
241
+ }), parentTarget && getPopupContainer(parentTarget) || document.body)]
242
+ })
243
+ }) : children;
244
+ $[20] = children;
245
+ $[21] = parentTarget;
246
+ $[22] = passToPopups;
247
+ $[23] = themeClasses;
248
+ $[24] = t8;
249
+ } else {
250
+ t8 = $[24];
251
+ }
252
+ let t9;
253
+ if ($[25] !== WrapperComponent || $[26] !== ref || $[27] !== restProps || $[28] !== t7 || $[29] !== t8) {
254
+ t9 = /*#__PURE__*/jsx(WrapperComponent, {
91
255
  ref: ref,
92
- className: target ? undefined : classNames(className, themeClasses),
256
+ className: t7,
93
257
  ...restProps,
94
- children: passToPopups ? jsx(PopupTarget, {
95
- id: id,
96
- children: popupTarget => jsxs(Fragment, {
97
- children: [children, /*#__PURE__*/createPortal(jsx("div", {
98
- className: themeClasses,
99
- children: popupTarget
100
- }), parentTarget && getPopupContainer(parentTarget) || document.body)]
101
- })
102
- }) : children
103
- })
104
- });
258
+ children: t8
259
+ });
260
+ $[25] = WrapperComponent;
261
+ $[26] = ref;
262
+ $[27] = restProps;
263
+ $[28] = t7;
264
+ $[29] = t8;
265
+ $[30] = t9;
266
+ } else {
267
+ t9 = $[30];
268
+ }
269
+ let t10;
270
+ if ($[31] !== t9 || $[32] !== themeValue) {
271
+ t10 = /*#__PURE__*/jsx(ThemeContext.Provider, {
272
+ value: themeValue,
273
+ children: t9
274
+ });
275
+ $[31] = t9;
276
+ $[32] = themeValue;
277
+ $[33] = t10;
278
+ } else {
279
+ t10 = $[33];
280
+ }
281
+ return t10;
105
282
  });
106
283
  var Theme$1 = Theme;
107
284
 
@@ -1,9 +1,9 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
1
  import { PureComponent } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import focusSensorHOC from '../global/focus-sensor-hoc.js';
5
4
  import Checkbox from '../checkbox/checkbox.js';
6
5
  import getUID from '../global/get-uid.js';
6
+ import { jsxs, jsx } from 'react/jsx-runtime';
7
7
 
8
8
  var styles = {"dataListWrapper":"ring-data-list-dataListWrapper","dataList":"ring-data-list-dataList","itemContent":"ring-data-list-itemContent","title":"ring-data-list-title","disabledHover":"ring-data-list-disabledHover","titleSelected":"ring-data-list-titleSelected","titleFocused":"ring-data-list-titleFocused","showMore":"ring-data-list-showMore","boxes":"ring-data-list-boxes","checkboxBox":"ring-data-list-checkboxBox","collapseButton":"ring-data-list-collapseButton","collapseIcon":"ring-data-list-collapseIcon","loadingOverlay":"ring-data-list-loadingOverlay","showMoreLoader":"ring-data-list-showMoreLoader"};
9
9
 
@@ -47,18 +47,18 @@ class Title extends PureComponent {
47
47
  [styles.titleFocused]: showFocus,
48
48
  [styles.titleSelected]: selected
49
49
  });
50
- return jsxs("div", {
50
+ return /*#__PURE__*/jsxs("div", {
51
51
  id: this.id,
52
52
  className: classes,
53
53
  style: {
54
54
  paddingLeft: offset
55
55
  },
56
56
  ref: innerRef,
57
- children: [jsxs("div", {
57
+ children: [/*#__PURE__*/jsxs("div", {
58
58
  className: styles.boxes,
59
- children: [selectable && jsx("div", {
59
+ children: [selectable && /*#__PURE__*/jsx("div", {
60
60
  className: styles.checkboxBox,
61
- children: jsx(Checkbox, {
61
+ children: /*#__PURE__*/jsx(Checkbox, {
62
62
  "aria-labelledby": this.id,
63
63
  className: showFocus ? 'ring-checkbox_focus' : '',
64
64
  checked: selected,
@@ -92,6 +92,6 @@ export default class Alert extends PureComponent<AlertProps, State> {
92
92
  */
93
93
  private _getIcon;
94
94
  storeAlertRef: (node: HTMLDivElement | null) => void;
95
- render(): import("react/jsx-runtime").JSX.Element;
95
+ render(): React.JSX.Element;
96
96
  }
97
97
  export { default as Container } from './container';
@@ -1,4 +1,3 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
1
  import { PureComponent } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import exceptionIcon from '@jetbrains/icons/exception';
@@ -11,10 +10,12 @@ import { getRect } from '../global/dom.js';
11
10
  import joinDataTestAttributes from '../global/data-tests.js';
12
11
  import { Button } from '../button/button.js';
13
12
  import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
13
+ import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  export { default as Container } from './container.js';
15
15
  import { Color } from '../icon/icon.constants.js';
16
16
  import 'util-deprecate';
17
17
  import '../_helpers/icon-svg.js';
18
+ import 'react-compiler-runtime';
18
19
  import '../global/memoize.js';
19
20
  import '@jetbrains/icons/chevron-down';
20
21
  import '@jetbrains/icons/chevron-12px-down';
@@ -143,13 +144,14 @@ class Alert extends PureComponent {
143
144
  * @private
144
145
  */
145
146
  _getCaption() {
146
- return jsx("span", {
147
+ return /*#__PURE__*/jsx("span", {
147
148
  className: classNames(styles.caption, this.props.captionClassName, {
148
149
  [styles.withCloseButton]: this.props.closeable
149
150
  }),
150
- onClick: this._handleCaptionsLinksClick,
151
+ onClick: this._handleCaptionsLinksClick
151
152
  // We only process clicks on `a` elements, see above
152
- role: 'presentation',
153
+ ,
154
+ role: "presentation",
153
155
  children: this.props.children
154
156
  });
155
157
  }
@@ -160,14 +162,14 @@ class Alert extends PureComponent {
160
162
  _getIcon() {
161
163
  const glyph = TypeToIcon[this.props.type];
162
164
  if (glyph) {
163
- return jsx(Icon, {
165
+ return /*#__PURE__*/jsx(Icon, {
164
166
  glyph: glyph,
165
167
  className: styles.icon,
166
168
  color: TypeToIconColor[this.props.type] || Color.DEFAULT
167
169
  });
168
170
  }
169
171
  if (this.props.type === AlertType.LOADING) {
170
- return jsx(LoaderInline, {
172
+ return /*#__PURE__*/jsx(LoaderInline, {
171
173
  className: styles.loader
172
174
  });
173
175
  }
@@ -200,18 +202,18 @@ class Alert extends PureComponent {
200
202
  const style = height ? {
201
203
  marginBottom: -height
202
204
  } : undefined;
203
- return jsxs(ThemeProvider, {
205
+ return /*#__PURE__*/jsxs(ThemeProvider, {
204
206
  theme: theme,
205
207
  className: classes,
206
208
  "data-test": joinDataTestAttributes('alert', dataTest),
207
209
  "data-test-type": type,
208
210
  style: style,
209
211
  ref: this.storeAlertRef,
210
- children: [this._getIcon(), this._getCaption(), this.props.closeable ? jsx(Button, {
212
+ children: [this._getIcon(), this._getCaption(), this.props.closeable ? /*#__PURE__*/jsx(Button, {
211
213
  icon: closeIcon,
212
214
  className: classNames(styles.close, closeButtonClassName),
213
- "data-test": 'alert-close',
214
- "aria-label": 'close alert',
215
+ "data-test": "alert-close",
216
+ "aria-label": "close alert",
215
217
  onClick: this.closeRequest
216
218
  }) : '']
217
219
  });
@@ -1,7 +1,7 @@
1
- import { jsx } from 'react/jsx-runtime';
2
1
  import { PureComponent, Children, isValidElement, cloneElement } from 'react';
3
2
  import { createPortal } from 'react-dom';
4
3
  import classNames from 'classnames';
4
+ import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  var styles = {"alertContainer":"ring-container-alertContainer","alertInContainer":"ring-container-alertInContainer ring-alert-alert"};
7
7
 
@@ -17,10 +17,10 @@ class Alerts extends PureComponent {
17
17
  if (!show) {
18
18
  return null;
19
19
  }
20
- return /*#__PURE__*/createPortal(jsx("div", {
21
- "data-test": 'alert-container',
20
+ return /*#__PURE__*/createPortal(/*#__PURE__*/jsx("div", {
21
+ "data-test": "alert-container",
22
22
  className: classes,
23
- "aria-live": 'polite',
23
+ "aria-live": "polite",
24
24
  ...restProps,
25
25
  children: Children.map(children, child => {
26
26
  if (! /*#__PURE__*/isValidElement(child)) {
@@ -15,7 +15,7 @@ export declare class AlertService {
15
15
  containerElement: HTMLDivElement;
16
16
  reactRoot: import("react-dom/client").Root;
17
17
  _getShowingAlerts(): AlertItem[];
18
- renderAlertContainer(alerts: readonly AlertItem[]): import("react/jsx-runtime").JSX.Element;
18
+ renderAlertContainer(alerts: readonly AlertItem[]): import("react").JSX.Element;
19
19
  /**
20
20
  * Renders alert container into virtual node to skip maintaining container
21
21
  */
@@ -1,7 +1,7 @@
1
- import { jsx } from 'react/jsx-runtime';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import getUID from '../global/get-uid.js';
4
3
  import Alert, { ANIMATION_TIME } from '../alert/alert.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
5
  import Alerts from '../alert/container.js';
6
6
  import 'react';
7
7
  import 'classnames';
@@ -13,6 +13,7 @@ import '../icon/icon.js';
13
13
  import 'util-deprecate';
14
14
  import '../icon/icon.constants.js';
15
15
  import '../_helpers/icon-svg.js';
16
+ import 'react-compiler-runtime';
16
17
  import '../global/memoize.js';
17
18
  import '../loader-inline/loader-inline.js';
18
19
  import '../global/data-tests.js';
@@ -54,16 +55,16 @@ class AlertService {
54
55
  }
55
56
  renderAlertContainer(alerts) {
56
57
  if (alerts.length === 0) {
57
- return jsx("span", {});
58
+ return /*#__PURE__*/jsx("span", {});
58
59
  }
59
- return jsx(Alerts, {
60
+ return /*#__PURE__*/jsx(Alerts, {
60
61
  children: alerts.map(alert => {
61
62
  const {
62
63
  message,
63
64
  key,
64
65
  ...rest
65
66
  } = alert;
66
- return jsx(Alert, {
67
+ return /*#__PURE__*/jsx(Alert, {
67
68
  ...rest,
68
69
  children: message
69
70
  }, key);