@jetbrains/ring-ui-built 7.0.79 → 7.0.80

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 (57) hide show
  1. package/components/_helpers/theme.js +90 -94
  2. package/components/alert/alert.js +0 -13
  3. package/components/alert-service/alert-service.js +0 -12
  4. package/components/auth/auth-core.js +1 -13
  5. package/components/auth/auth.js +1 -13
  6. package/components/auth/down-notification.js +0 -12
  7. package/components/auth/iframe-flow.js +1 -0
  8. package/components/auth/storage.js +1 -13
  9. package/components/auth-dialog/auth-dialog.js +1 -0
  10. package/components/auth-dialog-service/auth-dialog-service.js +1 -0
  11. package/components/avatar/fallback-avatar.js +78 -79
  12. package/components/avatar-stack/avatar-stack.js +1 -0
  13. package/components/clipboard/clipboard.js +1 -13
  14. package/components/collapse/collapse-content.js +2 -2
  15. package/components/collapse/collapse-control.js +34 -50
  16. package/components/collapse/collapse.js +2 -2
  17. package/components/confirm/confirm.js +1 -0
  18. package/components/confirm-service/confirm-service.js +1 -0
  19. package/components/date-picker/date-picker.js +1 -0
  20. package/components/date-picker/months.js +86 -100
  21. package/components/dialog/dialog.js +1 -0
  22. package/components/dropdown-menu/dropdown-menu.js +154 -238
  23. package/components/editable-heading/editable-heading.js +11 -11
  24. package/components/error-bubble/error-bubble.js +1 -0
  25. package/components/global/theme.d.ts +1 -0
  26. package/components/global/theme.js +0 -17
  27. package/components/global/use-event-callback.js +3 -2
  28. package/components/header/header.js +17 -17
  29. package/components/header/profile.js +1 -0
  30. package/components/header/smart-profile.js +13 -13
  31. package/components/login-dialog/login-dialog.js +1 -0
  32. package/components/login-dialog/service.js +1 -0
  33. package/components/old-browsers-message/white-list.js +2 -2
  34. package/components/pager/pager.js +1 -0
  35. package/components/popup/popup.js +49 -43
  36. package/components/popup-menu/popup-menu.js +1 -0
  37. package/components/query-assist/query-assist.js +1 -0
  38. package/components/select/select-popup.js +1 -0
  39. package/components/select/select.js +1 -0
  40. package/components/slider/slider.js +289 -366
  41. package/components/storage/storage-local.js +1 -13
  42. package/components/storage/storage.js +1 -13
  43. package/components/style.css +1 -1
  44. package/components/tabs/collapsible-more.js +12 -12
  45. package/components/tabs/collapsible-tabs.js +191 -205
  46. package/components/tabs/dumb-tabs.js +1 -0
  47. package/components/tabs/smart-tabs.js +1 -0
  48. package/components/tabs/tabs.js +1 -0
  49. package/components/tags-input/tags-input.js +1 -0
  50. package/components/upload/upload.js +31 -8
  51. package/components/user-agreement/service.js +11 -11
  52. package/components/user-agreement/user-agreement.js +1 -0
  53. package/components/user-card/card.js +5 -5
  54. package/components/user-card/smart-user-card-tooltip.js +1 -1
  55. package/components/user-card/tooltip.js +1 -1
  56. package/components/user-card/user-card.js +8 -8
  57. package/package.json +2 -2
