@jetbrains/ring-ui-built 6.0.32 → 6.0.33

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