@jetbrains/ring-ui-built 7.0.71 → 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,5 +1,5 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { useMemo, useRef, useEffect, createElement } from 'react';
1
+ import { c } from 'react-compiler-runtime';
2
+ import { useRef, useEffect, createElement } from 'react';
3
3
  import { addMonths } from 'date-fns/addMonths';
4
4
  import { getDay } from 'date-fns/getDay';
5
5
  import { getDaysInMonth } from 'date-fns/getDaysInMonth';
@@ -11,8 +11,9 @@ import linearFunction from '../global/linear-function.js';
11
11
  import useEventCallback from '../global/use-event-callback.js';
12
12
  import Month from './month.js';
13
13
  import MonthNames from './month-names.js';
14
- import { s as styles } from '../_helpers/date-picker.js';
15
14
  import units, { DOUBLE, HALF, WEEK, weekdays } from './consts.js';
15
+ import { s as styles } from '../_helpers/date-picker.js';
16
+ import { jsx, jsxs } from 'react/jsx-runtime';
16
17
  import 'date-fns/addDays';
17
18
  import 'date-fns/format';
18
19
  import 'date-fns/setDay';
@@ -58,72 +59,181 @@ function scrollSpeed(date) {
58
59
  const scrollSchedule = scheduleRAF();
59
60
  let dy = 0;
60
61
  function Months(props) {
62
+ const $ = c(33);
63
+ if ($[0] !== "3cc95a30dd33d14752bdcb9dc79c8f6b6353ca4e0a57d98cb2189651222ab926") {
64
+ for (let $i = 0; $i < 33; $i += 1) {
65
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
66
+ }
67
+ $[0] = "3cc95a30dd33d14752bdcb9dc79c8f6b6353ca4e0a57d98cb2189651222ab926";
68
+ }
61
69
  const {
62
70
  scrollDate
63
71
  } = props;
64
- const monthDate = scrollDate instanceof Date ? scrollDate : new Date(scrollDate);
65
- const monthStart = startOfMonth(monthDate);
66
- const months = useMemo(() => {
72
+ let t0;
73
+ if ($[1] !== scrollDate) {
74
+ t0 = scrollDate instanceof Date ? scrollDate : new Date(scrollDate);
75
+ $[1] = scrollDate;
76
+ $[2] = t0;
77
+ } else {
78
+ t0 = $[2];
79
+ }
80
+ const monthDate = t0;
81
+ let t1;
82
+ if ($[3] !== monthDate) {
83
+ t1 = startOfMonth(monthDate);
84
+ $[3] = monthDate;
85
+ $[4] = t1;
86
+ } else {
87
+ t1 = $[4];
88
+ }
89
+ const monthStart = t1;
90
+ let result;
91
+ if ($[5] !== monthStart) {
67
92
  let month = subMonths(monthStart, MONTHSBACK);
68
- const result = [month];
93
+ result = [month];
69
94
  for (let i = 0; i < MONTHSBACK * DOUBLE; i++) {
70
95
  month = addMonths(month, 1);
71
96
  result.push(month);
72
97
  }
73
- return result;
74
- }, [monthStart]);
75
- const currentSpeed = scrollSpeed(scrollDate);
76
- const pxToDate = linearFunction(0, Number(scrollDate), currentSpeed);
77
- const offset = pxToDate.x(Number(monthStart)); // is a negative number
98
+ $[5] = monthStart;
99
+ $[6] = result;
100
+ } else {
101
+ result = $[6];
102
+ }
103
+ const months = result;
104
+ let pxToDate;
105
+ let t2;
106
+ if ($[7] !== monthStart || $[8] !== scrollDate) {
107
+ const currentSpeed = scrollSpeed(scrollDate);
108
+ pxToDate = linearFunction(0, Number(scrollDate), currentSpeed);
109
+ t2 = pxToDate.x(Number(monthStart));
110
+ $[7] = monthStart;
111
+ $[8] = scrollDate;
112
+ $[9] = pxToDate;
113
+ $[10] = t2;
114
+ } else {
115
+ pxToDate = $[9];
116
+ t2 = $[10];
117
+ }
118
+ const offset = t2;
78
119
  const bottomOffset = monthHeight(scrollDate) + offset;
79
120
  const componentRef = useRef(null);
80
- const handleWheel = useEventCallback(e => {
81
- e.preventDefault();
82
- dy += e.deltaY;
83
- scrollSchedule(() => {
84
- let date;
85
- // adjust scroll speed to prevent glitches
86
- if (dy < offset) {
87
- date = pxToDate.y(offset) + (dy - offset) * scrollSpeed(months[1]);
88
- } else if (dy > bottomOffset) {
89
- date = pxToDate.y(bottomOffset) + (dy - bottomOffset) * scrollSpeed(months[MONTHSBACK + 1]);
90
- } else {
91
- date = pxToDate.y(dy);
92
- }
93
- props.onScroll(date);
94
- dy = 0;
95
- });
96
- });
97
- useEffect(() => {
98
- const current = componentRef.current;
99
- if (current) {
100
- current.addEventListener('wheel', handleWheel, {
101
- passive: false
121
+ let t3;
122
+ if ($[11] !== bottomOffset || $[12] !== months || $[13] !== offset || $[14] !== props || $[15] !== pxToDate) {
123
+ t3 = e => {
124
+ e.preventDefault();
125
+ dy = dy + e.deltaY;
126
+ scrollSchedule(() => {
127
+ let date;
128
+ if (dy < offset) {
129
+ date = pxToDate.y(offset) + (dy - offset) * scrollSpeed(months[1]);
130
+ } else {
131
+ if (dy > bottomOffset) {
132
+ date = pxToDate.y(bottomOffset) + (dy - bottomOffset) * scrollSpeed(months[MONTHSBACK + 1]);
133
+ } else {
134
+ date = pxToDate.y(dy);
135
+ }
136
+ }
137
+ props.onScroll(date);
138
+ dy = 0;
102
139
  });
103
- }
104
- return () => {
140
+ };
141
+ $[11] = bottomOffset;
142
+ $[12] = months;
143
+ $[13] = offset;
144
+ $[14] = props;
145
+ $[15] = pxToDate;
146
+ $[16] = t3;
147
+ } else {
148
+ t3 = $[16];
149
+ }
150
+ const handleWheel = useEventCallback(t3);
151
+ let t4;
152
+ let t5;
153
+ if ($[17] !== handleWheel) {
154
+ t4 = () => {
155
+ const current = componentRef.current;
105
156
  if (current) {
106
- current.removeEventListener('wheel', handleWheel);
157
+ current.addEventListener("wheel", handleWheel, {
158
+ passive: false
159
+ });
107
160
  }
161
+ return () => {
162
+ if (current) {
163
+ current.removeEventListener("wheel", handleWheel);
164
+ }
165
+ };
166
+ };
167
+ t5 = [handleWheel];
168
+ $[17] = handleWheel;
169
+ $[18] = t4;
170
+ $[19] = t5;
171
+ } else {
172
+ t4 = $[18];
173
+ t5 = $[19];
174
+ }
175
+ useEffect(t4, t5);
176
+ const t6 = Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset);
177
+ let t7;
178
+ if ($[20] !== t6) {
179
+ t7 = {
180
+ top: t6
108
181
  };
109
- }, [handleWheel]);
110
- return jsxs("div", {
111
- className: styles.months,
112
- ref: componentRef,
113
- children: [jsx("div", {
114
- style: {
115
- top: Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset)
116
- },
182
+ $[20] = t6;
183
+ $[21] = t7;
184
+ } else {
185
+ t7 = $[21];
186
+ }
187
+ let t8;
188
+ if ($[22] !== months || $[23] !== props) {
189
+ t8 = months.map(date_0 => /*#__PURE__*/createElement(Month, {
190
+ ...props,
191
+ month: date_0,
192
+ key: +date_0
193
+ }));
194
+ $[22] = months;
195
+ $[23] = props;
196
+ $[24] = t8;
197
+ } else {
198
+ t8 = $[24];
199
+ }
200
+ let t9;
201
+ if ($[25] !== t7 || $[26] !== t8) {
202
+ t9 = /*#__PURE__*/jsx("div", {
203
+ style: t7,
117
204
  className: styles.days,
118
- children: months.map(date => (/*#__PURE__*/createElement(Month, {
119
- ...props,
120
- month: date,
121
- key: +date
122
- })))
123
- }), jsx(MonthNames, {
205
+ children: t8
206
+ });
207
+ $[25] = t7;
208
+ $[26] = t8;
209
+ $[27] = t9;
210
+ } else {
211
+ t9 = $[27];
212
+ }
213
+ let t10;
214
+ if ($[28] !== props) {
215
+ t10 = /*#__PURE__*/jsx(MonthNames, {
124
216
  ...props
125
- })]
126
- });
217
+ });
218
+ $[28] = props;
219
+ $[29] = t10;
220
+ } else {
221
+ t10 = $[29];
222
+ }
223
+ let t11;
224
+ if ($[30] !== t10 || $[31] !== t9) {
225
+ t11 = /*#__PURE__*/jsxs("div", {
226
+ className: styles.months,
227
+ ref: componentRef,
228
+ children: [t9, t10]
229
+ });
230
+ $[30] = t10;
231
+ $[31] = t9;
232
+ $[32] = t11;
233
+ } else {
234
+ t11 = $[32];
235
+ }
236
+ return t11;
127
237
  }
128
238
 
129
239
  export { Months as default };
@@ -2,5 +2,5 @@ import type { Locale } from 'date-fns';
2
2
  interface WeekdaysProps {
3
3
  locale: Locale | undefined;
4
4
  }
5
- export default function Weekdays(props: WeekdaysProps): import("react/jsx-runtime").JSX.Element;
5
+ export default function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { c } from 'react-compiler-runtime';
2
2
  import classNames from 'classnames';
3
3
  import { getDay } from 'date-fns/getDay';
4
4
  import { format } from 'date-fns/format';
@@ -6,24 +6,64 @@ import { setDay } from 'date-fns/setDay';
6
6
  import { startOfDay } from 'date-fns/startOfDay';
7
7
  import { shiftWeekArray, getWeekStartsOn, weekdays } from './consts.js';
8
8
  import { s as styles } from '../_helpers/date-picker.js';
9
+ import { jsx } from 'react/jsx-runtime';
9
10
  import 'date-fns/add';
10
11
 
11
12
  function Weekdays(props) {
12
- const days = shiftWeekArray(Object.values(weekdays), getWeekStartsOn(props.locale)).map(value => startOfDay(setDay(new Date(), value)));
13
- const {
14
- locale
15
- } = props;
16
- return jsx("div", {
17
- className: styles.weekdays,
18
- children: days.map(day => jsx("span", {
19
- className: classNames(styles.weekday, {
20
- [styles.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day))
21
- }),
22
- children: format(day, 'EEEEEE', {
23
- locale
24
- })
25
- }, +day))
26
- });
13
+ const $ = c(9);
14
+ if ($[0] !== "ae5cfd4777f0b258431d23e7afcb144b72f1fe497b1ab6a09bbe7fdb451918ca") {
15
+ for (let $i = 0; $i < 9; $i += 1) {
16
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
17
+ }
18
+ $[0] = "ae5cfd4777f0b258431d23e7afcb144b72f1fe497b1ab6a09bbe7fdb451918ca";
19
+ }
20
+ let t0;
21
+ let t1;
22
+ if ($[1] !== props) {
23
+ const days = shiftWeekArray(Object.values(weekdays), getWeekStartsOn(props.locale)).map(_temp);
24
+ const {
25
+ locale
26
+ } = props;
27
+ t0 = styles.weekdays;
28
+ let t2;
29
+ if ($[4] !== locale) {
30
+ t2 = day => /*#__PURE__*/jsx("span", {
31
+ className: classNames(styles.weekday, {
32
+ [styles.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day))
33
+ }),
34
+ children: format(day, "EEEEEE", {
35
+ locale
36
+ })
37
+ }, +day);
38
+ $[4] = locale;
39
+ $[5] = t2;
40
+ } else {
41
+ t2 = $[5];
42
+ }
43
+ t1 = days.map(t2);
44
+ $[1] = props;
45
+ $[2] = t0;
46
+ $[3] = t1;
47
+ } else {
48
+ t0 = $[2];
49
+ t1 = $[3];
50
+ }
51
+ let t2;
52
+ if ($[6] !== t0 || $[7] !== t1) {
53
+ t2 = /*#__PURE__*/jsx("div", {
54
+ className: t0,
55
+ children: t1
56
+ });
57
+ $[6] = t0;
58
+ $[7] = t1;
59
+ $[8] = t2;
60
+ } else {
61
+ t2 = $[8];
62
+ }
63
+ return t2;
64
+ }
65
+ function _temp(value) {
66
+ return startOfDay(setDay(new Date(), value));
27
67
  }
