@jetbrains/ring-ui-built 7.0.72 → 7.0.74

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 +13 -12
  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 +4 -9
@@ -1,40 +1,92 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { useState, useId, useMemo, useCallback } from 'react';
1
+ import { c } from 'react-compiler-runtime';
2
+ import { useState, useId } from 'react';
3
3
  import { CollapseContext } from './collapse-context.js';
4
4
  import { BASE_ANIMATION_DURATION } from './consts.js';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
- /**
7
- * @name Collapse
8
- */
9
- const Collapse = ({
10
- children,
11
- duration = BASE_ANIMATION_DURATION,
12
- disableAnimation = false,
13
- className = '',
14
- onChange = () => {},
15
- defaultCollapsed = true,
16
- collapsed = null
17
- }) => {
7
+ const Collapse = t0 => {
8
+ const $ = c(16);
9
+ if ($[0] !== "a4a6b3332539b9c2959a845fc7f7ca21f64b1f889ab9f549f7c7d22f6a1be723") {
10
+ for (let $i = 0; $i < 16; $i += 1) {
11
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
12
+ }
13
+ $[0] = "a4a6b3332539b9c2959a845fc7f7ca21f64b1f889ab9f549f7c7d22f6a1be723";
14
+ }
15
+ const {
16
+ children,
17
+ duration: t1,
18
+ disableAnimation: t2,
19
+ className: t3,
20
+ onChange: t4,
21
+ defaultCollapsed: t5,
22
+ collapsed: t6
23
+ } = t0;
24
+ const duration = t1 === undefined ? BASE_ANIMATION_DURATION : t1;
25
+ const disableAnimation = t2 === undefined ? false : t2;
26
+ const className = t3 === undefined ? "" : t3;
27
+ const onChange = t4 === undefined ? _temp : t4;
28
+ const defaultCollapsed = t5 === undefined ? true : t5;
29
+ const collapsed = t6 === undefined ? null : t6;
18
30
  const [innerCollapsed, setInnerCollapsed] = useState(defaultCollapsed);
19
31
  const id = useId();
20
- const finalCollapsedValue = useMemo(() => collapsed !== null && collapsed !== void 0 ? collapsed : innerCollapsed, [innerCollapsed, collapsed]);
21
- const setCollapsed = useCallback(() => {
22
- setInnerCollapsed(!finalCollapsedValue);
23
- onChange(!finalCollapsedValue);
24
- }, [setInnerCollapsed, onChange, finalCollapsedValue]);
25
- return jsx("div", {
26
- className: className,
27
- children: jsx(CollapseContext.Provider, {
28
- value: {
29
- collapsed: finalCollapsedValue,
30
- setCollapsed,
31
- duration,
32
- disableAnimation,
33
- id
34
- },
32
+ const finalCollapsedValue = collapsed !== null && collapsed !== void 0 ? collapsed : innerCollapsed;
33
+ let t7;
34
+ if ($[1] !== finalCollapsedValue || $[2] !== onChange) {
35
+ t7 = () => {
36
+ setInnerCollapsed(!finalCollapsedValue);
37
+ onChange(!finalCollapsedValue);
38
+ };
39
+ $[1] = finalCollapsedValue;
40
+ $[2] = onChange;
41
+ $[3] = t7;
42
+ } else {
43
+ t7 = $[3];
44
+ }
45
+ const setCollapsed = t7;
46
+ let t8;
47
+ if ($[4] !== disableAnimation || $[5] !== duration || $[6] !== finalCollapsedValue || $[7] !== id || $[8] !== setCollapsed) {
48
+ t8 = {
49
+ collapsed: finalCollapsedValue,
50
+ setCollapsed,
51
+ duration,
52
+ disableAnimation,
53
+ id
54
+ };
55
+ $[4] = disableAnimation;
56
+ $[5] = duration;
57
+ $[6] = finalCollapsedValue;
58
+ $[7] = id;
59
+ $[8] = setCollapsed;
60
+ $[9] = t8;
61
+ } else {
62
+ t8 = $[9];
63
+ }
64
+ let t9;
65
+ if ($[10] !== children || $[11] !== t8) {
66
+ t9 = /*#__PURE__*/jsx(CollapseContext.Provider, {
67
+ value: t8,
35
68
  children: children
36
- })
37
- });
69
+ });
70
+ $[10] = children;
71
+ $[11] = t8;
72
+ $[12] = t9;
73
+ } else {
74
+ t9 = $[12];
75
+ }
76
+ let t10;
77
+ if ($[13] !== className || $[14] !== t9) {
78
+ t10 = /*#__PURE__*/jsx("div", {
79
+ className: className,
80
+ children: t9
81
+ });
82
+ $[13] = className;
83
+ $[14] = t9;
84
+ $[15] = t10;
85
+ } else {
86
+ t10 = $[15];
87
+ }
88
+ return t10;
38
89
  };
90
+ function _temp() {}
39
91
 
40
92
  export { Collapse, Collapse as default };
@@ -31,6 +31,6 @@ export default class Confirm extends PureComponent<ConfirmProps> {
31
31
  onReject: () => void;
32
32
  };
33
33
  onEscPress: () => void;
34
- render(): import("react/jsx-runtime").JSX.Element;
34
+ render(): React.JSX.Element;
35
35
  }
