@jetbrains/ring-ui-built 6.0.30 → 6.0.32

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 (226) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +7 -629
  2. package/components/_helpers/anchor.js +7 -6
  3. package/components/_helpers/button__classes.js +16 -14
  4. package/components/_helpers/caption.js +14 -20
  5. package/components/_helpers/card.js +95 -105
  6. package/components/_helpers/dialog__body-scroll-preventer.js +11 -19
  7. package/components/_helpers/icon__svg.js +22 -25
  8. package/components/_helpers/input.js +146 -177
  9. package/components/_helpers/query-assist__suggestions.js +74 -90
  10. package/components/_helpers/select__filter.js +48 -69
  11. package/components/_helpers/services-link.js +29 -37
  12. package/components/_helpers/sidebar.js +99 -107
  13. package/components/_helpers/tab-link.js +7 -7
  14. package/components/_helpers/theme.js +31 -40
  15. package/components/_helpers/title.js +57 -72
  16. package/components/alert/alert.js +150 -202
  17. package/components/alert/container.js +32 -41
  18. package/components/alert-service/alert-service.js +105 -170
  19. package/components/analytics/analytics.js +12 -22
  20. package/components/analytics/analytics__custom-plugin.js +54 -75
  21. package/components/auth/auth.js +4 -36
  22. package/components/auth/auth__core.js +746 -1471
  23. package/components/auth/background-flow.js +87 -127
  24. package/components/auth/down-notification.js +30 -73
  25. package/components/auth/iframe-flow.js +75 -133
  26. package/components/auth/request-builder.js +46 -82
  27. package/components/auth/response-parser.js +86 -116
  28. package/components/auth/storage.js +171 -334
  29. package/components/auth/token-validator.js +137 -242
  30. package/components/auth/window-flow.js +92 -134
  31. package/components/auth-dialog/auth-dialog.js +114 -172
  32. package/components/auth-dialog-service/auth-dialog-service.js +8 -31
  33. package/components/avatar/avatar-example-datauri.js +23 -1
  34. package/components/avatar/avatar.js +119 -152
  35. package/components/avatar/fallback-avatar.js +22 -38
  36. package/components/badge/badge.js +35 -45
  37. package/components/button/button.js +86 -107
  38. package/components/button-group/button-group.js +19 -33
  39. package/components/button-set/button-set.js +20 -32
  40. package/components/button-toolbar/button-toolbar.js +19 -31
  41. package/components/caret/caret.js +186 -220
  42. package/components/checkbox/checkbox.js +76 -101
  43. package/components/clipboard/clipboard-fallback.js +10 -10
  44. package/components/clipboard/clipboard.js +35 -132
  45. package/components/code/code.js +92 -166
  46. package/components/collapse/collapse-content.js +42 -64
  47. package/components/collapse/collapse-context.js +2 -2
  48. package/components/collapse/collapse-control.js +12 -14
  49. package/components/collapse/collapse.js +11 -17
  50. package/components/collapse/consts.js +4 -4
  51. package/components/collapse/utils.js +1 -3
  52. package/components/confirm/confirm.js +66 -104
  53. package/components/confirm-service/confirm-service.js +37 -59
  54. package/components/content-layout/content-layout.js +43 -64
  55. package/components/content-layout/sidebar.js +0 -1
  56. package/components/contenteditable/contenteditable.js +50 -59
  57. package/components/control-label/control-label.js +9 -9
  58. package/components/data-list/data-list.js +129 -182
  59. package/components/data-list/data-list.mock.js +2 -6
  60. package/components/data-list/item.js +143 -170
  61. package/components/data-list/selection.js +76 -136
  62. package/components/data-list/title.js +1 -12
  63. package/components/date-picker/consts.js +19 -26
  64. package/components/date-picker/date-input.js +113 -144
  65. package/components/date-picker/date-picker.js +227 -282
  66. package/components/date-picker/date-popup.js +350 -395
  67. package/components/date-picker/day.js +87 -116
  68. package/components/date-picker/month-names.js +43 -66
  69. package/components/date-picker/month-slider.js +51 -76
  70. package/components/date-picker/month.js +16 -25
  71. package/components/date-picker/months.js +43 -50
  72. package/components/date-picker/weekdays.js +12 -22
  73. package/components/date-picker/years.js +83 -110
  74. package/components/dialog/dialog.js +142 -190
  75. package/components/dialog/dialog__body-scroll-preventer.js +0 -4
  76. package/components/dropdown/anchor.js +0 -9
  77. package/components/dropdown/dropdown.js +182 -213
  78. package/components/dropdown-menu/dropdown-menu.js +71 -97
  79. package/components/editable-heading/editable-heading.js +75 -127
  80. package/components/error-bubble/error-bubble.js +31 -60
  81. package/components/error-message/error-message.js +39 -59
  82. package/components/footer/footer.js +27 -30
  83. package/components/global/compose.js +1 -10
  84. package/components/global/composeRefs.js +7 -12
  85. package/components/global/controls-height.js +2 -2
  86. package/components/global/create-stateful-context.js +15 -15
  87. package/components/global/data-tests.js +6 -14
  88. package/components/global/dom.js +47 -86
  89. package/components/global/focus-sensor-hoc.js +122 -132
  90. package/components/global/fuzzy-highlight.js +22 -36
  91. package/components/global/get-event-key.js +8 -8
  92. package/components/global/get-uid.js +4 -8
  93. package/components/global/inject-styles.js +10 -15
  94. package/components/global/listeners.js +27 -51
  95. package/components/global/memoize.js +6 -12
  96. package/components/global/normalize-indent.js +19 -50
  97. package/components/global/promise-with-timeout.js +6 -8
  98. package/components/global/prop-types.js +3 -5
  99. package/components/global/react-dom-renderer.js +28 -44
  100. package/components/global/react-render-adapter.js +1 -1
  101. package/components/global/rerender-hoc.js +12 -30
  102. package/components/global/schedule-raf.js +5 -6
  103. package/components/global/sniffer.js +1 -1
  104. package/components/global/theme.js +0 -22
  105. package/components/global/trivial-template-tag.js +3 -10
  106. package/components/global/typescript-utils.js +2 -6
  107. package/components/global/url.js +20 -26
  108. package/components/global/use-event-callback.js +6 -4
  109. package/components/grid/col.js +35 -52
  110. package/components/grid/grid.js +17 -31
  111. package/components/grid/row.js +35 -47
  112. package/components/group/group.js +17 -25
  113. package/components/header/header.js +33 -78
  114. package/components/header/logo.js +20 -36
  115. package/components/header/profile.js +166 -199
  116. package/components/header/services-link.js +0 -4
  117. package/components/header/services.js +73 -116
  118. package/components/header/smart-profile.js +111 -203
  119. package/components/header/smart-services.js +62 -113
  120. package/components/header/tray-icon.js +21 -37
  121. package/components/header/tray.js +21 -32
  122. package/components/heading/heading.js +24 -25
  123. package/components/http/http.d.ts +1 -3
  124. package/components/http/http.js +203 -353
  125. package/components/http/http.mock.js +49 -101
  126. package/components/hub-source/hub-source.js +83 -190
  127. package/components/hub-source/hub-source__user.js +11 -44
  128. package/components/hub-source/hub-source__users-groups.js +37 -65
  129. package/components/i18n/i18n-context.js +7 -10
  130. package/components/i18n/i18n.js +7 -10
  131. package/components/icon/icon.js +76 -93
  132. package/components/icon/icon__svg.js +0 -8
  133. package/components/icon/index.js +0 -8
  134. package/components/input/input.js +0 -13
  135. package/components/island/adaptive-island-hoc.js +30 -43
  136. package/components/island/content.js +115 -132
  137. package/components/island/header.js +57 -70
  138. package/components/island/island.js +28 -40
  139. package/components/island-legacy/content-legacy.js +17 -25
  140. package/components/island-legacy/header-legacy.js +19 -27
  141. package/components/island-legacy/island-legacy.js +17 -25
  142. package/components/link/clickableLink.js +44 -59
  143. package/components/link/link.js +57 -68
  144. package/components/list/consts.js +2 -2
  145. package/components/list/list.js +611 -698
  146. package/components/list/list__custom.js +44 -62
  147. package/components/list/list__hint.js +10 -19
  148. package/components/list/list__item.js +133 -174
  149. package/components/list/list__link.js +37 -50
  150. package/components/list/list__separator.js +14 -24
  151. package/components/list/list__title.js +22 -32
  152. package/components/list/list__users-groups-source.js +54 -126
  153. package/components/loader/loader.js +43 -74
  154. package/components/loader/loader__core.js +198 -263
  155. package/components/loader-inline/loader-inline.js +23 -35
  156. package/components/loader-screen/loader-screen.js +25 -46
  157. package/components/login-dialog/login-dialog.js +111 -158
  158. package/components/login-dialog/service.js +8 -34
  159. package/components/markdown/markdown.js +15 -23
  160. package/components/message/message.js +161 -203
  161. package/components/old-browsers-message/old-browsers-message.js +11 -18
  162. package/components/old-browsers-message/old-browsers-message__stop.js +0 -7
  163. package/components/old-browsers-message/white-list.js +8 -16
  164. package/components/pager/pager.js +212 -271
  165. package/components/panel/panel.js +17 -25
  166. package/components/permissions/permissions.js +127 -172
  167. package/components/permissions/permissions__cache.js +194 -224
  168. package/components/popup/popup.consts.js +1 -1
  169. package/components/popup/popup.js +284 -343
  170. package/components/popup/popup.target.js +9 -8
  171. package/components/popup/position.js +96 -106
  172. package/components/popup-menu/popup-menu.js +44 -80
  173. package/components/progress-bar/progress-bar.js +87 -104
  174. package/components/query-assist/query-assist.js +838 -916
  175. package/components/query-assist/query-assist__suggestions.js +1 -30
  176. package/components/radio/radio.js +19 -34
  177. package/components/radio/radio__item.js +52 -69
  178. package/components/select/select.js +852 -957
  179. package/components/select/select__filter.js +0 -30
  180. package/components/select/select__popup.js +373 -487
  181. package/components/shortcuts/core.js +166 -217
  182. package/components/shortcuts/shortcut-title.js +6 -11
  183. package/components/shortcuts/shortcuts-hoc.js +19 -45
  184. package/components/shortcuts/shortcuts.js +50 -75
  185. package/components/slider/slider.js +99 -122
  186. package/components/slider/slider.utils.js +14 -24
  187. package/components/storage/storage.js +4 -33
  188. package/components/storage/storage__fallback.js +149 -224
  189. package/components/storage/storage__local.js +90 -153
  190. package/components/style.css +1 -1
  191. package/components/tab-trap/tab-trap.js +122 -153
  192. package/components/table/cell.js +14 -26
  193. package/components/table/disable-hover-hoc.js +33 -51
  194. package/components/table/header-cell.js +64 -89
  195. package/components/table/header.js +104 -132
  196. package/components/table/multitable.js +107 -125
  197. package/components/table/row-with-focus-sensor.js +25 -69
  198. package/components/table/row.js +175 -216
  199. package/components/table/selection-adapter.js +1 -3
  200. package/components/table/selection-shortcuts-hoc.js +180 -181
  201. package/components/table/selection.js +156 -226
  202. package/components/table/smart-table.js +50 -88
  203. package/components/table/table.js +289 -358
  204. package/components/tabs/collapsible-more.js +46 -79
  205. package/components/tabs/collapsible-tab.js +31 -38
  206. package/components/tabs/collapsible-tabs.js +88 -153
  207. package/components/tabs/custom-item.js +4 -2
  208. package/components/tabs/dumb-tabs.js +74 -117
  209. package/components/tabs/smart-tabs.js +29 -69
  210. package/components/tabs/tab-link.js +1 -5
  211. package/components/tabs/tab.js +19 -31
  212. package/components/tabs/tabs.js +0 -31
  213. package/components/tag/tag.js +133 -173
  214. package/components/tags-input/tags-input.js +329 -427
  215. package/components/tags-list/tags-list.js +57 -78
  216. package/components/text/text.js +28 -39
  217. package/components/toggle/toggle.js +56 -70
  218. package/components/tooltip/tooltip.js +146 -190
  219. package/components/user-agreement/service.js +228 -371
  220. package/components/user-agreement/toolbox.eula.js +160 -1
  221. package/components/user-agreement/user-agreement.js +85 -120
  222. package/components/user-card/card.js +0 -29
  223. package/components/user-card/smart-user-card-tooltip.js +51 -111
  224. package/components/user-card/tooltip.js +47 -84
  225. package/components/user-card/user-card.js +0 -29
  226. package/package.json +1 -1
