@jetbrains/ring-ui-built 7.0.65 → 7.0.70

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 (231) hide show
  1. package/components/_helpers/anchor.js +12 -17
  2. package/components/_helpers/avatar-info.js +4 -5
  3. package/components/_helpers/button.classes.js +20 -21
  4. package/components/_helpers/caption.js +3 -3
  5. package/components/_helpers/card.js +26 -32
  6. package/components/_helpers/dialog-body-scroll-preventer.js +1 -2
  7. package/components/_helpers/icon-svg.js +9 -12
  8. package/components/_helpers/input.js +78 -86
  9. package/components/_helpers/loader-core.js +260 -0
  10. package/components/_helpers/query-assist-suggestions.js +0 -1
  11. package/components/_helpers/select-filter.js +19 -26
  12. package/components/_helpers/services-link.js +9 -12
  13. package/components/_helpers/sidebar.js +36 -44
  14. package/components/_helpers/tab-link.js +9 -11
  15. package/components/_helpers/theme.js +20 -24
  16. package/components/_helpers/title.js +12 -17
  17. package/components/alert/alert.js +41 -49
  18. package/components/alert/container.js +9 -12
  19. package/components/alert-service/alert-service.js +23 -32
  20. package/components/analytics/analytics-custom-plugin.js +12 -17
  21. package/components/analytics/analytics.js +1 -3
  22. package/components/auth/auth-core.js +128 -170
  23. package/components/auth/auth.js +3 -10
  24. package/components/auth/background-flow.js +5 -8
  25. package/components/auth/down-notification.js +9 -17
  26. package/components/auth/iframe-flow.js +13 -19
  27. package/components/auth/request-builder.js +4 -9
  28. package/components/auth/response-parser.js +9 -12
  29. package/components/auth/storage.js +12 -18
  30. package/components/auth/token-validator.js +19 -30
  31. package/components/auth/window-flow.js +22 -27
  32. package/components/auth-dialog/auth-dialog.js +40 -48
  33. package/components/auth-dialog-service/auth-dialog-service.js +10 -13
  34. package/components/avatar/avatar.figma.js +6 -6
  35. package/components/avatar/avatar.js +58 -59
  36. package/components/avatar/fallback-avatar.js +8 -11
  37. package/components/avatar-stack/avatar-stack.figma.js +10 -11
  38. package/components/avatar-stack/avatar-stack.js +25 -31
  39. package/components/banner/banner.js +0 -6
  40. package/components/breadcrumbs/breadcrumbs.figma.js +8 -6
  41. package/components/breadcrumbs/breadcrumbs.js +4 -5
  42. package/components/button/button.figma.js +15 -10
  43. package/components/button/button.js +59 -64
  44. package/components/button-group/button-group.js +11 -15
  45. package/components/button-group/caption.js +0 -1
  46. package/components/button-set/button-set.js +9 -12
  47. package/components/button-toolbar/button-toolbar.js +8 -11
  48. package/components/caret/caret.js +20 -28
  49. package/components/checkbox/checkbox-group.figma.js +8 -10
  50. package/components/checkbox/checkbox.figma.js +5 -5
  51. package/components/checkbox/checkbox.js +27 -35
  52. package/components/clipboard/clipboard-fallback.js +3 -3
  53. package/components/clipboard/clipboard.js +3 -16
  54. package/components/code/code.js +8 -14
  55. package/components/collapse/collapse-content.js +10 -15
  56. package/components/collapse/collapse-control.js +5 -7
  57. package/components/collapse/collapse.js +9 -11
  58. package/components/collapse/utils.js +1 -1
  59. package/components/confirm/confirm.js +17 -26
  60. package/components/confirm-service/confirm-service.js +30 -31
  61. package/components/content-layout/content-layout.js +21 -28
  62. package/components/content-layout/sidebar.js +0 -2
  63. package/components/contenteditable/contenteditable.js +23 -28
  64. package/components/control-help/control-help.js +8 -10
  65. package/components/control-label/control-label.js +12 -17
  66. package/components/data-list/data-list.js +57 -65
  67. package/components/data-list/data-list.mock.js +0 -4
  68. package/components/data-list/item.js +65 -72
  69. package/components/data-list/selection.js +11 -19
  70. package/components/data-list/title.js +0 -4
  71. package/components/date-picker/consts.js +3 -4
  72. package/components/date-picker/date-input.js +25 -33
  73. package/components/date-picker/date-picker.js +179 -193
  74. package/components/date-picker/date-popup.js +135 -127
  75. package/components/date-picker/day.d.ts +1 -1
  76. package/components/date-picker/day.js +24 -30
  77. package/components/date-picker/month-names.js +7 -12
  78. package/components/date-picker/month-slider.js +16 -22
  79. package/components/date-picker/month.js +3 -5
  80. package/components/date-picker/months.js +6 -6
  81. package/components/date-picker/weekdays.js +0 -1
  82. package/components/date-picker/years.js +20 -26
  83. package/components/dialog/dialog-body-scroll-preventer.js +0 -1
  84. package/components/dialog/dialog.js +73 -83
  85. package/components/dropdown/anchor.js +0 -4
  86. package/components/dropdown/dropdown.js +98 -114
  87. package/components/dropdown-menu/dropdown-menu.js +80 -79
  88. package/components/editable-heading/editable-heading.js +48 -54
  89. package/components/error-bubble/error-bubble.figma.js +4 -4
  90. package/components/error-bubble/error-bubble.js +9 -13
  91. package/components/error-message/error-message.js +1 -6
  92. package/components/footer/footer.js +11 -15
  93. package/components/global/compose-refs.js +1 -4
  94. package/components/global/compose.js +1 -4
  95. package/components/global/configuration.js +3 -3
  96. package/components/global/controls-height.js +0 -1
  97. package/components/global/create-stateful-context.js +10 -14
  98. package/components/global/data-tests.js +2 -10
  99. package/components/global/dom.js +6 -19
  100. package/components/global/focus-sensor-hoc.js +74 -87
  101. package/components/global/fuzzy-highlight.js +3 -8
  102. package/components/global/get-uid.js +1 -1
  103. package/components/global/inject-styles.js +5 -6
  104. package/components/global/listeners.js +2 -11
  105. package/components/global/memoize.js +0 -2
  106. package/components/global/normalize-indent.js +2 -6
  107. package/components/global/promise-with-timeout.js +4 -5
  108. package/components/global/react-dom-renderer.js +4 -9
  109. package/components/global/rerender-hoc.js +8 -11
  110. package/components/global/schedule-raf.js +1 -2
  111. package/components/global/theme.js +0 -5
  112. package/components/global/trivial-template-tag.js +1 -6
  113. package/components/global/url.js +2 -6
  114. package/components/global/use-event-callback.js +2 -3
  115. package/components/grid/col.js +7 -18
  116. package/components/grid/grid.js +9 -14
  117. package/components/grid/row.js +7 -11
  118. package/components/group/group.js +9 -12
  119. package/components/header/header-icon.js +8 -13
  120. package/components/header/header.js +16 -27
  121. package/components/header/links.js +7 -10
  122. package/components/header/logo.js +12 -16
  123. package/components/header/profile.js +73 -83
  124. package/components/header/services-link.js +0 -2
  125. package/components/header/services.js +32 -43
  126. package/components/header/smart-profile.js +44 -59
  127. package/components/header/smart-services.js +33 -45
  128. package/components/header/tray.js +8 -10
  129. package/components/heading/heading.js +27 -27
  130. package/components/http/http.js +120 -125
  131. package/components/http/http.mock.js +6 -10
  132. package/components/hub-source/hub-source-user.js +6 -13
  133. package/components/hub-source/hub-source-users-groups.js +8 -12
  134. package/components/hub-source/hub-source.js +8 -10
  135. package/components/i18n/i18n-context.js +4 -7
  136. package/components/i18n/i18n.js +5 -5
  137. package/components/icon/icon-svg.js +0 -4
  138. package/components/icon/icon.js +28 -32
  139. package/components/icon/index.js +0 -4
  140. package/components/input/input.figma.js +8 -8
  141. package/components/input/input.js +0 -4
  142. package/components/island/adaptive-island-hoc.js +19 -23
  143. package/components/island/content.js +70 -75
  144. package/components/island/header.js +21 -21
  145. package/components/island/island.js +11 -14
  146. package/components/link/clickable-link.js +30 -37
  147. package/components/link/link.js +27 -29
  148. package/components/list/list-custom.js +6 -11
  149. package/components/list/list-item.js +49 -56
  150. package/components/list/list-separator.js +0 -1
  151. package/components/list/list-title.js +0 -1
  152. package/components/list/list-users-groups-source.js +14 -22
  153. package/components/list/list.classes.js +8 -9
  154. package/components/list/list.js +387 -404
  155. package/components/loader/loader-core.js +2 -265
  156. package/components/loader/loader.d.ts +8 -0
  157. package/components/loader/loader.js +43 -29
  158. package/components/loader-inline/loader-inline.js +9 -12
  159. package/components/loader-screen/loader-screen.js +10 -14
  160. package/components/login-dialog/login-dialog.js +46 -54
  161. package/components/login-dialog/service.js +13 -15
  162. package/components/message/message.js +65 -79
  163. package/components/old-browsers-message/old-browsers-message-stop.js +0 -3
  164. package/components/old-browsers-message/old-browsers-message.js +1 -4
  165. package/components/old-browsers-message/white-list.js +5 -7
  166. package/components/pager/pager.js +73 -88
  167. package/components/panel/panel.js +9 -12
  168. package/components/permissions/permissions-cache.js +6 -8
  169. package/components/permissions/permissions.js +19 -21
  170. package/components/popup/popup.js +136 -145
  171. package/components/popup/popup.target.js +8 -10
  172. package/components/popup/position-css.js +19 -27
  173. package/components/popup/position.js +22 -28
  174. package/components/popup-menu/popup-menu.js +27 -37
  175. package/components/progress-bar/progress-bar.js +26 -32
  176. package/components/query-assist/query-assist-suggestions.js +0 -6
  177. package/components/query-assist/query-assist.js +432 -468
  178. package/components/radio/radio-item.js +30 -40
  179. package/components/radio/radio.js +6 -10
  180. package/components/scrollable-section/scrollable-section.js +7 -10
  181. package/components/select/select-filter.js +0 -6
  182. package/components/select/select-popup.js +155 -174
  183. package/components/select/select.js +464 -479
  184. package/components/shortcuts/core.js +40 -45
  185. package/components/shortcuts/shortcut-title.js +0 -1
  186. package/components/shortcuts/shortcuts-hoc.js +9 -15
  187. package/components/shortcuts/shortcuts.js +3 -5
  188. package/components/slider/slider.js +53 -66
  189. package/components/slider/slider.utils.js +1 -4
  190. package/components/storage/storage-local.js +2 -8
  191. package/components/storage/storage.js +0 -5
  192. package/components/style.css +1 -1
  193. package/components/tab-trap/tab-trap.js +21 -30
  194. package/components/table/cell.js +3 -4
  195. package/components/table/disable-hover-hoc.js +24 -28
  196. package/components/table/header-cell.js +30 -38
  197. package/components/table/header.js +20 -28
  198. package/components/table/multitable.js +81 -101
  199. package/components/table/row-with-focus-sensor.js +17 -28
  200. package/components/table/row.js +89 -99
  201. package/components/table/selection-adapter.js +0 -2
  202. package/components/table/selection-shortcuts-hoc.js +159 -161
  203. package/components/table/selection.js +23 -31
  204. package/components/table/simple-table.js +16 -22
  205. package/components/table/smart-table.js +19 -26
  206. package/components/table/table.js +137 -146
  207. package/components/tabs/collapsible-more.js +34 -47
  208. package/components/tabs/collapsible-tab.js +28 -33
  209. package/components/tabs/collapsible-tabs.js +18 -26
  210. package/components/tabs/custom-item.js +3 -6
  211. package/components/tabs/dumb-tabs.js +48 -64
  212. package/components/tabs/smart-tabs.js +14 -23
  213. package/components/tabs/tab-link.js +0 -2
  214. package/components/tabs/tab.js +0 -1
  215. package/components/tabs/tabs.js +0 -7
  216. package/components/tag/tag.js +30 -35
  217. package/components/tags-input/tags-input.js +192 -218
  218. package/components/tags-list/tags-list.js +26 -31
  219. package/components/text/text.js +16 -19
  220. package/components/toggle/toggle.js +19 -23
  221. package/components/tooltip/tooltip.js +110 -121
  222. package/components/upload/upload.js +19 -28
  223. package/components/user-agreement/service.js +247 -252
  224. package/components/user-agreement/toolbox.eula.js +160 -1
  225. package/components/user-agreement/user-agreement.js +23 -32
  226. package/components/user-card/card.js +0 -5
  227. package/components/user-card/smart-user-card-tooltip.js +41 -50
  228. package/components/user-card/tooltip.js +32 -38
  229. package/components/user-card/user-card.js +0 -5
  230. package/package.json +9 -3
  231. package/components/_helpers/_rollupPluginBabelHelpers.js +0 -72