36
36
  export type ConfirmAttributes = React.JSX.LibraryManagedAttributes<typeof Confirm, ConfirmProps>;
@@ -1,8 +1,8 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
1
  import { PureComponent } from 'react';
3
2
  import Dialog from '../dialog/dialog.js';
4
3
  import { Button } from '../button/button.js';
5
4
  import 'classnames';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
6
  import '../_helpers/island.js';
7
7
  import HeaderWrapper from '../island/header.js';
8
8
  import ContentWrapper from '../island/content.js';
@@ -13,6 +13,7 @@ import '../island/island.js';
13
13
  import '../global/data-tests.js';
14
14
  import '../island/adaptive-island-hoc.js';
15
15
  import '../global/linear-function.js';
16
+ import 'react-compiler-runtime';
16
17
  import 'element-resize-detector';
17
18
  import '../global/schedule-raf.js';
18
19
  import '../global/get-uid.js';
@@ -42,9 +43,6 @@ import '../link/clickable-link.js';
42
43
  import '../global/controls-height.js';
43
44
  import '../_helpers/button.classes.js';
44
45
 
45
- /**
46
- * @name Confirm
47
- */
48
46
  class Confirm extends PureComponent {
49
47
  static defaultProps = {
50
48
  text: null,
@@ -77,28 +75,28 @@ class Confirm extends PureComponent {
77
75
  onReject,
78
76
  native
79
77
  } = this.props;
80
- return jsxs(Dialog, {
78
+ return /*#__PURE__*/jsxs(Dialog, {
81
79
  label: text || (typeof description === 'string' ? description : undefined),
82
80
  className: className,
83
81
  onEscPress: this.onEscPress,
84
82
  show: show,
85
83
  trapFocus: true,
86
- "data-test": 'ring-confirm',
84
+ "data-test": "ring-confirm",
87
85
  native: native,
88
- children: [text && jsx(HeaderWrapper, {
86
+ children: [text && /*#__PURE__*/jsx(HeaderWrapper, {
89
87
  children: text
90
- }), description && jsx(ContentWrapper, {
88
+ }), description && /*#__PURE__*/jsx(ContentWrapper, {
91
89
  children: description
92
- }), jsxs(Panel, {
93
- children: [jsx(Button, {
94
- "data-test": 'confirm-ok-button',
90
+ }), /*#__PURE__*/jsxs(Panel, {
91
+ children: [/*#__PURE__*/jsx(Button, {
92
+ "data-test": "confirm-ok-button",
95
93
  primary: !cancelIsDefault,
96
94
  loader: inProgress,
97
95
  disabled: inProgress,
98
96
  onClick: onConfirm,
99
97
  children: confirmLabel
100
- }), jsx(Button, {
101
- "data-test": 'confirm-reject-button',
98
+ }), /*#__PURE__*/jsx(Button, {
99
+ "data-test": "confirm-reject-button",
102
100
  onClick: onReject,
103
101
  disabled: inProgress,
104
102
  primary: cancelIsDefault,
@@ -1,7 +1,7 @@
1
- import { jsx } from 'react/jsx-runtime';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import Confirm from '../confirm/confirm.js';
4
3
  import { getGlobalControlsHeight, ControlsHeightContext } from '../global/controls-height.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import '../dialog/dialog.js';
7
7
  import 'react-dom';
@@ -13,6 +13,7 @@ import '../island/adaptive-island-hoc.js';
13
13
  import '../global/linear-function.js';
14
14
  import '../_helpers/island.js';
15
15
  import '../island/header.js';
16
+ import 'react-compiler-runtime';
16
17
  import '../island/content.js';
17
18
  import 'element-resize-detector';
18
19
  import '../global/schedule-raf.js';
@@ -54,9 +55,9 @@ function renderConfirm(props) {
54
55
  buttonsHeight = getGlobalControlsHeight(),
55
56
  ...restProps
56
57
  } = props;
57
- reactRoot.render(jsx(ControlsHeightContext.Provider, {
58
+ reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
58
59
  value: buttonsHeight,
59
- children: jsx(Confirm, {
60
+ children: /*#__PURE__*/jsx(Confirm, {
60
61
  ...restProps
61
62
  })
62
63
  }));
@@ -14,6 +14,6 @@ export default class ContentLayout extends Component<ContentLayoutProps> {
14
14
  contentNode: null;
15
15
  };
16
16
  saveContentNode: (contentNode: HTMLElement | null) => void;
17
- render(): import("react/jsx-runtime").JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  }
19
19
  export { default as Sidebar } from './sidebar';
@@ -1,12 +1,9 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
1
  import { Component, Children, cloneElement } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import 'react-waypoint';
6
6
 
7
- /**
8
- * @name Content Layout
9
- */
10
7
  class ContentLayout extends Component {
11
8
  static defaultProps = {
12
9
  responsive: true
@@ -37,11 +34,11 @@ class ContentLayout extends Component {
37
34
  contentNode: this.state.contentNode
38
35
  });
39
36
  const contentChildren = childrenArray.filter(child => child !== sidebarChild);
40
- return jsxs("div", {
41
- "data-test": 'content-layout',
37
+ return /*#__PURE__*/jsxs("div", {
38
+ "data-test": "content-layout",
42
39
  ...restProps,
43
40
  className: classes,
44
- children: [sidebar, jsx("main", {
41
+ children: [sidebar, /*#__PURE__*/jsx("main", {
45
42
  className: contentClasses,
46
43
  ref: this.saveContentNode,
47
44
  children: contentChildren
@@ -18,5 +18,5 @@ export default class Sidebar extends Component<SidebarProps> {
18
18
  shouldUseFixation(): boolean;
19
19
  shouldFixateBottom(): boolean;
20
20
  sidebarRef: (node: HTMLElement | null) => void;
21
- render(): import("react/jsx-runtime").JSX.Element;
21
+ render(): import("react").JSX.Element;
22
22
  }
@@ -1,5 +1,5 @@
1
- import 'react/jsx-runtime';
2
1
  import 'react';
3
2
  import 'classnames';
4
3
  import 'react-waypoint';
5
4
  export { S as default } from '../_helpers/sidebar.js';
5
+ import 'react/jsx-runtime';
@@ -18,9 +18,9 @@ declare class ContentEditableBase extends Component<ContentEditableBaseProps> {
18
18
  };
19
19
  shouldComponentUpdate(nextProps: ContentEditableBaseProps): boolean;
20
20
  componentDidUpdate(prevProps: ContentEditableBaseProps): void;
21
- render(): import("react/jsx-runtime").JSX.Element;
21
+ render(): import("react").JSX.Element;
22
22
  }
23
23
  type ContentEditableBaseAttrs = React.JSX.LibraryManagedAttributes<typeof ContentEditableBase, ContentEditableBaseProps>;
24
24
  export type ContentEditableProps = Omit<ContentEditableBaseAttrs, '__html'>;
25
- declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react/jsx-runtime").JSX.Element;
25
+ declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react").JSX.Element;
26
26
  export default ContentEditable;
@@ -1,10 +1,8 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { c } from 'react-compiler-runtime';
2
2
  import { Component } from 'react';
3
3
  import { renderToStaticMarkup } from 'react-dom/server';
4
+ import { jsx } from 'react/jsx-runtime';
4
5
 
5
- /**
6
- * @name ContentEditable
7
- */
8
6
  function noop() {}
9
7
  class ContentEditableBase extends Component {
10
8
  static defaultProps = {
@@ -29,13 +27,14 @@ class ContentEditableBase extends Component {
29
27
  inputRef,
30
28
  ...props
31
29
  } = this.props;
32
- return jsx("div", {
30
+ return /*#__PURE__*/jsx("div", {
33
31
  ...props,
34
- ref: inputRef,
32
+ ref: inputRef
35
33
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
34
  // @ts-ignore
35
+ ,
37
36
  disabled: disabled,
38
- role: 'textbox',
37
+ role: "textbox",
39
38
  tabIndex: disabled ? undefined : tabIndex,
40
39
  contentEditable: !this.props.disabled,
41
40
  dangerouslySetInnerHTML: {
@@ -44,12 +43,49 @@ class ContentEditableBase extends Component {
44
43
  });
45
44
  }
46
45
  }
47
- const ContentEditable = ({
48
- children,
49
- ...props
50
- }) => jsx(ContentEditableBase, {
51
- ...props,
52
- __html: renderToStaticMarkup(children)
53
- });
46
+ const ContentEditable = t0 => {
47
+ const $ = c(9);
48
+ if ($[0] !== "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348") {
49
+ for (let $i = 0; $i < 9; $i += 1) {
50
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
51
+ }
52
+ $[0] = "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348";
53
+ }
54
+ let children;
55
+ let props;
56
+ if ($[1] !== t0) {
57
+ ({
58
+ children,
59
+ ...props
60
+ } = t0);
61
+ $[1] = t0;
62
+ $[2] = children;
63
+ $[3] = props;
64
+ } else {
65
+ children = $[2];
66
+ props = $[3];
67
+ }
68
+ let t1;
69
+ if ($[4] !== children) {
70
+ t1 = renderToStaticMarkup(children);
71
+ $[4] = children;
72
+ $[5] = t1;
73
+ } else {
74
+ t1 = $[5];
75
+ }
76
+ let t2;
77
+ if ($[6] !== props || $[7] !== t1) {
78
+ t2 = /*#__PURE__*/jsx(ContentEditableBase, {
79
+ ...props,
80
+ __html: t1
81
+ });
82
+ $[6] = props;
83
+ $[7] = t1;
84
+ $[8] = t2;
85
+ } else {
86
+ t2 = $[8];
87
+ }
88
+ return t2;
89
+ };
54
90
 
55
91
  export { ContentEditable as default };
@@ -1,4 +1,4 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  type ControlHelpProps = HTMLAttributes<HTMLDivElement>;
3
- export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react").JSX.Element;
4
4
  export {};
@@ -1,16 +1,52 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { c } from 'react-compiler-runtime';
2
2
  import classNames from 'classnames';
3
+ import { jsx } from 'react/jsx-runtime';
3
4
 
4
5
  var styles = {"help":"ring-control-help-help"};
5
6
 
6
- function ControlHelp({
7
- className,
8
- ...restProps
9
- }) {
10
- return jsx("div", {
11
- className: classNames(className, styles.help),
12
- ...restProps
13
- });
7
+ function ControlHelp(t0) {
8
+ const $ = c(9);
9
+ if ($[0] !== "bb004edfe1dacdc07f0fa88dca3e2759708deda4b53bc20ef0799dfbcacb049d") {
10
+ for (let $i = 0; $i < 9; $i += 1) {
11
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
12
+ }
13
+ $[0] = "bb004edfe1dacdc07f0fa88dca3e2759708deda4b53bc20ef0799dfbcacb049d";
14
+ }
15
+ let className;
16
+ let restProps;
17
+ if ($[1] !== t0) {
18
+ ({
19
+ className,
20
+ ...restProps
21
+ } = t0);
22
+ $[1] = t0;
23
+ $[2] = className;
24
+ $[3] = restProps;
25
+ } else {
26
+ className = $[2];
27
+ restProps = $[3];
28
+ }
29
+ let t1;
30
+ if ($[4] !== className) {
31
+ t1 = classNames(className, styles.help);
32
+ $[4] = className;
33
+ $[5] = t1;
34
+ } else {
35
+ t1 = $[5];
36
+ }
37
+ let t2;
38
+ if ($[6] !== restProps || $[7] !== t1) {
39
+ t2 = /*#__PURE__*/jsx("div", {
40
+ className: t1,
41
+ ...restProps
42
+ });
43
+ $[6] = restProps;
44
+ $[7] = t1;
45
+ $[8] = t2;
46
+ } else {
47
+ t2 = $[8];
48
+ }
49
+ return t2;
14
50
  }
15
51
 
16
52
  export { ControlHelp as default };
@@ -1,5 +1,7 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { c } from 'react-compiler-runtime';
2
+ import 'react';
2
3
  import classNames from 'classnames';
4
+ import { jsx } from 'react/jsx-runtime';
3
5
 
4
6
  var styles = {"label":"ring-control-label-label","formLabel":"ring-control-label-formLabel","secondaryLabel":"ring-control-label-secondaryLabel","disabledLabel":"ring-control-label-disabledLabel"};
5
7
 
@@ -12,17 +14,64 @@ const classNameByType = {
12
14
  [LabelType.SECONDARY]: styles.secondaryLabel,
13
15
  [LabelType.FORM]: styles.formLabel
14
16
  };
15
- const ControlLabel = ({
16
- children,
17
- type = LabelType.SECONDARY,
18
- disabled,
19
- ...rest
20
- }) => jsx("label", {
21
- className: classNames(styles.label, classNameByType[type], {
22
- [styles.disabledLabel]: disabled
23
- }),
24
- ...rest,
25
- children: children
26
- });
17
+ const ControlLabel = t0 => {
18
+ const $ = c(13);
19
+ if ($[0] !== "bb4c1a3448a8ab687255dd795b9f172a7ee374fecb5dfc264c1d31d9ce69f171") {
20
+ for (let $i = 0; $i < 13; $i += 1) {
21
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
22
+ }
23
+ $[0] = "bb4c1a3448a8ab687255dd795b9f172a7ee374fecb5dfc264c1d31d9ce69f171";
24
+ }
25
+ let children;
26
+ let disabled;
27
+ let rest;
28
+ let t1;
29
+ if ($[1] !== t0) {
30
+ ({
31
+ children,
32
+ type: t1,
33
+ disabled,
34
+ ...rest
35
+ } = t0);
36
+ $[1] = t0;
37
+ $[2] = children;
38
+ $[3] = disabled;
39
+ $[4] = rest;
40
+ $[5] = t1;
41
+ } else {
42
+ children = $[2];
43
+ disabled = $[3];
44
+ rest = $[4];
45
+ t1 = $[5];
46
+ }
47
+ const type = t1 === undefined ? LabelType.SECONDARY : t1;
48
+ const t2 = classNameByType[type];
49
+ let t3;
50
+ if ($[6] !== disabled || $[7] !== t2) {
51
+ t3 = classNames(styles.label, t2, {
52
+ [styles.disabledLabel]: disabled
53
+ });
54
+ $[6] = disabled;
55
+ $[7] = t2;
56
+ $[8] = t3;
57
+ } else {
58
+ t3 = $[8];
59
+ }
60
+ let t4;
61
+ if ($[9] !== children || $[10] !== rest || $[11] !== t3) {
62
+ t4 = /*#__PURE__*/jsx("label", {
63
+ className: t3,
64
+ ...rest,
65
+ children: children
66
+ });
67
+ $[9] = children;
68
+ $[10] = rest;
69
+ $[11] = t3;
70
+ $[12] = t4;
71
+ } else {
72
+ t4 = $[12];
73
+ }
74
+ return t4;
75
+ };
27
76
 
28
77
  export { ControlLabel, LabelType, ControlLabel as default };
@@ -21,6 +21,6 @@ type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHov
21
21
  export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
22
22
  export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
23
23
  DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
24
- render(): import("react/jsx-runtime").JSX.Element;
24
+ render(): import("react").JSX.Element;
25
25
  }
26
26
  export {};
@@ -1,4 +1,3 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
1
  import { Component, PureComponent } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import focusSensorHOC from '../global/focus-sensor-hoc.js';
@@ -9,6 +8,7 @@ import Shortcuts from '../shortcuts/shortcuts.js';
9
8
  import Loader from '../loader/loader.js';
10
9
  import Item, { moreLessButtonStates } from './item.js';
11
10
  import { s as styles } from '../_helpers/title.js';
11
+ import { jsx, jsxs } from 'react/jsx-runtime';
12
12
  import '../global/compose-refs.js';
13
13
  import 'memoize-one';
14
14
  import '../shortcuts/core.js';
@@ -31,6 +31,7 @@ import 'util-deprecate';
31
31
  import '../icon/icon.js';
32
32
  import '../icon/icon.constants.js';
33
33
  import '../_helpers/icon-svg.js';
34
+ import 'react-compiler-runtime';
34
35
  import '../global/memoize.js';
35
36
  import '../global/controls-height.js';
36
37
  import '../global/configuration.js';
@@ -121,14 +122,14 @@ class DataList extends PureComponent {
121
122
  [styles.disabledHover]: disabledHover,
122
123
  [styles.multiSelection]: selection.getSelected().size > 0
123
124
  });
124
- return jsxs("div", {
125
+ return /*#__PURE__*/jsxs("div", {
125
126
  className: styles.dataListWrapper,
126
- "data-test": 'ring-data-list',
127
+ "data-test": "ring-data-list",
127
128
  ref: innerRef,
128
- children: [focused && jsx(Shortcuts, {
129
+ children: [focused && /*#__PURE__*/jsx(Shortcuts, {
129
130
  map: shortcutsMap,
130
131
  scope: this.shortcutsScope
131
- }), jsx("ul", {
132
+ }), /*#__PURE__*/jsx("ul", {
132
133
  className: classes,
133
134
  children: data.map(model => {
134
135
  const item = itemFormatter(model);
@@ -139,7 +140,7 @@ class DataList extends PureComponent {
139
140
  items
140
141
  } = item;
141
142
  const showMoreLessButton = this.props.itemMoreLessState?.(item);
142
- return jsx(Item, {
143
+ return /*#__PURE__*/jsx(Item, {
143
144
  item: model,
144
145
  title: title,
145
146
  items: items,
@@ -159,9 +160,9 @@ class DataList extends PureComponent {
159
160
  onItemMoreLess: this.props.onItemMoreLess
160
161
  }, key || id);
161
162
  })
162
- }), loading && jsx("div", {
163
+ }), loading && /*#__PURE__*/jsx("div", {
163
164
  className: data.length > 0 ? styles.loadingOverlay : undefined,
164
- children: jsx(Loader, {})
165
+ children: /*#__PURE__*/jsx(Loader, {})
165
166
  })]
166
167
  });
167
168
  }
@@ -172,7 +173,7 @@ class DataListContainer extends Component {
172
173
  // https://stackoverflow.com/a/53882322/6304152
173
174
  DataList = getContainer();
174
175
  render() {
175
- return jsx(this.DataList, {
176
+ return /*#__PURE__*/jsx(this.DataList, {
176
177
  ...this.props
177
178
  });
178
179
  }
@@ -11,6 +11,6 @@ export declare const moreItems: {
11
11
  id: number;
12
12
  selectable: boolean;
13
13
  collapsible: boolean;
14
- title: import("react/jsx-runtime").JSX.Element;
14
+ title: import("react").JSX.Element;
15
15
  }[];
16
16
  export default items;