@@ -1,633 +1,11 @@
1
- function _callSuper(t, o, e) {
2
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3
- }
4
- function _isNativeReflectConstruct() {
5
- try {
6
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
7
- } catch (t) {}
8
- return (_isNativeReflectConstruct = function () {
9
- return !!t;
10
- })();
11
- }
12
- function _iterableToArrayLimit(r, l) {
13
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14
- if (null != t) {
15
- var e,
16
- n,
17
- i,
18
- u,
19
- a = [],
20
- f = !0,
21
- o = !1;
22
- try {
23
- if (i = (t = t.call(r)).next, 0 === l) {
24
- if (Object(t) !== t) return;
25
- f = !1;
26
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
27
- } catch (r) {
28
- o = !0, n = r;
29
- } finally {
30
- try {
31
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
32
- } finally {
33
- if (o) throw n;
34
- }
35
- }
36
- return a;
37
- }
38
- }
39
- function ownKeys(e, r) {
40
- var t = Object.keys(e);
41
- if (Object.getOwnPropertySymbols) {
42
- var o = Object.getOwnPropertySymbols(e);
43
- r && (o = o.filter(function (r) {
44
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
45
- })), t.push.apply(t, o);
46
- }
47
- return t;
48
- }
49
- function _objectSpread2(e) {
50
- for (var r = 1; r < arguments.length; r++) {
51
- var t = null != arguments[r] ? arguments[r] : {};
52
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
53
- _defineProperty(e, r, t[r]);
54
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
55
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
56
- });
57
- }
58
- return e;
59
- }
60
- function _regeneratorRuntime() {
61
- _regeneratorRuntime = function () {
62
- return e;
63
- };
64
- var t,
65
- e = {},
66
- r = Object.prototype,
67
- n = r.hasOwnProperty,
68
- o = Object.defineProperty || function (t, e, r) {
69
- t[e] = r.value;
70
- },
71
- i = "function" == typeof Symbol ? Symbol : {},
72
- a = i.iterator || "@@iterator",
73
- c = i.asyncIterator || "@@asyncIterator",
74
- u = i.toStringTag || "@@toStringTag";
75
- function define(t, e, r) {
76
- return Object.defineProperty(t, e, {
77
- value: r,
78
- enumerable: !0,
79
- configurable: !0,
80
- writable: !0
81
- }), t[e];
82
- }
83
- try {
84
- define({}, "");
85
- } catch (t) {
86
- define = function (t, e, r) {
87
- return t[e] = r;
88
- };
89
- }
90
- function wrap(t, e, r, n) {
91
- var i = e && e.prototype instanceof Generator ? e : Generator,
92
- a = Object.create(i.prototype),
93
- c = new Context(n || []);
94
- return o(a, "_invoke", {
95
- value: makeInvokeMethod(t, r, c)
96
- }), a;
97
- }
98
- function tryCatch(t, e, r) {
99
- try {
100
- return {
101
- type: "normal",
102
- arg: t.call(e, r)
103
- };
104
- } catch (t) {
105
- return {
106
- type: "throw",
107
- arg: t
108
- };
109
- }
110
- }
111
- e.wrap = wrap;
112
- var h = "suspendedStart",
113
- l = "suspendedYield",
114
- f = "executing",
115
- s = "completed",
116
- y = {};
117
- function Generator() {}
118
- function GeneratorFunction() {}
119
- function GeneratorFunctionPrototype() {}
120
- var p = {};
121
- define(p, a, function () {
122
- return this;
123
- });
124
- var d = Object.getPrototypeOf,
125
- v = d && d(d(values([])));
126
- v && v !== r && n.call(v, a) && (p = v);
127
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
128
- function defineIteratorMethods(t) {
129
- ["next", "throw", "return"].forEach(function (e) {
130
- define(t, e, function (t) {
131
- return this._invoke(e, t);
132
- });
133
- });
134
- }
135
- function AsyncIterator(t, e) {
136
- function invoke(r, o, i, a) {
137
- var c = tryCatch(t[r], t, o);
138
- if ("throw" !== c.type) {
139
- var u = c.arg,
140
- h = u.value;
141
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
142
- invoke("next", t, i, a);
143
- }, function (t) {
144
- invoke("throw", t, i, a);
145
- }) : e.resolve(h).then(function (t) {
146
- u.value = t, i(u);
147
- }, function (t) {
148
- return invoke("throw", t, i, a);
149
- });
150
- }
151
- a(c.arg);
152
- }
153
- var r;
154
- o(this, "_invoke", {
155
- value: function (t, n) {
156
- function callInvokeWithMethodAndArg() {
157
- return new e(function (e, r) {
158
- invoke(t, n, e, r);
159
- });
160
- }
161
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
- }
163
- });
164
- }
165
- function makeInvokeMethod(e, r, n) {
166
- var o = h;
167
- return function (i, a) {
168
- if (o === f) throw Error("Generator is already running");
169
- if (o === s) {
170
- if ("throw" === i) throw a;
171
- return {
172
- value: t,
173
- done: !0
174
- };
175
- }
176
- for (n.method = i, n.arg = a;;) {
177
- var c = n.delegate;
178
- if (c) {
179
- var u = maybeInvokeDelegate(c, n);
180
- if (u) {
181
- if (u === y) continue;
182
- return u;
183
- }
184
- }
185
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
186
- if (o === h) throw o = s, n.arg;
187
- n.dispatchException(n.arg);
188
- } else "return" === n.method && n.abrupt("return", n.arg);
189
- o = f;
190
- var p = tryCatch(e, r, n);
191
- if ("normal" === p.type) {
192
- if (o = n.done ? s : l, p.arg === y) continue;
193
- return {
194
- value: p.arg,
195
- done: n.done
196
- };
197
- }
198
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
199
- }
200
- };
201
- }
202
- function maybeInvokeDelegate(e, r) {
203
- var n = r.method,
204
- o = e.iterator[n];
205
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
206
- var i = tryCatch(o, e.iterator, r.arg);
207
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
208
- var a = i.arg;
209
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
210
- }
211
- function pushTryEntry(t) {
212
- var e = {
213
- tryLoc: t[0]
214
- };
215
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
216
- }
217
- function resetTryEntry(t) {
218
- var e = t.completion || {};
219
- e.type = "normal", delete e.arg, t.completion = e;
220
- }
221
- function Context(t) {
222
- this.tryEntries = [{
223
- tryLoc: "root"
224
- }], t.forEach(pushTryEntry, this), this.reset(!0);
225
- }
226
- function values(e) {
227
- if (e || "" === e) {
228
- var r = e[a];
229
- if (r) return r.call(e);
230
- if ("function" == typeof e.next) return e;
231
- if (!isNaN(e.length)) {
232
- var o = -1,
233
- i = function next() {
234
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
235
- return next.value = t, next.done = !0, next;
236
- };
237
- return i.next = i;
238
- }
239
- }
240
- throw new TypeError(typeof e + " is not iterable");
241
- }
242
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
243
- value: GeneratorFunctionPrototype,
244
- configurable: !0
245
- }), o(GeneratorFunctionPrototype, "constructor", {
246
- value: GeneratorFunction,
247
- configurable: !0
248
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
249
- var e = "function" == typeof t && t.constructor;
250
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
251
- }, e.mark = function (t) {
252
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
253
- }, e.awrap = function (t) {
254
- return {
255
- __await: t
256
- };
257
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
258
- return this;
259
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
260
- void 0 === i && (i = Promise);
261
- var a = new AsyncIterator(wrap(t, r, n, o), i);
262
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
263
- return t.done ? t.value : a.next();
264
- });
265
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
266
- return this;
267
- }), define(g, "toString", function () {
268
- return "[object Generator]";
269
- }), e.keys = function (t) {
270
- var e = Object(t),
271
- r = [];
272
- for (var n in e) r.push(n);
273
- return r.reverse(), function next() {
274
- for (; r.length;) {
275
- var t = r.pop();
276
- if (t in e) return next.value = t, next.done = !1, next;
277
- }
278
- return next.done = !0, next;
279
- };
280
- }, e.values = values, Context.prototype = {
281
- constructor: Context,
282
- reset: function (e) {
283
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
284
- },
285
- stop: function () {
286
- this.done = !0;
287
- var t = this.tryEntries[0].completion;
288
- if ("throw" === t.type) throw t.arg;
289
- return this.rval;
290
- },
291
- dispatchException: function (e) {
292
- if (this.done) throw e;
293
- var r = this;
294
- function handle(n, o) {
295
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
296
- }
297
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
298
- var i = this.tryEntries[o],
299
- a = i.completion;
300
- if ("root" === i.tryLoc) return handle("end");
301
- if (i.tryLoc <= this.prev) {
302
- var c = n.call(i, "catchLoc"),
303
- u = n.call(i, "finallyLoc");
304
- if (c && u) {
305
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
306
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
307
- } else if (c) {
308
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
309
- } else {
310
- if (!u) throw Error("try statement without catch or finally");
311
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
312
- }
313
- }
314
- }
315
- },
316
- abrupt: function (t, e) {
317
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
318
- var o = this.tryEntries[r];
319
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
320
- var i = o;
321
- break;
322
- }
323
- }
324
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
325
- var a = i ? i.completion : {};
326
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
327
- },
328
- complete: function (t, e) {
329
- if ("throw" === t.type) throw t.arg;
330
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
331
- },
332
- finish: function (t) {
333
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
334
- var r = this.tryEntries[e];
335
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
336
- }
337
- },
338
- catch: function (t) {
339
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
340
- var r = this.tryEntries[e];
341
- if (r.tryLoc === t) {
342
- var n = r.completion;
343
- if ("throw" === n.type) {
344
- var o = n.arg;
345
- resetTryEntry(r);
346
- }
347
- return o;
348
- }
349
- }
350
- throw Error("illegal catch attempt");
351
- },
352
- delegateYield: function (e, r, n) {
353
- return this.delegate = {
354
- iterator: values(e),
355
- resultName: r,
356
- nextLoc: n
357
- }, "next" === this.method && (this.arg = t), y;
358
- }
359
- }, e;
360
- }
361
- function _toPrimitive(t, r) {
362
- if ("object" != typeof t || !t) return t;
363
- var e = t[Symbol.toPrimitive];
364
- if (void 0 !== e) {
365
- var i = e.call(t, r || "default");
366
- if ("object" != typeof i) return i;
367
- throw new TypeError("@@toPrimitive must return a primitive value.");
368
- }
369
- return ("string" === r ? String : Number)(t);
370
- }
371
- function _toPropertyKey(t) {
372
- var i = _toPrimitive(t, "string");
373
- return "symbol" == typeof i ? i : i + "";
374
- }
375
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
376
- try {
377
- var info = gen[key](arg);
378
- var value = info.value;
379
- } catch (error) {
380
- reject(error);
381
- return;
382
- }
383
- if (info.done) {
384
- resolve(value);
385
- } else {
386
- Promise.resolve(value).then(_next, _throw);
387
- }
388
- }
389
- function _asyncToGenerator(fn) {
390
- return function () {
391
- var self = this,
392
- args = arguments;
393
- return new Promise(function (resolve, reject) {
394
- var gen = fn.apply(self, args);
395
- function _next(value) {
396
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
397
- }
398
- function _throw(err) {
399
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
400
- }
401
- _next(undefined);
402
- });
403
- };
404
- }
405
- function _classCallCheck(instance, Constructor) {
406
- if (!(instance instanceof Constructor)) {
407
- throw new TypeError("Cannot call a class as a function");
408
- }
409
- }
410
- function _defineProperties(target, props) {
411
- for (var i = 0; i < props.length; i++) {
412
- var descriptor = props[i];
413
- descriptor.enumerable = descriptor.enumerable || false;
414
- descriptor.configurable = true;
415
- if ("value" in descriptor) descriptor.writable = true;
416
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
417
- }
418
- }
419
- function _createClass(Constructor, protoProps, staticProps) {
420
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
421
- if (staticProps) _defineProperties(Constructor, staticProps);
422
- Object.defineProperty(Constructor, "prototype", {
423
- writable: false
424
- });
425
- return Constructor;
426
- }
427
- function _defineProperty(obj, key, value) {
428
- key = _toPropertyKey(key);
429
- if (key in obj) {
430
- Object.defineProperty(obj, key, {
431
- value: value,
432
- enumerable: true,
433
- configurable: true,
434
- writable: true
435
- });
436
- } else {
437
- obj[key] = value;
438
- }
439
- return obj;
440
- }
441
1
  function _extends() {
442
- _extends = Object.assign ? Object.assign.bind() : function (target) {
443
- for (var i = 1; i < arguments.length; i++) {
444
- var source = arguments[i];
445
- for (var key in source) {
446
- if (Object.prototype.hasOwnProperty.call(source, key)) {
447
- target[key] = source[key];
448
- }
449
- }
450
- }
451
- return target;
452
- };
453
- return _extends.apply(this, arguments);
454
- }
455
- function _inherits(subClass, superClass) {
456
- if (typeof superClass !== "function" && superClass !== null) {
457
- throw new TypeError("Super expression must either be null or a function");
458
- }
459
- subClass.prototype = Object.create(superClass && superClass.prototype, {
460
- constructor: {
461
- value: subClass,
462
- writable: true,
463
- configurable: true
464
- }
465
- });
466
- Object.defineProperty(subClass, "prototype", {
467
- writable: false
468
- });
469
- if (superClass) _setPrototypeOf(subClass, superClass);
470
- }
471
- function _getPrototypeOf(o) {
472
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
473
- return o.__proto__ || Object.getPrototypeOf(o);
474
- };
475
- return _getPrototypeOf(o);
476
- }
477
- function _setPrototypeOf(o, p) {
478
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
479
- o.__proto__ = p;
480
- return o;
481
- };
482
- return _setPrototypeOf(o, p);
483
- }
484
- function _objectWithoutPropertiesLoose(source, excluded) {
485
- if (source == null) return {};
486
- var target = {};
487
- for (var key in source) {
488
- if (Object.prototype.hasOwnProperty.call(source, key)) {
489
- if (excluded.indexOf(key) >= 0) continue;
490
- target[key] = source[key];
491
- }
492
- }
493
- return target;
494
- }
495
- function _objectWithoutProperties(source, excluded) {
496
- if (source == null) return {};
497
- var target = _objectWithoutPropertiesLoose(source, excluded);
498
- var key, i;
499
- if (Object.getOwnPropertySymbols) {
500
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
501
- for (i = 0; i < sourceSymbolKeys.length; i++) {
502
- key = sourceSymbolKeys[i];
503
- if (excluded.indexOf(key) >= 0) continue;
504
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
505
- target[key] = source[key];
506
- }
507
- }
508
- return target;
509
- }
510
- function _assertThisInitialized(self) {
511
- if (self === void 0) {
512
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
513
- }
514
- return self;
515
- }
516
- function _possibleConstructorReturn(self, call) {
517
- if (call && (typeof call === "object" || typeof call === "function")) {
518
- return call;
519
- } else if (call !== void 0) {
520
- throw new TypeError("Derived constructors may only return object or undefined");
521
- }
522
- return _assertThisInitialized(self);
523
- }
524
- function _superPropBase(object, property) {
525
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
526
- object = _getPrototypeOf(object);
527
- if (object === null) break;
528
- }
529
- return object;
530
- }
531
- function _get() {
532
- if (typeof Reflect !== "undefined" && Reflect.get) {
533
- _get = Reflect.get.bind();
534
- } else {
535
- _get = function _get(target, property, receiver) {
536
- var base = _superPropBase(target, property);
537
- if (!base) return;
538
- var desc = Object.getOwnPropertyDescriptor(base, property);
539
- if (desc.get) {
540
- return desc.get.call(arguments.length < 3 ? target : receiver);
541
- }
542
- return desc.value;
543
- };
544
- }
545
- return _get.apply(this, arguments);
546
- }
547
- function _slicedToArray(arr, i) {
548
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
549
- }
550
- function _toConsumableArray(arr) {
551
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
552
- }
553
- function _arrayWithoutHoles(arr) {
554
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
555
- }
556
- function _arrayWithHoles(arr) {
557
- if (Array.isArray(arr)) return arr;
558
- }
559
- function _iterableToArray(iter) {
560
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
561
- }
562
- function _unsupportedIterableToArray(o, minLen) {
563
- if (!o) return;
564
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
565
- var n = Object.prototype.toString.call(o).slice(8, -1);
566
- if (n === "Object" && o.constructor) n = o.constructor.name;
567
- if (n === "Map" || n === "Set") return Array.from(o);
568
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
569
- }
570
- function _arrayLikeToArray(arr, len) {
571
- if (len == null || len > arr.length) len = arr.length;
572
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
573
- return arr2;
574
- }
575
- function _nonIterableSpread() {
576
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
577
- }
578
- function _nonIterableRest() {
579
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
580
- }
581
- function _createForOfIteratorHelper(o, allowArrayLike) {
582
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
583
- if (!it) {
584
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
585
- if (it) o = it;
586
- var i = 0;
587
- var F = function () {};
588
- return {
589
- s: F,
590
- n: function () {
591
- if (i >= o.length) return {
592
- done: true
593
- };
594
- return {
595
- done: false,
596
- value: o[i++]
597
- };
598
- },
599
- e: function (e) {
600
- throw e;
601
- },
602
- f: F
603
- };
604
- }
605
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
606
- }
607
- var normalCompletion = true,
608
- didErr = false,
609
- err;
610
- return {
611
- s: function () {
612
- it = it.call(o);
613
- },
614
- n: function () {
615
- var step = it.next();
616
- normalCompletion = step.done;
617
- return step;
618
- },
619
- e: function (e) {
620
- didErr = true;
621
- err = e;
622
- },
623
- f: function () {
624
- try {
625
- if (!normalCompletion && it.return != null) it.return();
626
- } finally {
627
- if (didErr) throw err;
628
- }
2
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var t = arguments[e];
5
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
629
6
  }
630
- };
7
+ return n;
8
+ }, _extends.apply(null, arguments);
631
9
  }