@@ -0,0 +1,260 @@
1
+ import { getPixelRatio } from '../global/dom.js';
2
+
3
+ var styles = {"canvas":"ring-loader-canvas","squares":"ring-loader-squares","square":"ring-loader-square","square-animation-main":"ring-loader-square-animation-main","square-animation-pseudo":"ring-loader-square-animation-pseudo","inner":"ring-loader-inner","middle":"ring-loader-middle","outer":"ring-loader-outer","animate":"ring-loader-animate","rotation-keyframes":"ring-loader-rotation-keyframes","text":"ring-loader-text"};
4
+
5
+ const INITIAL_TICKS = 100;
6
+ class Particle {
7
+ radius;
8
+ x;
9
+ y;
10
+ color;
11
+ decay;
12
+ life;
13
+ constructor({
14
+ x,
15
+ y,
16
+ radius,
17
+ color
18
+ }) {
19
+ this.radius = radius;
20
+ this.x = x;
21
+ this.y = y;
22
+ this.color = color;
23
+ this.decay = 0.01;
24
+ this.life = 1;
25
+ }
26
+ step() {
27
+ this.life -= this.decay;
28
+ }
29
+ isAlive() {
30
+ return this.life >= 0;
31
+ }
32
+ draw(ctx) {
33
+ const alpha = this.life >= 0 ? this.life : 0;
34
+ ctx.fillStyle = `rgba(${this.color.r}, ${this.color.g}, ${this.color.b}, ${alpha})`;
35
+ ctx.beginPath();
36
+ ctx.arc(this.x + this.radius, this.y + this.radius, this.radius, 0, Math.PI * 2);
37
+ ctx.fill();
38
+ }
39
+ }
40
+ const DETERMINISTIC_VALUE = 0.5;
41
+ function deterministic() {
42
+ return DETERMINISTIC_VALUE;
43
+ }
44
+ class LoaderCore {
45
+ static defaultProps = {
46
+ size: 64,
47
+ stop: false,
48
+ deterministic: false,
49
+ colors: [{
50
+ r: 215,
51
+ g: 60,
52
+ b: 234
53
+ },
54
+ //#D73CEA
55
+ {
56
+ r: 145,
57
+ g: 53,
58
+ b: 224
59
+ },
60
+ //#9135E0
61
+ {
62
+ r: 88,
63
+ g: 72,
64
+ b: 224
65
+ },
66
+ //#5848F4
67
+ {
68
+ r: 37,
69
+ g: 183,
70
+ b: 255
71
+ },
72
+ //#25B7FF
73
+ {
74
+ r: 89,
75
+ g: 189,
76
+ b: 0
77
+ },
78
+ //#59BD00
79
+ {
80
+ r: 251,
81
+ g: 172,
82
+ b: 2
83
+ },
84
+ //#FBAC02
85
+ {
86
+ r: 227,
87
+ g: 37,
88
+ b: 129
89
+ } //#E32581
90
+ ]
91
+ };
92
+ static calculateGradient(startColor, stopColor, position) {
93
+ const calculateChannelValue = (a, b) => a + Math.round((b - a) * position);
94
+ return {
95
+ r: calculateChannelValue(startColor.r, stopColor.r),
96
+ g: calculateChannelValue(startColor.g, stopColor.g),
97
+ b: calculateChannelValue(startColor.b, stopColor.b)
98
+ };
99
+ }
100
+ props;
101
+ canvas;
102
+ textNode;
103
+ ctx;
104
+ height;
105
+ width;
106
+ particles;
107
+ baseSpeed;
108
+ colorIndex;
109
+ maxRadius;
110
+ minRadius;
111
+ colorChangeTick;
112
+ x;
113
+ y;
114
+ radius;
115
+ hSpeed;
116
+ vSpeed;
117
+ radiusSpeed;
118
+ tick;
119
+ isRunning;
120
+ constructor(containerNode, props) {
121
+ this.props = Object.assign({}, LoaderCore.defaultProps, props);
122
+ this.canvas = document.createElement('canvas');
123
+ this.canvas.dataset.test = 'ring-loader';
124
+ this.canvas.classList.add(styles.canvas);
125
+ this.textNode = document.createElement('div');
126
+ this.textNode.dataset.test = 'ring-loader-text';
127
+ this.textNode.classList.add(styles.text);
128
+ this.textNode.textContent = this.props.message ? this.props.message : '';
129
+ containerNode.appendChild(this.canvas);
130
+ containerNode.appendChild(this.textNode);
131
+ const pixelRatio = LoaderCore.getPixelRatio();
132
+ const canvasSize = this.props.size * pixelRatio;
133
+ this.canvas.width = canvasSize;
134
+ this.canvas.height = canvasSize;
135
+ //Fixate canvas physical size to avoid real size scaling
136
+ this.canvas.style.width = `${this.props.size}px`;
137
+ this.canvas.style.height = `${this.props.size}px`;
138
+ this.ctx = this.canvas.getContext('2d');
139
+ this.ctx?.scale(pixelRatio, pixelRatio);
140
+ this.height = this.props.size;
141
+ this.width = this.props.size;
142
+ this.particles = [];
143
+ //Configuration
144
+ this.baseSpeed = 1.0;
145
+ this.colorIndex = 0;
146
+ this.maxRadius = 10;
147
+ this.minRadius = 6;
148
+ this.colorChangeTick = 40;
149
+ //State
150
+ this.x = 0;
151
+ this.y = 0;
152
+ this.radius = 8;
153
+ this.hSpeed = 1.5;
154
+ this.vSpeed = 0.5;
155
+ this.radiusSpeed = 0.05;
156
+ this.tick = 0;
157
+ this.prepareInitialState(INITIAL_TICKS);
158
+ this.isRunning = !this.props.stop;
159
+ if (this.isRunning) {
160
+ this.startAnimation();
161
+ } else {
162
+ this.draw();
163
+ }
164
+ }
165
+ static getPixelRatio() {
166
+ return getPixelRatio();
167
+ }
168
+ prepareInitialState(ticks) {
169
+ for (let i = 0; i < ticks; i++) {
170
+ this.step();
171
+ }
172
+ }
173
+ handleLimits(coord, radius, speed, limit) {
174
+ const randomFunc = this.props.deterministic ? deterministic : Math.random;
175
+ const randomizedSpeedChange = randomFunc() - this.baseSpeed / 2;
176
+ if (coord + radius * 2 + this.baseSpeed >= limit) {
177
+ return -(this.baseSpeed + randomizedSpeedChange);
178
+ }
179
+ if (coord <= this.baseSpeed) {
180
+ return this.baseSpeed + randomizedSpeedChange;
181
+ }
182
+ return speed;
183
+ }
184
+ calculateNextCoordinates() {
185
+ this.x += this.hSpeed;
186
+ this.y += this.vSpeed;
187
+ this.hSpeed = this.handleLimits(this.x, this.radius, this.hSpeed, this.width);
188
+ this.vSpeed = this.handleLimits(this.y, this.radius, this.vSpeed, this.height);
189
+ }
190
+ calculateNextRadius() {
191
+ this.radius += this.radiusSpeed;
192
+ if (this.radius > this.maxRadius || this.radius < this.minRadius) {
193
+ this.radiusSpeed = -this.radiusSpeed;
194
+ }
195
+ }
196
+ getNextColor() {
197
+ const colors = this.props.colors;
198
+ const currentColor = colors[this.colorIndex];
199
+ const nextColor = colors[this.colorIndex + 1] || colors[0];
200
+ return LoaderCore.calculateGradient(currentColor, nextColor, this.tick / this.colorChangeTick);
201
+ }
202
+ nextTick() {
203
+ this.tick++;
204
+ if (this.tick > this.colorChangeTick) {
205
+ this.tick = 0;
206
+ this.colorIndex++;
207
+ if (this.colorIndex > this.props.colors.length - 1) {
208
+ this.colorIndex = 0;
209
+ }
210
+ }
211
+ }
212
+ step() {
213
+ this.nextTick();
214
+ this.calculateNextCoordinates();
215
+ this.calculateNextRadius();
216
+ this.particles.forEach(particle => particle.step());
217
+ this.particles.push(new Particle({
218
+ x: this.x,
219
+ y: this.y,
220
+ radius: this.radius,
221
+ color: this.getNextColor()
222
+ }));
223
+ }
224
+ removeDeadParticles() {
225
+ this.particles = this.particles.filter(it => it.isAlive());
226
+ }
227
+ draw() {
228
+ const ctx = this.ctx;
229
+ if (ctx === null) {
230
+ return;
231
+ }
232
+ ctx.clearRect(0, 0, this.width, this.height);
233
+ this.removeDeadParticles();
234
+ this.particles.forEach(particle => particle.draw(ctx));
235
+ }
236
+ loop() {
237
+ this.step();
238
+ this.draw();
239
+ if (this.isRunning) {
240
+ window.requestAnimationFrame(() => this.loop());
241
+ }
242
+ }
243
+ updateMessage(text) {
244
+ this.textNode.textContent = text || '';
245
+ }
246
+ stopAnimation() {
247
+ this.isRunning = false;
248
+ this.canvas.classList.remove(styles.animate);
249
+ }
250
+ startAnimation() {
251
+ this.isRunning = true;
252
+ this.canvas.classList.add(styles.animate);
253
+ this.loop();
254
+ }
255
+ destroy() {
256
+ this.isRunning = false;
257
+ }
258
+ }
259
+
260
+ export { LoaderCore as L, styles as s };
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/es.symbol.description.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import List from '../list/list.js';
4
3
 