28
68
 
29
69
  export { Weekdays as default };
@@ -14,6 +14,6 @@ export default class Years extends PureComponent<CalendarProps> {
14
14
  setYear(date: number): void;
15
15
  componentRef: import("react").RefObject<HTMLDivElement | null>;
16
16
  handleWheel: (e: WheelEvent) => void;
17
- render(): import("react/jsx-runtime").JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  }
19
19
  export {};
@@ -1,4 +1,3 @@
1
- import { jsx } from 'react/jsx-runtime';
2
1
  import { PureComponent, createRef } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import { addYears } from 'date-fns/addYears';
@@ -10,8 +9,9 @@ import { setYear } from 'date-fns/setYear';
10
9
  import { startOfYear } from 'date-fns/startOfYear';
11
10
  import { subYears } from 'date-fns/subYears';
12
11
  import linearFunction from '../global/linear-function.js';
13
- import { s as styles } from '../_helpers/date-picker.js';
14
12
  import units, { yearDuration, DOUBLE, HALF } from './consts.js';
13
+ import { s as styles } from '../_helpers/date-picker.js';
14
+ import { jsx } from 'react/jsx-runtime';
15
15
  import 'date-fns/add';
16
16
 
17
17
  const {
@@ -79,15 +79,15 @@ class Years extends PureComponent {
79
79
  years.push(year);
80
80
  }
81
81
  const pxToDate = linearFunction(0, Number(years[0]), yearDuration / yearHeight);
82
- return jsx("div", {
82
+ return /*#__PURE__*/jsx("div", {
83
83
  className: styles.years,
84
84
  ref: this.componentRef,
85
85
  style: {
86
86
  transition: this.stoppedScrolling ? 'top .2s ease-out 0s' : 'none',
87
87
  top: Math.floor(calHeight * HALF - pxToDate.x(Number(date)))
88
88
  },
89
- children: years.map(item => jsx("button", {
90
- type: 'button',
89
+ children: years.map(item => /*#__PURE__*/jsx("button", {
90
+ type: "button",
91
91
  className: classNames(styles.year, {
92
92
  [styles.currentYear]: isSameYear(item, date),
93
93
  [styles.today]: isThisYear(item)
@@ -45,6 +45,6 @@ export default class Dialog extends PureComponent<DialogProps> {
45
45
  dialog?: HTMLElement | null;
46
46
  dialogRef: (tabTrap: TabTrap | null) => void;
47
47
  nativeDialog: React.RefObject<HTMLDialogElement | null>;
48
- render(): false | import("react/jsx-runtime").JSX.Element;
48
+ render(): false | React.JSX.Element;
49
49
  }
50
50
  export type DialogAttrs = React.JSX.LibraryManagedAttributes<typeof Dialog, DialogProps>;
@@ -1,4 +1,3 @@
1
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
1
  import { PureComponent, createRef } from 'react';
3
2
  import { createPortal } from 'react-dom';
4
3
  import classNames from 'classnames';
@@ -12,10 +11,12 @@ import { Button } from '../button/button.js';
12
11
  import { PopupTarget, PopupTargetContext } from '../popup/popup.target.js';
13
12
  import { getPopupContainer } from '../popup/popup.js';
14
13
  import { p as preventerFactory, s as styles } from '../_helpers/dialog-body-scroll-preventer.js';
14
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
15
15
  import '../island/adaptive-island-hoc.js';
16
16
  import '../global/linear-function.js';
17
17
  import '../_helpers/island.js';
18
18
  import '../island/header.js';
19
+ import 'react-compiler-runtime';
19
20
  import '../island/content.js';
20
21
  import 'element-resize-detector';
21
22
  import '../global/schedule-raf.js';
@@ -40,9 +41,6 @@ import '../popup/popup.consts.js';
40
41
  import '../popup/position-css.js';
41
42
  import 'scrollbar-width';
42
43
 
43
- /**
44
- * @name Dialog
45
- */
46
44
  function noop() {}
47
45
  class Dialog extends PureComponent {
48
46
  static defaultProps = {
@@ -169,29 +167,29 @@ class Dialog extends PureComponent {
169
167
  } = this.props;
170
168
  const classes = classNames(styles.container, className);
171
169
  const shortcutsMap = this.getShortcutsMap();
172
- const content = jsxs(Fragment, {
173
- children: [jsx(Shortcuts, {
170
+ const content = /*#__PURE__*/jsxs(Fragment, {
171
+ children: [/*#__PURE__*/jsx(Shortcuts, {
174
172
  map: shortcutsMap,
175
173
  scope: this.state.shortcutsScope,
176
174
  options: this.props.shortcutOptions
177
- }), (onOverlayClick !== noop || onCloseAttempt !== noop) && jsx("div", {
175
+ }), (onOverlayClick !== noop || onCloseAttempt !== noop) && /*#__PURE__*/jsx("div", {
178
176
  // click handler is duplicated in close button
179
- role: 'presentation',
177
+ role: "presentation",
180
178
  className: styles.clickableOverlay,
181
179
  onClick: this.handleClick,
182
- "data-test": 'ring-dialog-overlay'
183
- }), jsx("div", {
180
+ "data-test": "ring-dialog-overlay"
181
+ }), /*#__PURE__*/jsx("div", {
184
182
  className: styles.innerContainer,
185
- children: jsxs(AdaptiveIsland, {
183
+ children: /*#__PURE__*/jsxs(AdaptiveIsland, {
186
184
  className: classNames(styles.content, contentClassName, {
187
185
  [styles.dense]: dense
188
186
  }),
189
- "data-test": 'ring-dialog',
190
- role: 'dialog',
187
+ "data-test": "ring-dialog",
188
+ role: "dialog",
191
189
  "aria-label": label,
192
- children: [children, showCloseButton && jsx(Button, {
190
+ children: [children, showCloseButton && /*#__PURE__*/jsx(Button, {
193
191
  icon: closeIcon,
194
- "data-test": 'ring-dialog-close-button',
192
+ "data-test": "ring-dialog-close-button",
195
193
  className: classNames(styles.closeButton, {
196
194
  [styles.closeButtonOutside]: !closeButtonInside,
197
195
  [styles.closeButtonInside]: closeButtonInside
@@ -208,20 +206,20 @@ class Dialog extends PureComponent {
208
206
  })]
209
207
  });
210
208
  if (native) {
211
- return jsx("dialog", {
209
+ return /*#__PURE__*/jsx("dialog", {
212
210
  className: classNames(styles.nativeDialog, className),
213
211
  ref: this.nativeDialog,
214
212
  "data-rg-modal-dialog-container": modal ? '' : undefined,
215
- children: jsx(PopupTarget, {
213
+ children: /*#__PURE__*/jsx(PopupTarget, {
216
214
  id: this.uid,
217
215
  className: styles.popupTarget,
218
- children: target => jsxs(Fragment, {
216
+ children: target => /*#__PURE__*/jsxs(Fragment, {
219
217
  children: [content, target]
220
218
  })
221
219
  })
222
220
  });
223
221
  }
224
- return show && jsx(PopupTargetContext.Consumer, {
222
+ return show && /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
225
223
  children: contextTarget => {
226
224
  let targetElement = document.body;
227
225
  if (portalTarget instanceof HTMLElement) {
@@ -232,16 +230,16 @@ class Dialog extends PureComponent {
232
230
  targetElement = container;
233
231
  }
234
232
  }
235
- return /*#__PURE__*/createPortal(jsx(PopupTarget, {
233
+ return /*#__PURE__*/createPortal(/*#__PURE__*/jsx(PopupTarget, {
236
234
  id: this.uid,
237
235
  className: styles.popupTarget,
238
- children: target => jsxs(TabTrap, {
236
+ children: target => /*#__PURE__*/jsxs(TabTrap, {
239
237
  trapDisabled: !trapFocus,
240
238
  "data-test": joinDataTestAttributes('ring-dialog-container', dataTest),
241
- "data-rg-modal-dialog-container": '',
239
+ "data-rg-modal-dialog-container": "",
242
240
  ref: this.dialogRef,
243
241
  className: classes,
244
- role: 'presentation',
242
+ role: "presentation",
245
243
  ...restProps,
246
244
  children: [content, target]
247
245
  })
@@ -1,3 +1,3 @@
1
1
  import { type ButtonAttrs } from '../button/button';
2
- declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react/jsx-runtime").JSX.Element>;
2
+ declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react").JSX.Element>;
3
3
  export default _default;
@@ -1,8 +1,9 @@
1
- import 'react/jsx-runtime';
1
+ import 'react-compiler-runtime';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../button/button.js';
5
5
  export { A as default } from '../_helpers/anchor.js';
6
+ import 'react/jsx-runtime';
6
7
  import '@jetbrains/icons/chevron-down';
7
8
  import '@jetbrains/icons/chevron-12px-down';
8
9
  import 'util-deprecate';
@@ -66,7 +66,7 @@ export default class Dropdown extends Component<DropdownProps, DropdownState> {
66
66
  toggle(show?: boolean): void;
67
67
  _toggle(show: boolean, pinned?: boolean): void;
68
68
  _clearTimer(): void;
69
- render(): import("react/jsx-runtime").JSX.Element;
69
+ render(): React.JSX.Element;
70
70
  }
71
71
  export type DropdownAttrs = React.JSX.LibraryManagedAttributes<typeof Dropdown, DropdownProps>;
72
72
  export { Anchor };
@@ -1,9 +1,10 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
1
  import { Component, cloneElement } from 'react';
3
2
  import classNames from 'classnames';
4
3
  import joinDataTestAttributes from '../global/data-tests.js';
5
4
  import { isArray } from '../global/typescript-utils.js';
6
5
  import { s as styles, A as Anchor } from '../_helpers/anchor.js';
6
+ import { jsxs, jsx } from 'react/jsx-runtime';
7
+ import 'react-compiler-runtime';
7
8
  import '../button/button.js';
8
9
  import '@jetbrains/icons/chevron-down';
9
10
  import '@jetbrains/icons/chevron-12px-down';
@@ -17,9 +18,6 @@ import '../global/controls-height.js';
17
18
  import '../global/configuration.js';
18
19
  import '../_helpers/button.classes.js';
19
20
 
20
- /**
21
- * @name Dropdown
22
- */
23
21
  class Dropdown extends Component {
24
22
  static defaultProps = {
25
23
  initShown: false,
@@ -146,7 +144,7 @@ class Dropdown extends Component {
146
144
  const active = hoverMode ? pinned : show;
147
145
  switch (typeof anchor) {
148
146
  case 'string':
149
- anchorElement = jsx(Anchor, {
147
+ anchorElement = /*#__PURE__*/jsx(Anchor, {
150
148
  active: active,
151
149
  children: anchor
152
150
  });
@@ -173,12 +171,13 @@ class Dropdown extends Component {
173
171
  onContextMenu: hoverMode ? this.handlePopupInteraction : undefined,
174
172
  dontCloseOnAnchorClick: true
175
173
  };
176
- return jsxs("div", {
174
+ return /*#__PURE__*/jsxs("div", {
177
175
  "data-test": joinDataTestAttributes('ring-dropdown', dataTest),
178
176
  ...restProps,
179
- onClick: clickMode ? this.onClick : undefined,
177
+ onClick: clickMode ? this.onClick : undefined
180
178
  // anchorElement should be a `button` or an `a`
181
- role: 'presentation',
179
+ ,
180
+ role: "presentation",
182
181
  onMouseEnter: hoverMode ? this.onMouseEnter : undefined,
183
182
  onMouseLeave: hoverMode ? this.onMouseLeave : undefined,
184
183
  className: classes,