@@ -59,68 +59,54 @@ function scrollSpeed(date) {
59
59
  const scrollSchedule = scheduleRAF();
60
60
  let dy = 0;
61
61
  function Months(props) {
62
- const $ = c(33);
63
- if ($[0] !== "3cc95a30dd33d14752bdcb9dc79c8f6b6353ca4e0a57d98cb2189651222ab926") {
64
- for (let $i = 0; $i < 33; $i += 1) {
62
+ const $ = c(30);
63
+ if ($[0] !== "5d5fe78f7bda393a523d9472cfc721d7ae4d117fe8278fd6d3d9589b20c1969a") {
64
+ for (let $i = 0; $i < 30; $i += 1) {
65
65
  $[$i] = Symbol.for("react.memo_cache_sentinel");
66
66
  }
67
- $[0] = "3cc95a30dd33d14752bdcb9dc79c8f6b6353ca4e0a57d98cb2189651222ab926";
67
+ $[0] = "5d5fe78f7bda393a523d9472cfc721d7ae4d117fe8278fd6d3d9589b20c1969a";
68
68
  }
69
69
  const {
70
70
  scrollDate
71
71
  } = props;
72
- let t0;
72
+ let monthStart;
73
+ let months;
73
74
  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) {
75
+ const monthDate = scrollDate instanceof Date ? scrollDate : new Date(scrollDate);
76
+ monthStart = startOfMonth(monthDate);
92
77
  let month = subMonths(monthStart, MONTHSBACK);
93
- result = [month];
78
+ months = [month];
94
79
  for (let i = 0; i < MONTHSBACK * DOUBLE; i++) {
95
80
  month = addMonths(month, 1);
96
- result.push(month);
81
+ months.push(month);
97
82
  }
98
- $[5] = monthStart;
99
- $[6] = result;
83
+ $[1] = scrollDate;
84
+ $[2] = monthStart;
85
+ $[3] = months;
100
86
  } else {
101
- result = $[6];
87
+ monthStart = $[2];
88
+ months = $[3];
102
89
  }
103
- const months = result;
104
90
  let pxToDate;
105
- let t2;
106
- if ($[7] !== monthStart || $[8] !== scrollDate) {
91
+ let t0;
92
+ if ($[4] !== monthStart || $[5] !== scrollDate) {
107
93
  const currentSpeed = scrollSpeed(scrollDate);
108
94
  pxToDate = linearFunction(0, Number(scrollDate), currentSpeed);
109
- t2 = pxToDate.x(Number(monthStart));
110
- $[7] = monthStart;
111
- $[8] = scrollDate;
112
- $[9] = pxToDate;
113
- $[10] = t2;
95
+ t0 = pxToDate.x(Number(monthStart));
96
+ $[4] = monthStart;
97
+ $[5] = scrollDate;
98
+ $[6] = pxToDate;
99
+ $[7] = t0;
114
100
  } else {
115
- pxToDate = $[9];
116
- t2 = $[10];
101
+ pxToDate = $[6];
102
+ t0 = $[7];
117
103
  }
118
- const offset = t2;
104
+ const offset = t0;
119
105
  const bottomOffset = monthHeight(scrollDate) + offset;
120
106
  const componentRef = useRef(null);
121
- let t3;
122
- if ($[11] !== bottomOffset || $[12] !== months || $[13] !== offset || $[14] !== props || $[15] !== pxToDate) {
123
- t3 = e => {
107
+ let t1;
108
+ if ($[8] !== bottomOffset || $[9] !== months || $[10] !== offset || $[11] !== props || $[12] !== pxToDate) {
109
+ t1 = e => {
124
110
  e.preventDefault();
125
111
  dy = dy + e.deltaY;
126
112
  scrollSchedule(() => {
@@ -138,20 +124,20 @@ function Months(props) {
138
124
  dy = 0;
139
125
  });
140
126
  };
141
- $[11] = bottomOffset;
142
- $[12] = months;
143
- $[13] = offset;
144
- $[14] = props;
145
- $[15] = pxToDate;
146
- $[16] = t3;
127
+ $[8] = bottomOffset;
128
+ $[9] = months;
129
+ $[10] = offset;
130
+ $[11] = props;
131
+ $[12] = pxToDate;
132
+ $[13] = t1;
147
133
  } else {
148
- t3 = $[16];
134
+ t1 = $[13];
149
135
  }
150
- const handleWheel = useEventCallback(t3);
151
- let t4;
152
- let t5;
153
- if ($[17] !== handleWheel) {
154
- t4 = () => {
136
+ const handleWheel = useEventCallback(t1);
137
+ let t2;
138
+ let t3;
139
+ if ($[14] !== handleWheel) {
140
+ t2 = () => {
155
141
  const current = componentRef.current;
156
142
  if (current) {
157
143
  current.addEventListener("wheel", handleWheel, {
@@ -164,76 +150,76 @@ function Months(props) {
164
150
  }
165
151
  };
166
152
  };
167
- t5 = [handleWheel];
168
- $[17] = handleWheel;
169
- $[18] = t4;
170
- $[19] = t5;
153
+ t3 = [handleWheel];
154
+ $[14] = handleWheel;
155
+ $[15] = t2;
156
+ $[16] = t3;
171
157
  } else {
172
- t4 = $[18];
173
- t5 = $[19];
158
+ t2 = $[15];
159
+ t3 = $[16];
174
160
  }
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
161
+ useEffect(t2, t3);
162
+ const t4 = Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset);
163
+ let t5;
164
+ if ($[17] !== t4) {
165
+ t5 = {
166
+ top: t4
181
167
  };
182
- $[20] = t6;
183
- $[21] = t7;
168
+ $[17] = t4;
169
+ $[18] = t5;
184
170
  } else {
185
- t7 = $[21];
171
+ t5 = $[18];
186
172
  }
187
- let t8;
188
- if ($[22] !== months || $[23] !== props) {
189
- t8 = months.map(date_0 => /*#__PURE__*/createElement(Month, {
173
+ let t6;
174
+ if ($[19] !== months || $[20] !== props) {
175
+ t6 = months.map(date_0 => /*#__PURE__*/createElement(Month, {
190
176
  ...props,
191
177
  month: date_0,
192
178
  key: +date_0
193
179
  }));
194
- $[22] = months;
195
- $[23] = props;
196
- $[24] = t8;
180
+ $[19] = months;
181
+ $[20] = props;
182
+ $[21] = t6;
197
183
  } else {
198
- t8 = $[24];
184
+ t6 = $[21];
199
185
  }
200
- let t9;
201
- if ($[25] !== t7 || $[26] !== t8) {
202
- t9 = /*#__PURE__*/jsx("div", {
203
- style: t7,
186
+ let t7;
187
+ if ($[22] !== t5 || $[23] !== t6) {
188
+ t7 = /*#__PURE__*/jsx("div", {
189
+ style: t5,
204
190
  className: styles.days,
205
- children: t8
191
+ children: t6
206
192
  });
207
- $[25] = t7;
208
- $[26] = t8;
209
- $[27] = t9;
193
+ $[22] = t5;
194
+ $[23] = t6;
195
+ $[24] = t7;
210
196
  } else {
211
- t9 = $[27];
197
+ t7 = $[24];
212
198
  }
213
- let t10;
214
- if ($[28] !== props) {
215
- t10 = /*#__PURE__*/jsx(MonthNames, {
199
+ let t8;
200
+ if ($[25] !== props) {
201
+ t8 = /*#__PURE__*/jsx(MonthNames, {
216
202
  ...props
217
203
  });
218
- $[28] = props;
219
- $[29] = t10;
204
+ $[25] = props;
205
+ $[26] = t8;
220
206
  } else {
221
- t10 = $[29];
207
+ t8 = $[26];
222
208
  }
223
- let t11;
224
- if ($[30] !== t10 || $[31] !== t9) {
225
- t11 = /*#__PURE__*/jsxs("div", {
209
+ let t9;
210
+ if ($[27] !== t7 || $[28] !== t8) {
211
+ t9 = /*#__PURE__*/jsxs("div", {
226
212
  className: styles.months,
227
213
  ref: componentRef,
228
- children: [t9, t10]
214
+ children: [t7, t8]
229
215
  });
230
- $[30] = t10;
231
- $[31] = t9;
232
- $[32] = t11;
216
+ $[27] = t7;
217
+ $[28] = t8;
218
+ $[29] = t9;
233
219
  } else {
234
- t11 = $[32];
220
+ t9 = $[29];
235
221
  }
236
- return t11;
222
+ return t9;
237
223
  }
238
224
 
239
225
  export { Months as default };
@@ -39,6 +39,7 @@ import '../_helpers/button.classes.js';
39
39
  import '../popup/position.js';
40
40
  import '../popup/popup.consts.js';
41
41
  import '../popup/position-css.js';
42
+ import '../_helpers/theme.js';
42
43
  import 'scrollbar-width';
43
44
 
44
45
  function noop() {}