@jetbrains/ring-ui-built 6.0.31 → 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 (225) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +1 -567
  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/tab-trap/tab-trap.js +122 -153
  191. package/components/table/cell.js +14 -26
  192. package/components/table/disable-hover-hoc.js +33 -51
  193. package/components/table/header-cell.js +64 -89
  194. package/components/table/header.js +104 -132
  195. package/components/table/multitable.js +107 -125
  196. package/components/table/row-with-focus-sensor.js +25 -69
  197. package/components/table/row.js +175 -216
  198. package/components/table/selection-adapter.js +1 -3
  199. package/components/table/selection-shortcuts-hoc.js +180 -181
  200. package/components/table/selection.js +156 -226
  201. package/components/table/smart-table.js +50 -88
  202. package/components/table/table.js +289 -358
  203. package/components/tabs/collapsible-more.js +46 -79
  204. package/components/tabs/collapsible-tab.js +31 -38
  205. package/components/tabs/collapsible-tabs.js +88 -153
  206. package/components/tabs/custom-item.js +4 -2
  207. package/components/tabs/dumb-tabs.js +74 -117
  208. package/components/tabs/smart-tabs.js +29 -69
  209. package/components/tabs/tab-link.js +1 -5
  210. package/components/tabs/tab.js +19 -31
  211. package/components/tabs/tabs.js +0 -31
  212. package/components/tag/tag.js +133 -173
  213. package/components/tags-input/tags-input.js +329 -427
  214. package/components/tags-list/tags-list.js +57 -78
  215. package/components/text/text.js +28 -39
  216. package/components/toggle/toggle.js +56 -70
  217. package/components/tooltip/tooltip.js +146 -190
  218. package/components/user-agreement/service.js +228 -371
  219. package/components/user-agreement/toolbox.eula.js +160 -1
  220. package/components/user-agreement/user-agreement.js +85 -120
  221. package/components/user-card/card.js +0 -29
  222. package/components/user-card/smart-user-card-tooltip.js +51 -111
  223. package/components/user-card/tooltip.js +47 -84
  224. package/components/user-card/user-card.js +0 -29
  225. package/package.json +1 -1
@@ -1,116 +1,3 @@
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
- }
114
1
  function _extends() {
115
2
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
116
3
  for (var e = 1; e < arguments.length; e++) {
@@ -120,458 +7,5 @@ function _extends() {
120
7
  return n;
121
8
  }, _extends.apply(null, arguments);
122
9
  }
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
- }
576
10
 
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 };
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,
@@ -1,29 +1,23 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createClass, e as _extends, f as _classCallCheck, g as _callSuper } from './_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } 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
- var Caption = /*#__PURE__*/function (_PureComponent) {
9
- function Caption() {
10
- _classCallCheck(this, Caption);
11
- return _callSuper(this, Caption, arguments);
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
+ }));
12
20
  }
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
- });
21
+ }
28
22
 
29
23
  export { Caption as C, modules_1068e447 as m };