@jetbrains/ring-ui 5.1.15 → 5.1.17

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 (233) hide show
  1. package/components/editable-heading/editable-heading.css +22 -0
  2. package/components/editable-heading/editable-heading.d.ts +2 -1
  3. package/components/editable-heading/editable-heading.js +42 -6
  4. package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -10
  5. package/dist/_helpers/button__classes.js +13 -3
  6. package/dist/_helpers/dialog__body-scroll-preventer.js +0 -1
  7. package/dist/_helpers/footer.js +9 -5
  8. package/dist/_helpers/sidebar.js +9 -3
  9. package/dist/_helpers/theme.js +5 -3
  10. package/dist/_helpers/title.js +5 -2
  11. package/dist/alert/alert.js +22 -11
  12. package/dist/alert-service/alert-service.js +4 -8
  13. package/dist/analytics/analytics.js +2 -3
  14. package/dist/analytics/analytics__custom-plugin.js +6 -6
  15. package/dist/analytics/analytics__ga-plugin.js +0 -2
  16. package/dist/analytics/analytics__plugin-utils.js +0 -1
  17. package/dist/auth/auth.js +0 -6
  18. package/dist/auth/auth__core.js +20 -26
  19. package/dist/auth/background-flow.js +0 -2
  20. package/dist/auth/down-notification.js +0 -4
  21. package/dist/auth/iframe-flow.js +1 -7
  22. package/dist/auth/landing.js +3 -9
  23. package/dist/auth/request-builder.js +1 -3
  24. package/dist/auth/response-parser.js +0 -2
  25. package/dist/auth/storage.js +2 -7
  26. package/dist/auth/token-validator.js +0 -2
  27. package/dist/auth/window-flow.js +0 -2
  28. package/dist/auth-dialog/auth-dialog.js +0 -4
  29. package/dist/auth-dialog-service/auth-dialog-service.js +0 -4
  30. package/dist/auth-ng/auth-ng.js +7 -13
  31. package/dist/auth-ng/auth-ng.mock.js +5 -5
  32. package/dist/autofocus-ng/autofocus-ng.js +0 -3
  33. package/dist/avatar/avatar.js +7 -11
  34. package/dist/avatar/fallback-avatar.js +1 -5
  35. package/dist/avatar-editor-ng/avatar-editor-ng.js +3 -8
  36. package/dist/avatar-ng/avatar-ng.js +0 -6
  37. package/dist/badge/badge.js +6 -2
  38. package/dist/badge-ng/badge-ng.js +0 -3
  39. package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
  40. package/dist/button/button.js +11 -12
  41. package/dist/button/button__classes.js +0 -1
  42. package/dist/button-group-ng/button-group-ng.js +1 -1
  43. package/dist/button-ng/button-ng.js +6 -7
  44. package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -1
  45. package/dist/caret/caret.js +7 -10
  46. package/dist/checkbox/checkbox.js +0 -1
  47. package/dist/checkbox-ng/checkbox-ng.js +0 -2
  48. package/dist/clipboard/clipboard.js +6 -8
  49. package/dist/code/code.js +4 -3
  50. package/dist/compiler-ng/compiler-ng.js +2 -2
  51. package/dist/confirm/confirm.js +0 -4
  52. package/dist/confirm-ng/confirm-ng.js +2 -6
  53. package/dist/confirm-service/confirm-service.js +6 -10
  54. package/dist/content-layout/content-layout.js +6 -4
  55. package/dist/contenteditable/contenteditable.js +1 -1
  56. package/dist/control-label/control-label.js +8 -4
  57. package/dist/data-list/data-list.js +8 -12
  58. package/dist/data-list/data-list.mock.js +0 -1
  59. package/dist/data-list/item.js +0 -3
  60. package/dist/data-list/selection.js +3 -6
  61. package/dist/data-list/title.js +0 -1
  62. package/dist/data-list-ng/data-list-ng.js +0 -8
  63. package/dist/date-picker/consts.js +1 -1
  64. package/dist/date-picker/date-input.js +2 -3
  65. package/dist/date-picker/date-picker.js +14 -17
  66. package/dist/date-picker/date-popup.js +22 -18
  67. package/dist/date-picker/day.js +17 -3
  68. package/dist/date-picker/month-names.js +4 -3
  69. package/dist/date-picker/month-slider.js +3 -2
  70. package/dist/date-picker/month.js +1 -1
  71. package/dist/date-picker/months.js +0 -1
  72. package/dist/date-picker/weekdays.js +4 -3
  73. package/dist/date-picker/years.js +4 -3
  74. package/dist/dialog/dialog.js +7 -7
  75. package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
  76. package/dist/dialog-ng/dialog-ng.js +5 -12
  77. package/dist/docked-panel-ng/docked-panel-ng.js +0 -3
  78. package/dist/dropdown/anchor.js +0 -1
  79. package/dist/dropdown/dropdown.js +9 -8
  80. package/dist/dropdown-menu/dropdown-menu.js +4 -13
  81. package/dist/editable-heading/editable-heading.d.ts +2 -1
  82. package/dist/editable-heading/editable-heading.js +75 -14
  83. package/dist/error-bubble/error-bubble.js +0 -4
  84. package/dist/error-message/error-message.js +0 -1
  85. package/dist/error-message-ng/error-message-ng.js +0 -1
  86. package/dist/footer/footer.js +1 -2
  87. package/dist/footer-ng/footer-ng.js +0 -1
  88. package/dist/form-ng/form-ng.js +0 -3
  89. package/dist/global/angular-component-factory.js +0 -3
  90. package/dist/global/create-stateful-context.js +4 -4
  91. package/dist/global/data-tests.js +2 -2
  92. package/dist/global/dom.js +6 -9
  93. package/dist/global/fuzzy-highlight.js +6 -6
  94. package/dist/global/linear-function.js +2 -2
  95. package/dist/global/listeners.js +1 -2
  96. package/dist/global/memoize.js +0 -1
  97. package/dist/global/normalize-indent.js +1 -1
  98. package/dist/global/react-dom-renderer.js +0 -2
  99. package/dist/global/react-render-adapter.js +0 -1
  100. package/dist/global/rerender-hoc.js +0 -2
  101. package/dist/global/theme.js +0 -4
  102. package/dist/global/trivial-template-tag.js +1 -1
  103. package/dist/global/url.js +0 -1
  104. package/dist/grid/col.js +3 -3
  105. package/dist/grid/grid.js +0 -2
  106. package/dist/grid/row.js +3 -1
  107. package/dist/header/header.js +3 -11
  108. package/dist/header/logo.js +0 -1
  109. package/dist/header/profile.js +9 -16
  110. package/dist/header/services-link.js +0 -1
  111. package/dist/header/services.js +4 -6
  112. package/dist/header/smart-profile.js +1 -11
  113. package/dist/header/smart-services.js +1 -7
  114. package/dist/header/tray-icon.js +4 -3
  115. package/dist/heading/heading.js +4 -2
  116. package/dist/heading-ng/heading-ng.js +0 -3
  117. package/dist/http/http.js +7 -9
  118. package/dist/http/http.mock.js +2 -5
  119. package/dist/hub-source/hub-source.js +0 -2
  120. package/dist/hub-source/hub-source__user.js +0 -2
  121. package/dist/hub-source/hub-source__users-groups.js +0 -3
  122. package/dist/i18n/i18n-context.js +3 -4
  123. package/dist/i18n/i18n.js +0 -1
  124. package/dist/icon/icon.js +6 -5
  125. package/dist/icon/icon__svg.js +4 -3
  126. package/dist/icon/index.js +0 -1
  127. package/dist/icon-ng/icon-ng.js +0 -1
  128. package/dist/input/input.js +13 -8
  129. package/dist/input-ng/input-ng.js +8 -6
  130. package/dist/island/adaptive-island-hoc.js +1 -1
  131. package/dist/island/content.js +9 -5
  132. package/dist/island/header.js +4 -2
  133. package/dist/island/island.js +4 -2
  134. package/dist/island-ng/island-content-ng.js +2 -2
  135. package/dist/island-ng/island-header-ng.js +1 -1
  136. package/dist/island-ng/island-ng.js +1 -1
  137. package/dist/link/link.js +8 -3
  138. package/dist/list/list.js +10 -18
  139. package/dist/list/list__custom.js +5 -2
  140. package/dist/list/list__item.js +11 -9
  141. package/dist/list/list__link.js +6 -4
  142. package/dist/list/list__separator.js +4 -2
  143. package/dist/list/list__title.js +4 -2
  144. package/dist/list/list__users-groups-source.js +0 -8
  145. package/dist/loader/loader.js +0 -4
  146. package/dist/loader/loader__core.js +0 -4
  147. package/dist/loader-ng/loader-ng.js +0 -4
  148. package/dist/loader-screen/loader-screen.js +3 -5
  149. package/dist/loader-screen-ng/loader-screen-ng.js +0 -4
  150. package/dist/login-dialog/login-dialog.js +2 -8
  151. package/dist/login-dialog/service.js +0 -6
  152. package/dist/markdown/code.js +0 -2
  153. package/dist/markdown/link.js +0 -1
  154. package/dist/markdown/markdown.js +5 -5
  155. package/dist/message/message.js +68 -58
  156. package/dist/old-browsers-message/old-browsers-message.js +0 -1
  157. package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
  158. package/dist/old-browsers-message/white-list.js +6 -5
  159. package/dist/pager/pager.js +8 -13
  160. package/dist/pager-ng/pager-ng.js +0 -8
  161. package/dist/panel-ng/panel-ng.js +0 -3
  162. package/dist/permissions/permissions.js +1 -2
  163. package/dist/permissions-ng/permissions-ng.js +1 -7
  164. package/dist/place-under-ng/place-under-ng.js +6 -10
  165. package/dist/popup/popup.js +22 -23
  166. package/dist/popup/position.js +70 -61
  167. package/dist/popup-menu/popup-menu.js +0 -9
  168. package/dist/progress-bar/progress-bar.js +4 -2
  169. package/dist/progress-bar-ng/progress-bar-ng.js +0 -3
  170. package/dist/promised-click-ng/promised-click-ng.js +0 -4
  171. package/dist/proxy-attrs/proxy-attrs.js +0 -1
  172. package/dist/query-assist/query-assist.js +39 -35
  173. package/dist/query-assist/query-assist__suggestions.js +0 -8
  174. package/dist/query-assist-ng/query-assist-ng.js +0 -10
  175. package/dist/radio-ng/radio-ng.js +0 -1
  176. package/dist/save-field-ng/save-field-ng.js +6 -13
  177. package/dist/select/select.js +33 -31
  178. package/dist/select/select__filter.js +0 -8
  179. package/dist/select/select__popup.js +12 -14
  180. package/dist/select-ng/select-ng.js +8 -16
  181. package/dist/select-ng/select-ng__lazy.js +0 -8
  182. package/dist/select-ng/select-ng__options.js +5 -6
  183. package/dist/shortcuts/core.js +5 -7
  184. package/dist/shortcuts/shortcuts-hoc.js +0 -2
  185. package/dist/shortcuts/shortcuts.js +0 -2
  186. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +1 -8
  187. package/dist/shortcuts-ng/shortcuts-ng.js +6 -12
  188. package/dist/sidebar-ng/sidebar-ng.js +2 -7
  189. package/dist/storage/storage.js +0 -5
  190. package/dist/storage/storage__fallback.js +0 -3
  191. package/dist/storage/storage__local.js +0 -4
  192. package/dist/style.css +1 -1
  193. package/dist/tab-trap/tab-trap.js +1 -4
  194. package/dist/table/header-cell.js +8 -4
  195. package/dist/table/header.js +8 -7
  196. package/dist/table/multitable.js +0 -1
  197. package/dist/table/row-with-focus-sensor.js +0 -4
  198. package/dist/table/row.js +11 -8
  199. package/dist/table/selection-adapter.js +1 -1
  200. package/dist/table/selection-shortcuts-hoc.js +0 -2
  201. package/dist/table/selection.js +3 -5
  202. package/dist/table/smart-table.js +4 -10
  203. package/dist/table/table.js +26 -24
  204. package/dist/table-legacy-ng/table-legacy-ng.js +3 -12
  205. package/dist/table-legacy-ng/table-legacy-ng__pager.js +0 -8
  206. package/dist/table-legacy-ng/table-legacy-ng__selection.js +0 -2
  207. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -3
  208. package/dist/table-ng/smart-table-ng.js +0 -7
  209. package/dist/table-ng/table-ng.js +0 -7
  210. package/dist/tabs/collapsible-more.js +4 -13
  211. package/dist/tabs/collapsible-tab.js +9 -5
  212. package/dist/tabs/collapsible-tabs.js +7 -16
  213. package/dist/tabs/dumb-tabs.js +6 -13
  214. package/dist/tabs/smart-tabs.js +1 -10
  215. package/dist/tabs/tab-link.js +0 -1
  216. package/dist/tabs/tabs.js +0 -9
  217. package/dist/tabs-ng/tabs-ng.js +4 -5
  218. package/dist/tag/tag.js +11 -6
  219. package/dist/tags-input/tags-input.js +12 -18
  220. package/dist/tags-input-ng/tags-input-ng.js +0 -8
  221. package/dist/tags-list/tags-list.js +0 -1
  222. package/dist/text/text.js +6 -3
  223. package/dist/toggle-ng/toggle-ng.js +0 -3
  224. package/dist/tooltip/tooltip.js +5 -7
  225. package/dist/tooltip-ng/tooltip-ng.js +2 -6
  226. package/dist/user-agreement/service.js +9 -15
  227. package/dist/user-agreement/user-agreement.js +0 -5
  228. package/dist/user-card/card.js +0 -7
  229. package/dist/user-card/smart-user-card-tooltip.js +1 -8
  230. package/dist/user-card/tooltip.js +1 -8
  231. package/dist/user-card/user-card.js +0 -7
  232. package/dist/user-card-ng/user-card-ng.js +0 -7
  233. package/package.json +22 -22