@@ -1,5 +1,3 @@
1
- import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
1
  import { jsx } from 'react/jsx-runtime';
4
2
  import { Component } from 'react';
5
3
  import classNames from 'classnames';
@@ -10,17 +8,11 @@ import { I18nContext } from '../i18n/i18n-context.js';
10
8
 
11
9
  var styles = {"filterWithTagsFocused":"ring-select-popup-filterWithTagsFocused","filterWithTags":"ring-select-popup-filterWithTags","filterWrapper":"ring-select-popup-filterWrapper","filterWithTagsInput":"ring-select-popup-filterWithTagsInput","filter":"ring-select-popup-filter","popup":"ring-select-popup-popup","filterIcon":"ring-select-popup-filterIcon","bottomLine":"ring-select-popup-bottomLine","bottomLineOverItem":"ring-select-popup-bottomLineOverItem","message":"ring-select-popup-message","selectAll":"ring-select-popup-selectAll"};
12
10
 
13
- const _excluded = ["className", "listId"];
14
11
  function noop() {}
15
12
  class SelectFilter extends Component {
16
- constructor() {
17
- super(...arguments);
18
- _defineProperty(this, "input", void 0);
19
- _defineProperty(this, "inputRef", el => {
20
- this.input = el;
21
- this.props.inputRef(el);
22
- });
23
- }
13
+ static defaultProps = {
14
+ inputRef: noop
15
+ };
24
16
  focus() {
25
17
  const {
26
18
  input
@@ -38,22 +30,26 @@ class SelectFilter extends Component {
38
30
  this.input.blur();
39
31
  }
40
32
  }
33
+ input;
34
+ inputRef = el => {
35
+ this.input = el;
36
+ this.props.inputRef(el);
37
+ };
41
38
  render() {
42
- const _this$props = this.props,
43
- {
44
- className,
45
- listId
46
- } = _this$props,
47
- restProps = _objectWithoutProperties(_this$props, _excluded);
39
+ const {
40
+ className,
41
+ listId,
42
+ ...restProps
43
+ } = this.props;
48
44
  const classes = classNames(styles.filter, className);
49
45
  return jsx(ActiveItemContext.ValueContext.Consumer, {
50
46
  children: activeItemId => jsx(I18nContext.Consumer, {
51
- children: _ref => {
47
+ children: ({
48
+ translate
49
+ }) => {
52
50
  var _restProps$placeholde;
53
- let {
54
- translate
55
- } = _ref;
56
- return jsx(Input, _objectSpread2(_objectSpread2({}, restProps), {}, {
51
+ return jsx(Input, {
52
+ ...restProps,
57
53
  placeholder: (_restProps$placeholde = restProps.placeholder) !== null && _restProps$placeholde !== void 0 ? _restProps$placeholde : translate('filterItems'),
58
54
  "aria-owns": listId,
59
55
  "aria-activedescendant": activeItemId,
@@ -62,14 +58,11 @@ class SelectFilter extends Component {
62
58
  borderless: true,
63
59
  inputRef: this.inputRef,
64
60
  className: classes
65
- }));
61
+ });
66
62
  }
67
63
  })
68
64
  });
69
65
  }
70
66
  }
71
- _defineProperty(SelectFilter, "defaultProps", {
72
- inputRef: noop
73
- });
74
67
 
75
68
  export { SelectFilter as S, styles as s };
@@ -1,31 +1,28 @@
1
- import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
1
  import { jsx } from 'react/jsx-runtime';
3
2
  import { PureComponent } from 'react';
4
3
  import Link from '../link/link.js';
5
4
 
6
5
  var styles = {"services":"ring-services-services","active":"ring-services-active","item":"ring-services-item","itemLogo":"ring-services-itemLogo","activeItem":"ring-services-activeItem ring-services-item ring-services-active","line":"ring-services-line","itemStacked":"ring-services-itemStacked","activeItemStacked":"ring-services-activeItemStacked ring-services-itemStacked ring-services-active"};
7
6
 
8
- const _excluded = ["service"];
9
7
  class ServicesLink extends PureComponent {
10
8
  render() {
11
- const _this$props = this.props,
12
- {
13
- service
14
- } = _this$props,
15
- props = _objectWithoutProperties(_this$props, _excluded);
16
- return jsx(Link, _objectSpread2(_objectSpread2({
9
+ const {
10
+ service,
11
+ ...props
12
+ } = this.props;
13
+ return jsx(Link, {
17
14
  target: '_self',
18
- href: service.homeUrl
19
- }, props), {}, {
15
+ href: service.homeUrl,
16
+ ...props,
20
17
  children: service.iconUrl ? [jsx("span", {
21
18
  className: styles.itemLogo,
22
19
  style: {
23
- backgroundImage: "url(".concat(service.iconUrl, ")")
20
+ backgroundImage: `url(${service.iconUrl})`
24
21
  }
25
22
  }, 'icon'), jsx("div", {
26
23
  children: service.name
27
24
  }, 'text')] : service.name
28
- }));
25
+ });
29
26
  }
30
27
  }
31
28
 
@@ -1,5 +1,3 @@
1
- import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
1
  import { jsxs, jsx } from 'react/jsx-runtime';
4
2
  import { Component } from 'react';
5
3
  import classNames from 'classnames';
@@ -7,40 +5,31 @@ import { Waypoint } from 'react-waypoint';
7
5
 
8
6
  var styles = {"extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","contentLayout":"ring-content-layout-contentLayout","contentLayoutContent":"ring-content-layout-contentLayoutContent","sidebarContainer":"ring-content-layout-sidebarContainer","sidebarContainerRight":"ring-content-layout-sidebarContainerRight","sidebar":"ring-content-layout-sidebar","sidebarRight":"ring-content-layout-sidebarRight","sidebarFixedTop":"ring-content-layout-sidebarFixedTop","sidebarFixedBottom":"ring-content-layout-sidebarFixedBottom","bottomMarker":"ring-content-layout-bottomMarker","contentLayoutResponsive":"ring-content-layout-contentLayoutResponsive"};
9
7
 
10
- const _excluded = ["right", "children", "className", "containerClassName", "fixedClassName", "contentNode"];
11
8
  const ABOVE = 'above';
12
9
  const INSIDE = 'inside';
13
10
  class Sidebar extends Component {
14
- constructor() {
15
- super(...arguments);
16
- _defineProperty(this, "state", {
17
- topIsOutside: true,
18
- bottomIsOutside: true,
19
- sidebarVisibleHeight: undefined
11
+ state = {
12
+ topIsOutside: true,
13
+ bottomIsOutside: true,
14
+ sidebarVisibleHeight: undefined
15
+ };
16
+ sidebarNode;
17
+ handleTopWaypoint = ({
18
+ currentPosition
19
+ }) => {
20
+ this.setState({
21
+ topIsOutside: currentPosition === ABOVE
20
22
  });
21
- _defineProperty(this, "sidebarNode", void 0);
22
- _defineProperty(this, "handleTopWaypoint", _ref => {
23
- let {
24
- currentPosition
25
- } = _ref;
26
- this.setState({
27
- topIsOutside: currentPosition === ABOVE
28
- });
23
+ };
24
+ handleBottomWaypoint = ({
25
+ currentPosition,
26
+ waypointTop
27
+ }) => {
28
+ this.setState({
29
+ sidebarVisibleHeight: waypointTop,
30
+ bottomIsOutside: currentPosition !== INSIDE
29
31
  });
30
- _defineProperty(this, "handleBottomWaypoint", _ref2 => {
31
- let {
32
- currentPosition,
33
- waypointTop
34
- } = _ref2;
35
- this.setState({
36
- sidebarVisibleHeight: waypointTop,
37
- bottomIsOutside: currentPosition !== INSIDE
38
- });
39
- });
40
- _defineProperty(this, "sidebarRef", node => {
41
- this.sidebarNode = node;
42
- });
43
- }
32
+ };
44
33
  shouldUseFixation() {
45
34
  const {
46
35
  contentNode
@@ -60,17 +49,19 @@ class Sidebar extends Component {
60
49
  } = this.state;
61
50
  return !bottomIsOutside && topIsOutside && this.shouldUseFixation();
62
51
  }
52
+ sidebarRef = node => {
53
+ this.sidebarNode = node;
54
+ };
63
55
  render() {
64
- const _this$props = this.props,
65
- {
66
- right,
67
- children,
68
- className,
69
- containerClassName,
70
- fixedClassName,
71
- contentNode
72
- } = _this$props,
73
- restProps = _objectWithoutProperties(_this$props, _excluded);
56
+ const {
57
+ right,
58
+ children,
59
+ className,
60
+ containerClassName,
61
+ fixedClassName,
62
+ contentNode,
63
+ ...restProps
64
+ } = this.props;
74
65
  const {
75
66
  topIsOutside,
76
67
  bottomIsOutside,
@@ -88,7 +79,7 @@ class Sidebar extends Component {
88
79
  [fixedClassName !== null && fixedClassName !== void 0 ? fixedClassName : '']: shouldFixateTop || shouldFixateBottom
89
80
  });
90
81
  const style = {
91
- maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : undefined
82
+ maxHeight: shouldFixateBottom && sidebarVisibleHeight ? `${sidebarVisibleHeight}px` : undefined
92
83
  };
93
84
  return jsxs("aside", {
94
85
  className: containerClasses,
@@ -96,11 +87,12 @@ class Sidebar extends Component {
96
87
  children: [jsx(Waypoint, {
97
88
  onEnter: this.handleTopWaypoint,
98
89
  onLeave: this.handleTopWaypoint
99
- }), jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
90
+ }), jsx("div", {
91
+ ...restProps,
100
92
  style: style,
101
93
  className: classes,
102
94
  children: children
103
- })), jsx("div", {
95
+ }), jsx("div", {
104
96
  className: styles.bottomMarker,
105
97
  children: jsx(Waypoint, {
106
98
  onEnter: this.handleBottomWaypoint,
@@ -1,20 +1,18 @@
1
- import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import { memo } from 'react';
4
3
  import Link from '../link/link.js';
5
4
 
6
5
  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"};
7
6
 
8
- const _excluded = ["isSelected", "title", "collapsed"];
9
- function TabLink(_ref) {
10
- let {
11
- isSelected,
12
- title,
13
- collapsed
14
- } = _ref,
15
- restProps = _objectWithoutProperties(_ref, _excluded);
7
+ function TabLink({
8
+ isSelected,
9
+ title,
10
+ collapsed,
11
+ ...restProps
12
+ }) {
16
13
  const renderedTitle = typeof title === 'function' ? title(isSelected, collapsed) : title;
17
- return jsx(Link, _objectSpread2(_objectSpread2({}, restProps), {}, {
14
+ return jsx(Link, {
15
+ ...restProps,
18
16
  children: jsxs("div", {
19
17
  className: styles.container,
20
18
  children: [jsx("span", {
@@ -31,7 +29,7 @@ function TabLink(_ref) {
31
29
  children: renderedTitle
32
30
  })]
33
31
  })
34
- }));
32
+ });
35
33
  }
36
34
  var TabLink$1 = /*#__PURE__*/memo(TabLink);
37
35
 
@@ -1,5 +1,3 @@
1
- import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
2
  import { createContext, forwardRef, useMemo, useEffect, useContext, useState } from 'react';
5
3
  import classNames from 'classnames';
@@ -12,7 +10,6 @@ var defaultStyles = {"light":"ring-variables-light"};
12
10
 
13
11
  var darkStyles = {"dark":"ring-variables_dark-dark"};
14
12
 
15
- const _excluded = ["theme", "className", "passToPopups", "children", "WrapperComponent", "target"];
16
13
  var Theme;
17
14
  (function (Theme) {
18
15
  Theme["AUTO"] = "auto";
@@ -42,11 +39,10 @@ function useThemeClasses(theme) {
42
39
  [defaultStyles.light]: resolvedTheme === Theme.LIGHT
43
40
  });
44
41
  }
45
- function WithThemeClasses(_ref) {
46
- let {
47
- theme,
48
- children
49
- } = _ref;
42
+ function WithThemeClasses({
43
+ theme,
44
+ children
45
+ }) {
50
46
  const themeClasses = useThemeClasses(theme);
51
47
  return children(themeClasses);
52
48
  }
@@ -62,20 +58,20 @@ function applyTheme(theme, container) {
62
58
  }
63
59
  }
64
60
  const DefaultWrapper = /*#__PURE__*/forwardRef(function Wrapper(props, ref) {
65
- return jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
61
+ return jsx("div", {
62
+ ...props,
66
63
  ref: ref
67
- }));
64
+ });
68
65
  });
69
- const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref) {
70
- let {
71
- theme = Theme.AUTO,
72
- className,
73
- passToPopups,
74
- children,
75
- WrapperComponent = DefaultWrapper,
76
- target
77
- } = _ref2,
78
- restProps = _objectWithoutProperties(_ref2, _excluded);
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) {
79
75
  const systemTheme = useTheme();
80
76
  const resolvedTheme = theme === Theme.AUTO ? systemTheme : theme;
81
77
  const id = useMemo(() => getUID('popups-with-theme-'), []);
@@ -91,10 +87,10 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref)
91
87
  const parentTarget = useContext(PopupTargetContext);
92
88
  return jsx(ThemeContext.Provider, {
93
89
  value: themeValue,
94
- children: jsx(WrapperComponent, _objectSpread2(_objectSpread2({
90
+ children: jsx(WrapperComponent, {
95
91
  ref: ref,
96
- className: target ? undefined : classNames(className, themeClasses)
97
- }, restProps), {}, {
92
+ className: target ? undefined : classNames(className, themeClasses),
93
+ ...restProps,
98
94
  children: passToPopups ? jsx(PopupTarget, {
99
95
  id: id,
100
96
  children: popupTarget => jsxs(Fragment, {
@@ -104,7 +100,7 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref)
104
100
  }), parentTarget && getPopupContainer(parentTarget) || document.body)]
105
101
  })
106
102
  }) : children
107
- }))
103
+ })
108
104
  });
109
105
  });
110
106
  var Theme$1 = Theme;
@@ -1,5 +1,3 @@
1
- import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
1
  import { jsxs, jsx } from 'react/jsx-runtime';
4
2
  import { PureComponent } from 'react';
5
3
  import classNames from 'classnames';
@@ -10,16 +8,18 @@ import getUID from '../global/get-uid.js';
10
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"};
11
9
 
12
10
  class Title extends PureComponent {
13
- constructor() {
14
- super(...arguments);
15
- _defineProperty(this, "id", getUID('data-list-title'));
16
- _defineProperty(this, "onCheckboxFocus", () => {
17
- this.props.onFocusRestore();
18
- });
19
- _defineProperty(this, "onCheckboxChange", () => {
20
- this.toggleSelection();
21
- });
22
- }
11
+ static defaultProps = {
12
+ selectable: false,
13
+ selected: false,
14
+ showFocus: false
15
+ };
16
+ id = getUID('data-list-title');
17
+ onCheckboxFocus = () => {
18
+ this.props.onFocusRestore();
19
+ };
20
+ onCheckboxChange = () => {
21
+ this.toggleSelection();
22
+ };
23
23
  toggleSelection() {
24
24
  const {
25
25
  selectable,
@@ -72,11 +72,6 @@ class Title extends PureComponent {
72
72
  });
73
73
  }
74
74
  }
75
- _defineProperty(Title, "defaultProps", {
76
- selectable: false,
77
- selected: false,
78
- showFocus: false
79
- });
80
75
  var Title$1 = focusSensorHOC(Title);
81
76
 
82
77
  export { Title$1 as T, styles as s };