632
10
 
633
- export { _defineProperty as _, _inherits as a, _createClass as b, _objectWithoutProperties as c, _objectSpread2 as d, _extends as e, _classCallCheck as f, _callSuper as g, _asyncToGenerator as h, _regeneratorRuntime as i, _slicedToArray as j, _toConsumableArray as k, _createForOfIteratorHelper as l, _get as m, _getPrototypeOf as n, _toPropertyKey as o };
11
+ export { _extends as _ };
@@ -1,4 +1,4 @@
1
- import { c as _objectWithoutProperties, e as _extends } from './_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers.js';
2
2
  import React, { memo } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import chevronDown from '@jetbrains/icons/chevron-10px';
@@ -8,11 +8,12 @@ import { Button } from '../button/button.js';
8
8
 
9
9
  var modules_d9414203 = {"light":"light_rui_2ac4","dropdown":"dropdown_rui_8ec5","anchor":"anchor_rui_8ec5","chevron":"chevron_rui_8ec5"};
10
10
 
11
- var _excluded = ["children", "className"];
12
- var Anchor = function Anchor(_ref) {
13
- var children = _ref.children,
14
- className = _ref.className,
15
- restProps = _objectWithoutProperties(_ref, _excluded);
11
+ const Anchor = _ref => {
12
+ let {
13
+ children,
14
+ className,
15
+ ...restProps
16
+ } = _ref;
16
17
  return /*#__PURE__*/React.createElement(Button, _extends({
17
18
  "data-test-ring-dropdown-anchor": true,
18
19
  text: true,
@@ -3,20 +3,22 @@ import classNames from 'classnames';
3
3
  var modules_e81895c9 = {"button-shadow":"inset 0 0 0 1px","loaderWidth":"calc(var(--ring-unit)*8)","light":"light_rui_2ac4","heightS":"heightS_rui_6ad6","heightM":"heightM_rui_6ad6","heightL":"heightL_rui_6ad6","button":"button_rui_6ad6","active":"active_rui_6ad6","withIcon":"withIcon_rui_6ad6","icon":"icon_rui_6ad6","primary":"primary_rui_6ad6","loader":"loader_rui_6ad6","loaderBackground":"loaderBackground_rui_6ad6","danger":"danger_rui_6ad6","text":"text_rui_6ad6","content":"content_rui_6ad6","text-loading":"text-loading_rui_6ad6","inline":"inline_rui_6ad6","withNormalIcon":"withNormalIcon_rui_6ad6","withDangerIcon":"withDangerIcon_rui_6ad6","progress":"progress_rui_6ad6","delayed":"delayed_rui_6ad6","short":"short_rui_6ad6","dropdownIcon":"dropdownIcon_rui_6ad6"};
4
4
 
5
5
  function getButtonClasses(_ref) {
6
- var className = _ref.className,
7
- active = _ref.active,
8
- disabled = _ref.disabled,
9
- loader = _ref.loader,
10
- primary = _ref.primary,
11
- short = _ref.short,
12
- text = _ref.text,
13
- inline = _ref.inline,
14
- danger = _ref.danger,
15
- delayed = _ref.delayed,
16
- icon = _ref.icon,
17
- height = _ref.height;
18
- var withNormalIcon = icon && !active && !danger && !primary && !disabled;
19
- return classNames(modules_e81895c9.button, className, modules_e81895c9["height".concat(height)], {
6
+ let {
7
+ className,
8
+ active,
9
+ disabled,
10
+ loader,
11
+ primary,
12
+ short,
13
+ text,
14
+ inline,
15
+ danger,
16
+ delayed,
17
+ icon,
18
+ height
19
+ } = _ref;
20
+ const withNormalIcon = icon && !active && !danger && !primary && !disabled;
21
+ return classNames(modules_e81895c9.button, className, modules_e81895c9[`height${height}`], {
20
22
  [modules_e81895c9.active]: active,
21
23
  [modules_e81895c9.danger]: danger,
22
24
  [modules_e81895c9.delayed]: delayed,