@@ -1,17 +1,14 @@
1
- import { a as _inherits, b as _createSuper, c as _classCallCheck, _ as _defineProperty, k as _assertThisInitialized, d as _createClass, m as _toConsumableArray, g as _objectSpread2, n as _createForOfIteratorHelper } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { a as _inherits, b as _createSuper, c as _classCallCheck, _ as _defineProperty, k as _assertThisInitialized, d as _createClass, l as _toConsumableArray, g as _objectSpread2, m as _createForOfIteratorHelper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.object.to-string.js';
3
3
  import 'core-js/modules/es.promise.js';
4
4
  import 'core-js/modules/es.array.iterator.js';
5
5
  import 'core-js/modules/es.map.js';
6
- import 'core-js/modules/es.string.iterator.js';
7
6
  import 'core-js/modules/web.dom-collections.iterator.js';
8
7
  import 'core-js/modules/es.array.concat.js';
9
- import 'core-js/modules/es.object.keys.js';
10
8
  import 'core-js/modules/es.regexp.constructor.js';
11
9
  import 'core-js/modules/es.regexp.exec.js';
12
10
  import 'core-js/modules/es.regexp.to-string.js';
13
11
  import 'core-js/modules/es.array.filter.js';
14
- import 'core-js/modules/es.array.index-of.js';
15
12
  import HTTP from './http.js';
16
13
  import 'core-js/modules/es.weak-map.js';
17
14
  import 'core-js/modules/web.dom-collections.for-each.js';
@@ -53,7 +50,7 @@ var HTTPMock = /*#__PURE__*/function (_HTTP) {
53
50
  value: function _fetch(url, params) {
54
51
  var _this2 = this;
55
52
  this.requests = [].concat(_toConsumableArray(this.requests), [{
56
- url: url,
53
+ url,
57
54
  params: _objectSpread2(_objectSpread2({}, params), {}, {
58
55
  body: typeof params.body === 'string' ? JSON.parse(params.body) : params.body
59
56
  })
@@ -1,7 +1,5 @@
1
1
  import { _ as _defineProperty, d as _createClass, c as _classCallCheck, h as _asyncToGenerator, i as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import 'core-js/modules/es.object.assign.js';
4
- import 'core-js/modules/es.array.index-of.js';
5
3
  import 'core-js/modules/es.array.slice.js';
6
4
  import 'core-js/modules/es.array.filter.js';
7
5
  import 'core-js/modules/es.object.to-string.js';
@@ -3,14 +3,12 @@ import 'core-js/modules/es.array.concat.js';
3
3
  import HTTP from '../http/http.js';
4
4
  import 'core-js/modules/es.array.iterator.js';
5
5
  import 'core-js/modules/es.object.to-string.js';
6
- import 'core-js/modules/es.string.iterator.js';
7
6
  import 'core-js/modules/es.weak-map.js';
8
7
  import 'core-js/modules/web.dom-collections.iterator.js';
9
8
  import 'core-js/modules/es.promise.js';
10
9
  import 'core-js/modules/web.dom-collections.for-each.js';
11
10
  import 'core-js/modules/es.object.entries.js';
12
11
  import 'core-js/modules/es.reflect.delete-property.js';
13
- import 'core-js/modules/es.array.index-of.js';
14
12
  import 'es6-error';
15
13
  import '../global/url.js';
16
14
  import 'core-js/modules/es.regexp.exec.js';
@@ -1,11 +1,8 @@
1
1
  import { d as _createClass, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.object.assign.js';
3
2
  import 'core-js/modules/es.array.concat.js';
4
- import 'core-js/modules/es.array.index-of.js';
5
3
  import 'core-js/modules/es.array.iterator.js';
6
4
  import 'core-js/modules/es.object.to-string.js';
7
5
  import 'core-js/modules/es.promise.js';
8
- import 'core-js/modules/es.string.iterator.js';
9
6
  import 'core-js/modules/web.dom-collections.iterator.js';
10
7
  import HubSource from './hub-source.js';
11
8
  import 'core-js/modules/es.array.slice.js';
@@ -4,12 +4,11 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
4
4
  import 'core-js/modules/es.array.iterator.js';
5
5
  import 'core-js/modules/es.object.to-string.js';
6
6
  import 'core-js/modules/es.set.js';
7
- import 'core-js/modules/es.string.iterator.js';
8
7
  import 'core-js/modules/web.dom-collections.iterator.js';
9
8
 
10
9
  var I18nContext = /*#__PURE__*/React.createContext({
11
10
  messages: getTranslations(),
12
- translate: translate
11
+ translate
13
12
  });
14
13
  var I18nContextHolder = function I18nContextHolder(_ref) {
15
14
  var children = _ref.children,
@@ -19,8 +18,8 @@ var I18nContextHolder = function I18nContextHolder(_ref) {
19
18
  }, [messages]);
20
19
  return /*#__PURE__*/React.createElement(I18nContext.Provider, {
21
20
  value: {
22
- messages: messages,
23
- translate: translate
21
+ messages,
22
+ translate
24
23
  }
25
24
  }, children);
26
25
  };
package/dist/i18n/i18n.js CHANGED
@@ -2,7 +2,6 @@ import { g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.iterator.js';
3
3
  import 'core-js/modules/es.object.to-string.js';
4
4
  import 'core-js/modules/es.set.js';
5
- import 'core-js/modules/es.string.iterator.js';
6
5
  import 'core-js/modules/web.dom-collections.iterator.js';
7
6
 
8
7
  var login = "Log in";
package/dist/icon/icon.js CHANGED
@@ -13,7 +13,6 @@ import '../global/memoize.js';
13
13
  import 'core-js/modules/es.array.iterator.js';
14
14
  import 'core-js/modules/es.map.js';
15
15
  import 'core-js/modules/es.object.to-string.js';
16
- import 'core-js/modules/es.string.iterator.js';
17
16
  import 'core-js/modules/web.dom-collections.iterator.js';
18
17
  import 'core-js/modules/es.weak-map.js';
19
18
 
@@ -44,8 +43,8 @@ var Icon = /*#__PURE__*/function (_PureComponent) {
44
43
  if (width || height) {
45
44
  this.warnSize();
46
45
  return {
47
- width: width,
48
- height: height
46
+ width,
47
+ height
49
48
  };
50
49
  }
51
50
  if (size) {
@@ -60,7 +59,6 @@ var Icon = /*#__PURE__*/function (_PureComponent) {
60
59
  }, {
61
60
  key: "render",
62
61
  value: function render() {
63
- var _classNames;
64
62
  var _this$props2 = this.props,
65
63
  className = _this$props2.className;
66
64
  _this$props2.size;
@@ -74,7 +72,10 @@ var Icon = /*#__PURE__*/function (_PureComponent) {
74
72
  if (!Glyph) {
75
73
  return null;
76
74
  }
77
- var classes = classNames(modules_29747b80.icon, (_classNames = {}, _defineProperty(_classNames, modules_29747b80[color], !!color), _defineProperty(_classNames, modules_29747b80.loading, loading), _classNames), className);
75
+ var classes = classNames(modules_29747b80.icon, {
76
+ [modules_29747b80[color]]: !!color,
77
+ [modules_29747b80.loading]: loading
78
+ }, className);
78
79
  return /*#__PURE__*/React.createElement("span", _extends({}, restProps, {
79
80
  className: classes
80
81
  }), typeof Glyph === 'string' ? /*#__PURE__*/React.createElement(IconSVG, {
@@ -1,4 +1,4 @@
1
- import { e as _objectWithoutProperties, _ as _defineProperty, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.regexp.exec.js';
3
3
  import 'core-js/modules/es.string.replace.js';
4
4
  import 'core-js/modules/es.string.starts-with.js';
@@ -10,7 +10,6 @@ import { m as modules_29747b80 } from '../_helpers/icon.js';
10
10
  import 'core-js/modules/es.array.iterator.js';
11
11
  import 'core-js/modules/es.map.js';
12
12
  import 'core-js/modules/es.object.to-string.js';
13
- import 'core-js/modules/es.string.iterator.js';
14
13
  import 'core-js/modules/web.dom-collections.iterator.js';
15
14
  import 'core-js/modules/es.weak-map.js';
16
15
 
@@ -57,7 +56,9 @@ function IconSVG(_ref) {
57
56
  var src = _ref.src,
58
57
  className = _ref.className,
59
58
  rest = _objectWithoutProperties(_ref, _excluded);
60
- var glyphClasses = classNames(modules_29747b80.glyph, _defineProperty({}, modules_29747b80.compatibilityMode, isCompatibilityMode(src)), className);
59
+ var glyphClasses = classNames(modules_29747b80.glyph, {
60
+ [modules_29747b80.compatibilityMode]: isCompatibilityMode(src)
61
+ }, className);
61
62
  var _getSVGFromSource = getSVGFromSource(src),
62
63
  props = _getSVGFromSource.props,
63
64
  html = _getSVGFromSource.html;
@@ -14,6 +14,5 @@ import '../global/memoize.js';
14
14
  import 'core-js/modules/es.array.iterator.js';
15
15
  import 'core-js/modules/es.map.js';
16
16
  import 'core-js/modules/es.object.to-string.js';
17
- import 'core-js/modules/es.string.iterator.js';
18
17
  import 'core-js/modules/web.dom-collections.iterator.js';
19
18
  import 'core-js/modules/es.weak-map.js';
@@ -1,6 +1,5 @@
1
1
  import { j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import 'core-js/modules/es.array.index-of.js';
4
3
  import 'core-js/modules/es.regexp.exec.js';
5
4
  import 'core-js/modules/es.string.replace.js';
6
5
  import angular from 'angular';
@@ -28,7 +28,6 @@ import '../global/memoize.js';
28
28
  import 'core-js/modules/es.array.iterator.js';
29
29
  import 'core-js/modules/es.map.js';
30
30
  import 'core-js/modules/es.object.to-string.js';
31
- import 'core-js/modules/es.string.iterator.js';
32
31
  import 'core-js/modules/web.dom-collections.iterator.js';
33
32
  import 'core-js/modules/es.weak-map.js';
34
33
  import 'core-js/modules/es.regexp.to-string.js';
@@ -141,8 +140,7 @@ var Input = /*#__PURE__*/function (_PureComponent) {
141
140
  }, {
142
141
  key: "render",
143
142
  value: function render() {
144
- var _classNames,
145
- _this3 = this;
143
+ var _this3 = this;
146
144
  var _this$props3 = this.props,
147
145
  size = _this$props3.size,
148
146
  active = _this$props3.active,
@@ -170,18 +168,25 @@ var Input = /*#__PURE__*/function (_PureComponent) {
170
168
  restProps = _objectWithoutProperties(_this$props3, _excluded);
171
169
  var empty = this.state.empty;
172
170
  var clearable = !!onClear;
173
- var classes = classNames(className, modules_88cfaf40.outerContainer, [modules_88cfaf40["size".concat(size)]], [modules_88cfaf40["height".concat(height)]], (_classNames = {
174
- 'ring-js-shortcuts': enableShortcuts === true
175
- }, _defineProperty(_classNames, modules_88cfaf40.active, active), _defineProperty(_classNames, modules_88cfaf40.error, error != null), _defineProperty(_classNames, modules_88cfaf40.empty, empty), _defineProperty(_classNames, modules_88cfaf40.noLabel, !this.props.label), _defineProperty(_classNames, modules_88cfaf40.withIcon, icon != null), _defineProperty(_classNames, modules_88cfaf40.clearable, clearable), _defineProperty(_classNames, modules_88cfaf40.borderless, borderless), _classNames));
171
+ var classes = classNames(className, modules_88cfaf40.outerContainer, [modules_88cfaf40["size".concat(size)]], [modules_88cfaf40["height".concat(height)]], {
172
+ 'ring-js-shortcuts': enableShortcuts === true,
173
+ [modules_88cfaf40.active]: active,
174
+ [modules_88cfaf40.error]: error != null,
175
+ [modules_88cfaf40.empty]: empty,
176
+ [modules_88cfaf40.noLabel]: !this.props.label,
177
+ [modules_88cfaf40.withIcon]: icon != null,
178
+ [modules_88cfaf40.clearable]: clearable,
179
+ [modules_88cfaf40.borderless]: borderless
180
+ });
176
181
  var inputClasses = classNames(modules_88cfaf40.input, inputClassName);
177
182
  var text = value != null ? value : children;
178
183
  var commonProps = {
179
184
  ref: composeRefs(this.inputRef, inputRef),
180
185
  className: inputClasses,
181
186
  value: text,
182
- disabled: disabled,
187
+ disabled,
183
188
  id: this.getId(),
184
- placeholder: placeholder,
189
+ placeholder,
185
190
  'aria-label': typeof label === 'string' && label ? label : placeholder,
186
191
  'data-enabled-shortcuts': Array.isArray(enableShortcuts) ? enableShortcuts.join(',') : null
187
192
  };
@@ -13,17 +13,13 @@ import 'core-js/modules/es.array.reduce.js';
13
13
  import 'core-js/modules/es.object.values.js';
14
14
  import 'core-js/modules/es.array.filter.js';
15
15
  import '../global/dom.js';
16
- import 'core-js/modules/es.object.assign.js';
17
16
  import 'core-js/modules/es.regexp.exec.js';
18
17
  import 'core-js/modules/es.string.split.js';
19
18
  import 'core-js/modules/es.object.entries.js';
20
- import 'core-js/modules/es.object.keys.js';
21
19
  import 'core-js/modules/es.array.iterator.js';
22
20
  import 'core-js/modules/es.set.js';
23
- import 'core-js/modules/es.string.iterator.js';
24
21
  import 'core-js/modules/web.dom-collections.iterator.js';
25
22
  import '../icon-ng/icon-ng.js';
26
- import 'core-js/modules/es.array.index-of.js';
27
23
  import 'core-js/modules/es.string.replace.js';
28
24
  import '../icon/icon__constants.js';
29
25
  import '../template-ng/template-ng.js';
@@ -88,8 +84,14 @@ var RingInputComponent = /*#__PURE__*/function (_RingAngularComponent) {
88
84
  }, {
89
85
  key: "getContainerClasses",
90
86
  value: function getContainerClasses() {
91
- var _classNames;
92
- return classNames(modules_88cfaf40.outerContainer, this.size ? [modules_88cfaf40["size".concat(this.size)]] : null, modules_88cfaf40.heightS, (_classNames = {}, _defineProperty(_classNames, modules_88cfaf40.active, this.active), _defineProperty(_classNames, modules_88cfaf40.error, this.error != null), _defineProperty(_classNames, modules_88cfaf40.empty, !this.value), _defineProperty(_classNames, modules_88cfaf40.noLabel, !this.label), _defineProperty(_classNames, modules_88cfaf40.clearable, this.clearable), _defineProperty(_classNames, modules_88cfaf40.borderless, this.borderless), _classNames));
87
+ return classNames(modules_88cfaf40.outerContainer, this.size ? [modules_88cfaf40["size".concat(this.size)]] : null, modules_88cfaf40.heightS, {
88
+ [modules_88cfaf40.active]: this.active,
89
+ [modules_88cfaf40.error]: this.error != null,
90
+ [modules_88cfaf40.empty]: !this.value,
91
+ [modules_88cfaf40.noLabel]: !this.label,
92
+ [modules_88cfaf40.clearable]: this.clearable,
93
+ [modules_88cfaf40.borderless]: this.borderless
94
+ });
93
95
  }
94
96
  }]);
95
97
  return RingInputComponent;
@@ -30,7 +30,7 @@ function adaptiveIslandHOC(ComposedComponent) {
30
30
  if (scrollHeight - clientHeight >= interpolateLinear(TITLE_RESIZE_THRESHOLD, TITLE_RESIZE_END, (_this$state$phase = _this.state.phase) !== null && _this$state$phase !== void 0 ? _this$state$phase : 0)) {
31
31
  var phase = Math.min(1, scrollTop / TITLE_RESIZE_END);
32
32
  _this.setState({
33
- phase: phase
33
+ phase
34
34
  });
35
35
  }
36
36
  });
@@ -56,8 +56,8 @@ var Content = /*#__PURE__*/function (_Component) {
56
56
  (_this$props$onScrollT = (_this$props = _this.props).onScrollToBottom) === null || _this$props$onScrollT === void 0 ? void 0 : _this$props$onScrollT.call(_this$props);
57
57
  }
58
58
  _this.setState({
59
- scrolledToTop: scrolledToTop,
60
- scrolledToBottom: scrolledToBottom
59
+ scrolledToTop,
60
+ scrolledToBottom
61
61
  });
62
62
  });
63
63
  });
@@ -83,7 +83,6 @@ var Content = /*#__PURE__*/function (_Component) {
83
83
  }, {
84
84
  key: "render",
85
85
  value: function render() {
86
- var _classNames;
87
86
  var _this$props2 = this.props,
88
87
  children = _this$props2.children,
89
88
  className = _this$props2.className,
@@ -96,7 +95,12 @@ var Content = /*#__PURE__*/function (_Component) {
96
95
  var _this$state = this.state,
97
96
  scrolledToTop = _this$state.scrolledToTop,
98
97
  scrolledToBottom = _this$state.scrolledToBottom;
99
- var classes = classNames(modules_e6a056e1.content, className, (_classNames = {}, _defineProperty(_classNames, modules_e6a056e1.contentWithTopFade, fade && !scrolledToTop), _defineProperty(_classNames, modules_e6a056e1.contentWithBottomFade, fade && !scrolledToBottom), _defineProperty(_classNames, modules_e6a056e1.withTransparentBottomBorder, bottomBorder), _defineProperty(_classNames, modules_e6a056e1.withBottomBorder, bottomBorder && !scrolledToBottom), _classNames));
98
+ var classes = classNames(modules_e6a056e1.content, className, {
99
+ [modules_e6a056e1.contentWithTopFade]: fade && !scrolledToTop,
100
+ [modules_e6a056e1.contentWithBottomFade]: fade && !scrolledToBottom,
101
+ [modules_e6a056e1.withTransparentBottomBorder]: bottomBorder,
102
+ [modules_e6a056e1.withBottomBorder]: bottomBorder && !scrolledToBottom
103
+ });
100
104
  var scrollableWrapperClasses = classNames(modules_e6a056e1.scrollableWrapper, scrollableWrapperClassName);
101
105
  return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
102
106
  "data-test": "ring-island-content",
@@ -134,7 +138,7 @@ _defineProperty(Content, "defaultProps", {
134
138
  var ContentWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
135
139
  return /*#__PURE__*/React.createElement(ScrollHandlerContext.Consumer, null, function (onScroll) {
136
140
  var addProps = onScroll != null ? {
137
- onScroll: onScroll,
141
+ onScroll,
138
142
  bottomBorder: true
139
143
  } : {};
140
144
  return /*#__PURE__*/React.createElement(Content, _extends({}, props, addProps, {
@@ -51,7 +51,9 @@ var Header = /*#__PURE__*/function (_Component) {
51
51
  border = _this$props.border,
52
52
  phase = _this$props.phase,
53
53
  restProps = _objectWithoutProperties(_this$props, _excluded);
54
- var classes = classNames(modules_e6a056e1.header, className, _defineProperty({}, modules_e6a056e1.withBottomBorder, border || phase != null && phase >= BORDER_APPEAR_PHASE));
54
+ var classes = classNames(modules_e6a056e1.header, className, {
55
+ [modules_e6a056e1.withBottomBorder]: border || phase != null && phase >= BORDER_APPEAR_PHASE
56
+ });
55
57
  var headerStyle = phase != null ? {
56
58
  lineHeight: "".concat(this.style('LINE_HEIGHT'), "px"),
57
59
  paddingTop: this.style('PADDING_TOP'),
@@ -88,7 +90,7 @@ _defineProperty(Header, "defaultProps", {
88
90
  var HeaderWrapper = function HeaderWrapper(props) {
89
91
  return /*#__PURE__*/React.createElement(PhaseContext.Consumer, null, function (phase) {
90
92
  var addProps = phase != null ? {
91
- phase: phase
93
+ phase
92
94
  } : {};
93
95
  return /*#__PURE__*/React.createElement(Header, _extends({}, props, addProps));
94
96
  });
@@ -29,7 +29,6 @@ var Island = /*#__PURE__*/function (_Component) {
29
29
  _createClass(Island, [{
30
30
  key: "render",
31
31
  value: function render() {
32
- var _classNames;
33
32
  var _this$props = this.props,
34
33
  children = _this$props.children,
35
34
  className = _this$props.className,
@@ -37,7 +36,10 @@ var Island = /*#__PURE__*/function (_Component) {
37
36
  withoutPaddings = _this$props.withoutPaddings,
38
37
  dataTest = _this$props['data-test'],
39
38
  restProps = _objectWithoutProperties(_this$props, _excluded);
40
- var classes = classNames(modules_e6a056e1.island, className, (_classNames = {}, _defineProperty(_classNames, modules_e6a056e1.narrowIsland, narrow), _defineProperty(_classNames, modules_e6a056e1.withoutPaddings, withoutPaddings), _classNames));
39
+ var classes = classNames(modules_e6a056e1.island, className, {
40
+ [modules_e6a056e1.narrowIsland]: narrow,
41
+ [modules_e6a056e1.withoutPaddings]: withoutPaddings
42
+ });
41
43
  return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
42
44
  className: classes,
43
45
  "data-test": joinDataTestAttributes('ring-island', dataTest)
@@ -16,7 +16,7 @@ angularModule.directive('rgIslandContent', function islandContentDirective() {
16
16
  fade: '=?',
17
17
  onScroll: '&?'
18
18
  },
19
- compile: compile,
19
+ compile,
20
20
  template: "\n<div\n data-test=\"ring-island-content\"\n class=".concat(modules_e6a056e1.content, "\n ng-class=\"{\n '").concat(modules_e6a056e1.contentWithTopFade, "': contentCtrl.fade,\n '").concat(modules_e6a056e1.contentWithBottomFade, "': contentCtrl.fade\n }\"\n>\n <div\n tabindex=\"0\"\n class=\"").concat(modules_e6a056e1.scrollableWrapper, " js-scrollable-wrapper\"\n ng-transclude\n ></div>\n</div>\n"),
21
21
  controllerAs: 'contentCtrl',
22
22
  controller: ["$scope", "$element", function controller($scope, $element) {
@@ -28,7 +28,7 @@ angularModule.directive('rgIslandContent', function islandContentDirective() {
28
28
  var $scrollTop = scrollable.scrollTop;
29
29
  _this.onScroll({
30
30
  $event: evt,
31
- $scrollTop: $scrollTop
31
+ $scrollTop
32
32
  });
33
33
  $scope.$apply();
34
34
  };
@@ -13,7 +13,7 @@ angularModule.directive('rgIslandHeader', function islandHeaderDirective() {
13
13
  bindToController: {
14
14
  border: '=?'
15
15
  },
16
- compile: compile,
16
+ compile,
17
17
  template: "\n<div\n data-test=\"ring-island-header\"\n class=\"".concat(modules_e6a056e1.header, "\"\n ng-class=\"{'").concat(modules_e6a056e1.withBottomBorder, "': headerCtrl.border}\" \n ng-transclude\n></div>\n"),
18
18
  controllerAs: 'headerCtrl',
19
19
  controller: function controller() {
@@ -16,7 +16,7 @@ angularModule.directive('rgIsland', function islandDirective() {
16
16
  bindToController: {
17
17
  narrow: '='
18
18
  },
19
- compile: compile,
19
+ compile,
20
20
  template: "\n<div\n data-test=\"ring-island\"\n class=\"".concat(modules_e6a056e1.island, "\"\n ng-class=\"{'").concat(modules_e6a056e1.narrowIsland, "': islandCtrl.narrow}\"\n ng-transclude\n></div>\n"),
21
21
  controllerAs: 'islandCtrl',
22
22
  controller: angular.noop
package/dist/link/link.js CHANGED
@@ -9,7 +9,6 @@ import { m as modules_607b0772 } from '../_helpers/link.js';
9
9
  import 'core-js/modules/es.array.iterator.js';
10
10
  import 'core-js/modules/es.map.js';
11
11
  import 'core-js/modules/es.object.to-string.js';
12
- import 'core-js/modules/es.string.iterator.js';
13
12
  import 'core-js/modules/web.dom-collections.iterator.js';
14
13
  import 'core-js/modules/es.weak-map.js';
15
14
  import 'core-js/modules/es.array.reduce.js';
@@ -61,7 +60,6 @@ function linkHOC(ComposedComponent) {
61
60
  }, {
62
61
  key: "render",
63
62
  value: function render() {
64
- var _classNames;
65
63
  var _this$props2 = this.props,
66
64
  active = _this$props2.active,
67
65
  inherit = _this$props2.inherit,
@@ -76,7 +74,14 @@ function linkHOC(ComposedComponent) {
76
74
  onClick = _this$props2.onClick,
77
75
  restProps = _objectWithoutProperties(_this$props2, _excluded);
78
76
  var useButton = pseudo || !isCustom && href == null;
79
- var classes = classNames(modules_607b0772.link, className, (_classNames = {}, _defineProperty(_classNames, modules_607b0772.active, active), _defineProperty(_classNames, modules_607b0772.inherit, inherit), _defineProperty(_classNames, modules_607b0772.hover, hover), _defineProperty(_classNames, modules_607b0772.compatibilityUnderlineMode, isCompatibilityMode), _defineProperty(_classNames, modules_607b0772.pseudo, useButton), _defineProperty(_classNames, modules_607b0772.text, typeof children !== 'function'), _classNames));
77
+ var classes = classNames(modules_607b0772.link, className, {
78
+ [modules_607b0772.active]: active,
79
+ [modules_607b0772.inherit]: inherit,
80
+ [modules_607b0772.hover]: hover,
81
+ [modules_607b0772.compatibilityUnderlineMode]: isCompatibilityMode,
82
+ [modules_607b0772.pseudo]: useButton,
83
+ [modules_607b0772.text]: typeof children !== 'function'
84
+ });
80
85
  var props = restProps;
81
86
  if (isCustom && !props.activeClassName) {
82
87
  props = _objectSpread2(_objectSpread2({}, props), {}, {
package/dist/list/list.js CHANGED
@@ -6,10 +6,6 @@ import 'core-js/modules/es.array.concat.js';
6
6
  import 'core-js/modules/es.symbol.js';
7
7
  import 'core-js/modules/es.symbol.description.js';
8
8
  import 'core-js/modules/es.object.to-string.js';
9
- import 'core-js/modules/es.array.find-index.js';
10
- import 'core-js/modules/es.object.assign.js';
11
- import 'core-js/modules/es.object.keys.js';
12
- import 'core-js/modules/es.array.find.js';
13
9
  import React, { cloneElement, Component } from 'react';
14
10
  import PropTypes from 'prop-types';
15
11
  import classNames from 'classnames';
@@ -39,7 +35,6 @@ import 'core-js/modules/es.object.entries.js';
39
35
  import 'core-js/modules/es.regexp.to-string.js';
40
36
  import 'core-js/modules/es.array.iterator.js';
41
37
  import 'core-js/modules/es.map.js';
42
- import 'core-js/modules/es.string.iterator.js';
43
38
  import 'core-js/modules/web.dom-collections.iterator.js';
44
39
  import 'core-js/modules/es.weak-map.js';
45
40
  import 'core-js/modules/web.dom-collections.for-each.js';
@@ -57,13 +52,10 @@ import 'sniffr';
57
52
  import '../link/link.js';
58
53
  import '../link/clickableLink.js';
59
54
  import '../_helpers/link.js';
60
- import 'core-js/modules/es.number.constructor.js';
61
- import 'core-js/modules/es.array.index-of.js';
62
55
  import '../avatar/avatar.js';
63
56
  import '../global/url.js';
64
57
  import 'core-js/modules/es.string.replace.js';
65
58
  import '../avatar/fallback-avatar.js';
66
- import 'core-js/modules/es.array.from.js';
67
59
  import '../checkbox/checkbox.js';
68
60
  import '@jetbrains/icons/checkmark-14px';
69
61
  import '@jetbrains/icons/remove-14px';
@@ -211,7 +203,7 @@ var List = /*#__PURE__*/function (_Component) {
211
203
  }
212
204
  if (_this.props.onSelect) {
213
205
  _this.props.onSelect(item, event, {
214
- tryKeepOpen: tryKeepOpen
206
+ tryKeepOpen
215
207
  });
216
208
  }
217
209
  };
@@ -323,7 +315,7 @@ var List = /*#__PURE__*/function (_Component) {
323
315
  var scrolledToBottom = maxScrollingPosition > 0 && currentScrollingPosition >= maxScrollingPosition;
324
316
  if (!_this.unmounted) {
325
317
  _this.setState({
326
- scrolledToBottom: scrolledToBottom
318
+ scrolledToBottom
327
319
  });
328
320
  }
329
321
  if (scrolledToBottom) {
@@ -613,7 +605,7 @@ var List = /*#__PURE__*/function (_Component) {
613
605
  className: "ring-list__i",
614
606
  autoHeight: autoHeight,
615
607
  style: maxHeight ? _objectSpread2({
616
- maxHeight: maxHeight,
608
+ maxHeight,
617
609
  height: 'auto'
618
610
  }, dirOverride) : dirOverride,
619
611
  autoContainerWidth: true,
@@ -647,13 +639,13 @@ var List = /*#__PURE__*/function (_Component) {
647
639
  if (maxHeight) {
648
640
  return this.renderVirtualizedInner({
649
641
  height: maxHeight,
650
- maxHeight: maxHeight,
651
- rowCount: rowCount
642
+ maxHeight,
643
+ rowCount
652
644
  });
653
645
  }
654
646
  return /*#__PURE__*/React.createElement(WindowScroller, null, function (props) {
655
647
  return _this4.renderVirtualizedInner(_objectSpread2(_objectSpread2({}, props), {}, {
656
- rowCount: rowCount,
648
+ rowCount,
657
649
  autoHeight: true
658
650
  }));
659
651
  });
@@ -664,7 +656,7 @@ var List = /*#__PURE__*/function (_Component) {
664
656
  var items = [];
665
657
  for (var index = 0; index < rowCount; index++) {
666
658
  items.push(this.renderItem({
667
- index: index,
659
+ index,
668
660
  isScrolling: this.state.scrolling
669
661
  }));
670
662
  }
@@ -733,7 +725,7 @@ var List = /*#__PURE__*/function (_Component) {
733
725
  }
734
726
  if (activeIndex != null && activeIndex !== prevActiveIndex && data[activeIndex] != null) {
735
727
  Object.assign(nextState, {
736
- activeIndex: activeIndex,
728
+ activeIndex,
737
729
  activeItem: data[activeIndex],
738
730
  needScrollToActive: true
739
731
  });
@@ -798,8 +790,8 @@ _defineProperty(List, "defaultProps", {
798
790
  _defineProperty(List, "isItemType", isItemType);
799
791
  _defineProperty(List, "ListHint", ListHint);
800
792
  _defineProperty(List, "ListProps", {
801
- Type: Type,
802
- Dimension: Dimension
793
+ Type,
794
+ Dimension
803
795
  });
804
796
 
805
797
  export { ActiveItemContext, List as default };
@@ -32,7 +32,6 @@ var ListCustom = /*#__PURE__*/function (_PureComponent) {
32
32
  _createClass(ListCustom, [{
33
33
  key: "render",
34
34
  value: function render() {
35
- var _classNames;
36
35
  var _this$props = this.props,
37
36
  scrolling = _this$props.scrolling,
38
37
  hover = _this$props.hover,
@@ -48,7 +47,11 @@ var ListCustom = /*#__PURE__*/function (_PureComponent) {
48
47
  role = _this$props.role,
49
48
  tagName = _this$props.tagName,
50
49
  restProps = _objectWithoutProperties(_this$props, _excluded);
51
- var classes = classNames(modules_3b67a421.item, className, (_classNames = {}, _defineProperty(_classNames, modules_3b67a421.action, !disabled), _defineProperty(_classNames, modules_3b67a421.hover, hover && !disabled), _defineProperty(_classNames, modules_3b67a421.scrolling, scrolling), _classNames));
50
+ var classes = classNames(modules_3b67a421.item, className, {
51
+ [modules_3b67a421.action]: !disabled,
52
+ [modules_3b67a421.hover]: hover && !disabled,
53
+ [modules_3b67a421.scrolling]: scrolling
54
+ });
52
55
  var dataTest = joinDataTestAttributes('ring-list-item-custom', {
53
56
  'ring-list-item-action': !disabled
54
57
  }, restProps['data-test']);
@@ -2,8 +2,6 @@ import { a as _inherits, b as _createSuper, c as _classCallCheck, _ as _definePr
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.symbol.js';
4
4
  import 'core-js/modules/es.symbol.description.js';
5
- import 'core-js/modules/es.number.constructor.js';
6
- import 'core-js/modules/es.array.index-of.js';
7
5
  import React, { PureComponent } from 'react';
8
6
  import PropTypes from 'prop-types';
9
7
  import classNames from 'classnames';
@@ -21,18 +19,14 @@ import 'core-js/modules/es.regexp.exec.js';
21
19
  import 'core-js/modules/es.string.match.js';
22
20
  import 'core-js/modules/es.string.replace.js';
23
21
  import '../global/dom.js';
24
- import 'core-js/modules/es.object.assign.js';
25
22
  import 'core-js/modules/web.dom-collections.for-each.js';
26
23
  import 'core-js/modules/es.array.filter.js';
27
24
  import 'core-js/modules/es.string.split.js';
28
- import 'core-js/modules/es.object.keys.js';
29
25
  import 'core-js/modules/es.array.iterator.js';
30
26
  import 'core-js/modules/es.set.js';
31
- import 'core-js/modules/es.string.iterator.js';
32
27
  import 'core-js/modules/web.dom-collections.iterator.js';
33
28
  import '../avatar/fallback-avatar.js';
34
29
  import 'core-js/modules/es.array.map.js';
35
- import 'core-js/modules/es.array.from.js';
36
30
  import 'core-js/modules/es.array.slice.js';
37
31
  import 'core-js/modules/es.regexp.to-string.js';
38
32
  import '@jetbrains/icons/checkmark-14px';
@@ -81,7 +75,6 @@ var ListItem = /*#__PURE__*/function (_PureComponent) {
81
75
  _createClass(ListItem, [{
82
76
  key: "render",
83
77
  value: function render() {
84
- var _classNames, _classNames2;
85
78
  var _this$props = this.props,
86
79
  scrolling = _this$props.scrolling,
87
80
  className = _this$props.className,
@@ -116,8 +109,17 @@ var ListItem = /*#__PURE__*/function (_PureComponent) {
116
109
  var shouldShowGeneratedAvatar = showGeneratedAvatar && username != null;
117
110
  var hasLeftNodes = leftNodes || glyph || avatar || shouldShowGeneratedAvatar;
118
111
  var showCheckbox = checkable && (checkbox || !hasLeftNodes || hover && !disabled);
119
- var classes = classNames(modules_3b67a421.item, modules_5b0fb3e8.resetButton, className, (_classNames = {}, _defineProperty(_classNames, modules_3b67a421.action, !disabled), _defineProperty(_classNames, modules_3b67a421.hover, hover && !disabled), _defineProperty(_classNames, modules_3b67a421.compact, compact), _defineProperty(_classNames, modules_3b67a421.scrolling, scrolling), _defineProperty(_classNames, modules_3b67a421.disabled, disabled), _classNames));
120
- var detailsClasses = classNames((_classNames2 = {}, _defineProperty(_classNames2, modules_3b67a421.details, details), _defineProperty(_classNames2, modules_3b67a421.padded, icon !== undefined || checkbox !== undefined || glyph !== undefined), _classNames2));
112
+ var classes = classNames(modules_3b67a421.item, modules_5b0fb3e8.resetButton, className, {
113
+ [modules_3b67a421.action]: !disabled,
114
+ [modules_3b67a421.hover]: hover && !disabled,
115
+ [modules_3b67a421.compact]: compact,
116
+ [modules_3b67a421.scrolling]: scrolling,
117
+ [modules_3b67a421.disabled]: disabled
118
+ });
119
+ var detailsClasses = classNames({
120
+ [modules_3b67a421.details]: details,
121
+ [modules_3b67a421.padded]: icon !== undefined || checkbox !== undefined || glyph !== undefined
122
+ });
121
123
  var style = {
122
124
  paddingLeft: "".concat((Number(level) || 0) * RING_UNIT + DEFAULT_PADDING + (showCheckbox ? CHECKBOX_WIDTH : 0), "px")
123
125
  };