@jetbrains/ring-ui-built 7.0.0-beta.9 → 7.0.0

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 (202) hide show
  1. package/components/_helpers/anchor.js +4 -4
  2. package/components/_helpers/button__classes.js +13 -13
  3. package/components/_helpers/caption.js +3 -3
  4. package/components/_helpers/card.js +23 -20
  5. package/components/_helpers/date-picker.js +2 -2
  6. package/components/_helpers/dialog__body-scroll-preventer.js +4 -4
  7. package/components/_helpers/grid.js +2 -2
  8. package/components/_helpers/header.js +2 -2
  9. package/components/_helpers/heading.js +2 -2
  10. package/components/_helpers/icon__svg.js +6 -6
  11. package/components/_helpers/input.js +14 -14
  12. package/components/_helpers/island.js +2 -2
  13. package/components/_helpers/link.js +2 -2
  14. package/components/_helpers/list.js +2 -2
  15. package/components/_helpers/query-assist__suggestions.js +7 -7
  16. package/components/_helpers/select__filter.js +3 -3
  17. package/components/_helpers/services-link.js +3 -3
  18. package/components/_helpers/sidebar.js +9 -9
  19. package/components/_helpers/tab-link.js +7 -7
  20. package/components/_helpers/table.js +2 -2
  21. package/components/_helpers/theme.js +10 -10
  22. package/components/_helpers/title.js +7 -7
  23. package/components/alert/alert.d.ts +2 -2
  24. package/components/alert/alert.js +12 -13
  25. package/components/alert/container.js +4 -4
  26. package/components/alert-service/alert-service.js +0 -1
  27. package/components/auth/auth.js +0 -1
  28. package/components/auth/auth__core.js +1 -2
  29. package/components/auth/background-flow.js +2 -2
  30. package/components/auth/down-notification.js +5 -6
  31. package/components/auth/iframe-flow.js +0 -1
  32. package/components/auth/storage.js +0 -1
  33. package/components/auth/token-validator.js +1 -1
  34. package/components/auth-dialog/auth-dialog.js +10 -11
  35. package/components/auth-dialog-service/auth-dialog-service.js +2 -3
  36. package/components/avatar/avatar.js +6 -6
  37. package/components/breadcrumbs/breadcrumbs.js +2 -2
  38. package/components/button/button.js +4 -4
  39. package/components/button/button__classes.d.ts +1 -1
  40. package/components/button-group/button-group.js +3 -4
  41. package/components/button-set/button-set.js +2 -3
  42. package/components/button-toolbar/button-toolbar.d.ts +1 -1
  43. package/components/button-toolbar/button-toolbar.js +2 -3
  44. package/components/checkbox/checkbox.js +8 -8
  45. package/components/clipboard/clipboard.js +0 -1
  46. package/components/code/code.d.ts +1 -1
  47. package/components/code/code.js +7 -7
  48. package/components/collapse/collapse-content.d.ts +1 -2
  49. package/components/collapse/collapse-content.js +25 -11
  50. package/components/collapse/collapse-control.js +0 -1
  51. package/components/confirm/confirm.d.ts +2 -2
  52. package/components/confirm/confirm.js +3 -4
  53. package/components/confirm-service/confirm-service.d.ts +1 -1
  54. package/components/confirm-service/confirm-service.js +1 -2
  55. package/components/content-layout/content-layout.js +4 -4
  56. package/components/contenteditable/contenteditable.d.ts +1 -1
  57. package/components/control-help/control-help.js +2 -2
  58. package/components/control-label/control-label.js +5 -5
  59. package/components/data-list/data-list.d.ts +2 -2
  60. package/components/data-list/data-list.js +6 -7
  61. package/components/data-list/data-list.mock.js +16 -10
  62. package/components/data-list/item.js +8 -9
  63. package/components/date-picker/date-input.js +2 -2
  64. package/components/date-picker/date-picker.d.ts +2 -1
  65. package/components/date-picker/date-picker.js +12 -12
  66. package/components/date-picker/date-popup.js +4 -5
  67. package/components/date-picker/day.js +15 -15
  68. package/components/date-picker/month-names.js +5 -5
  69. package/components/date-picker/month-slider.js +3 -3
  70. package/components/date-picker/month.js +3 -3
  71. package/components/date-picker/months.js +3 -3
  72. package/components/date-picker/weekdays.js +4 -4
  73. package/components/date-picker/years.js +5 -5
  74. package/components/dialog/dialog.d.ts +1 -0
  75. package/components/dialog/dialog.js +22 -18
  76. package/components/dropdown/dropdown.d.ts +2 -2
  77. package/components/dropdown/dropdown.js +2 -3
  78. package/components/dropdown-menu/dropdown-menu.js +0 -1
  79. package/components/editable-heading/editable-heading.js +19 -19
  80. package/components/error-bubble/error-bubble.js +5 -5
  81. package/components/error-message/error-message.js +6 -7
  82. package/components/footer/footer.js +9 -10
  83. package/components/form/form.js +2 -3
  84. package/components/global/compose.js +0 -2
  85. package/components/global/data-tests.js +0 -1
  86. package/components/global/theme.js +1 -2
  87. package/components/grid/col.js +5 -4
  88. package/components/grid/grid.js +5 -4
  89. package/components/grid/row.js +5 -5
  90. package/components/group/group.js +5 -3
  91. package/components/header/header-icon.js +4 -4
  92. package/components/header/header.js +3 -4
  93. package/components/header/links.js +2 -2
  94. package/components/header/logo.js +2 -2
  95. package/components/header/profile.d.ts +2 -2
  96. package/components/header/profile.js +10 -11
  97. package/components/header/services-link.js +0 -1
  98. package/components/header/services.js +7 -8
  99. package/components/header/smart-profile.js +0 -1
  100. package/components/header/smart-services.js +0 -1
  101. package/components/header/tray.js +3 -3
  102. package/components/heading/heading.js +3 -3
  103. package/components/http/http.d.ts +3 -3
  104. package/components/icon/icon.js +8 -6
  105. package/components/input/input-legacy.js +2 -3
  106. package/components/input-size/input-size.js +2 -3
  107. package/components/island/content.js +7 -7
  108. package/components/island/header.js +4 -4
  109. package/components/island/island.js +4 -5
  110. package/components/link/link.js +7 -8
  111. package/components/list/list.d.ts +1 -1
  112. package/components/list/list.js +5 -6
  113. package/components/list/list__custom.js +5 -6
  114. package/components/list/list__hint.js +2 -2
  115. package/components/list/list__item.js +22 -23
  116. package/components/list/list__link.js +5 -6
  117. package/components/list/list__separator.js +3 -3
  118. package/components/list/list__title.js +5 -5
  119. package/components/list/list__users-groups-source.js +0 -1
  120. package/components/loader/loader.js +0 -1
  121. package/components/loader/loader__core.js +5 -5
  122. package/components/loader-inline/loader-inline.js +3 -4
  123. package/components/loader-screen/loader-screen.js +4 -5
  124. package/components/login-dialog/login-dialog.js +6 -7
  125. package/components/login-dialog/service.js +1 -2
  126. package/components/markdown/markdown.d.ts +2 -2
  127. package/components/markdown/markdown.js +6 -6
  128. package/components/message/message.js +9 -10
  129. package/components/old-browsers-message/old-browsers-message.js +0 -1
  130. package/components/old-browsers-message/old-browsers-message__stop.js +0 -1
  131. package/components/old-browsers-message/white-list.js +2 -3
  132. package/components/pager/pager.js +9 -10
  133. package/components/panel/panel.js +2 -2
  134. package/components/permissions/permissions.js +0 -1
  135. package/components/permissions/permissions__cache.js +2 -3
  136. package/components/popup/popup.js +6 -7
  137. package/components/popup/position.js +2 -2
  138. package/components/popup-menu/popup-menu.js +0 -1
  139. package/components/progress-bar/progress-bar.d.ts +2 -2
  140. package/components/progress-bar/progress-bar.js +5 -5
  141. package/components/query-assist/query-assist.js +27 -28
  142. package/components/query-assist/query-assist__suggestions.js +0 -1
  143. package/components/radio/radio__item.js +5 -5
  144. package/components/scrollable-section/scrollable-section.js +6 -6
  145. package/components/select/select.d.ts +1 -1
  146. package/components/select/select.js +25 -25
  147. package/components/select/select__filter.js +0 -1
  148. package/components/select/select__popup.js +11 -12
  149. package/components/shortcuts/core.js +1 -1
  150. package/components/slider/slider.js +20 -20
  151. package/components/storage/storage.js +0 -1
  152. package/components/storage/storage__local.js +0 -1
  153. package/components/style.css +1 -1
  154. package/components/tab-trap/tab-trap.js +2 -2
  155. package/components/table/cell.js +2 -3
  156. package/components/table/header-cell.js +8 -9
  157. package/components/table/header.d.ts +1 -2
  158. package/components/table/header.js +7 -14
  159. package/components/table/row-with-focus-sensor.js +0 -1
  160. package/components/table/row.d.ts +0 -1
  161. package/components/table/row.js +11 -18
  162. package/components/table/selection.d.ts +2 -3
  163. package/components/table/simple-table.js +2 -3
  164. package/components/table/smart-table.js +0 -1
  165. package/components/table/table.d.ts +0 -1
  166. package/components/table/table.js +17 -20
  167. package/components/tabs/collapsible-more.d.ts +1 -1
  168. package/components/tabs/collapsible-more.js +6 -7
  169. package/components/tabs/collapsible-tab.js +4 -5
  170. package/components/tabs/collapsible-tabs.d.ts +2 -2
  171. package/components/tabs/collapsible-tabs.js +5 -6
  172. package/components/tabs/dumb-tabs.js +5 -6
  173. package/components/tabs/smart-tabs.js +0 -1
  174. package/components/tabs/tab-link.js +0 -1
  175. package/components/tabs/tab.js +0 -1
  176. package/components/tabs/tabs.js +0 -1
  177. package/components/tag/tag.d.ts +1 -1
  178. package/components/tag/tag.js +14 -15
  179. package/components/tags-input/tags-input.js +8 -9
  180. package/components/tags-list/tags-list.d.ts +2 -2
  181. package/components/tags-list/tags-list.js +2 -2
  182. package/components/text/text.js +7 -7
  183. package/components/toggle/toggle.d.ts +2 -2
  184. package/components/toggle/toggle.js +12 -13
  185. package/components/tooltip/tooltip.js +12 -6
  186. package/components/user-agreement/service.js +1 -2
  187. package/components/user-agreement/user-agreement.js +7 -8
  188. package/components/user-card/card.js +3 -2
  189. package/components/user-card/smart-user-card-tooltip.js +5 -4
  190. package/components/user-card/tooltip.js +5 -4
  191. package/components/user-card/user-card.js +3 -2
  192. package/package.json +6 -5
  193. package/typings.d.ts +2 -4
  194. package/components/_helpers/badge.js +0 -3
  195. package/components/badge/badge.d.ts +0 -14
  196. package/components/badge/badge.js +0 -47
  197. package/components/island-legacy/content-legacy.d.ts +0 -5
  198. package/components/island-legacy/content-legacy.js +0 -23
  199. package/components/island-legacy/header-legacy.d.ts +0 -5
  200. package/components/island-legacy/header-legacy.js +0 -26
  201. package/components/island-legacy/island-legacy.d.ts +0 -7
  202. package/components/island-legacy/island-legacy.js +0 -25
@@ -1,2 +1,2 @@
1
1
  import { ButtonProps } from './button';
2
- export declare function getButtonClasses({ className, active, disabled, loader, primary, short, inline, danger, delayed, icon, height, children }: ButtonProps): string;
2
+ export declare function getButtonClasses({ className, active, disabled, loader, primary, short, inline, danger, delayed, icon, height, children, }: ButtonProps): string;
@@ -5,10 +5,9 @@ import classNames from 'classnames';
5
5
  import joinDataTestAttributes from '../global/data-tests.js';
6
6
  import { ControlLabel } from '../control-label/control-label.js';
7
7
  import ControlHelp from '../control-help/control-help.js';
8
- import { m as modules_1068e447 } from '../_helpers/caption.js';
8
+ import { s as styles } from '../_helpers/caption.js';
9
9
  export { C as Caption } from '../_helpers/caption.js';
10
10
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
11
- import 'core-js/modules/es.array.reduce.js';
12
11
  import 'core-js/modules/web.dom-collections.iterator.js';
13
12
 
14
13
  const _excluded = ["className", "split", "data-test", "label", "help"];
@@ -23,7 +22,7 @@ class ButtonGroup extends PureComponent {
23
22
  help
24
23
  } = _this$props,
25
24
  restProps = _objectWithoutProperties(_this$props, _excluded);
26
- const classes = classNames(split ? modules_1068e447.split : modules_1068e447.buttonGroup, className);
25
+ const classes = classNames(split ? styles.split : styles.buttonGroup, className);
27
26
  return /*#__PURE__*/jsxs(Fragment, {
28
27
  children: [label && /*#__PURE__*/jsx(ControlLabel, {
29
28
  children: label
@@ -31,7 +30,7 @@ class ButtonGroup extends PureComponent {
31
30
  "data-test": joinDataTestAttributes('ring-button-group', dataTest),
32
31
  className: classes
33
32
  })), help && /*#__PURE__*/jsx(ControlHelp, {
34
- className: modules_1068e447.help,
33
+ className: styles.help,
35
34
  children: help
36
35
  })]
37
36
  });
@@ -3,10 +3,9 @@ import { PureComponent } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import joinDataTestAttributes from '../global/data-tests.js';
5
5
  import { jsx } from 'react/jsx-runtime';
6
- import 'core-js/modules/es.array.reduce.js';
7
6
  import 'core-js/modules/web.dom-collections.iterator.js';
8
7
 
9
- var modules_fd849143 = {"button":"button_rui_6ad6","light":"light_rui_2ac4","buttonSet":"buttonSet_rui_97ff"};
8
+ var styles = {"button":"button_rui_6ad6","buttonSet":"buttonSet_rui_97ff"};
10
9
 
11
10
  const _excluded = ["className", "data-test", "children"];
12
11
  class ButtonSet extends PureComponent {
@@ -18,7 +17,7 @@ class ButtonSet extends PureComponent {
18
17
  children
19
18
  } = _this$props,
20
19
  restProps = _objectWithoutProperties(_this$props, _excluded);
21
- const classes = classNames(modules_fd849143.buttonSet, className);
20
+ const classes = classNames(styles.buttonSet, className);
22
21
  return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
23
22
  "data-test": joinDataTestAttributes('ring-button-set', dataTest),
24
23
  className: classes,
@@ -4,7 +4,7 @@ export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
4
4
  }
5
5
  /**
6
6
  * @name Button Toolbar
7
- */
7
+ */
8
8
  export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
9
9
  render(): import("react").JSX.Element;
10
10
  }
@@ -3,10 +3,9 @@ import { PureComponent } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import joinDataTestAttributes from '../global/data-tests.js';
5
5
  import { jsx } from 'react/jsx-runtime';
6
- import 'core-js/modules/es.array.reduce.js';
7
6
  import 'core-js/modules/web.dom-collections.iterator.js';
8
7
 
9
- var modules_34154ec0 = {"button":"button_rui_6ad6","light":"light_rui_2ac4","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
8
+ var styles = {"button":"button_rui_6ad6","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
10
9
 
11
10
  const _excluded = ["className", "data-test"];
12
11
  class ButtonToolbar extends PureComponent {
@@ -17,7 +16,7 @@ class ButtonToolbar extends PureComponent {
17
16
  'data-test': dataTest
18
17
  } = _this$props,
19
18
  restProps = _objectWithoutProperties(_this$props, _excluded);
20
- const classes = classNames(modules_34154ec0.buttonToolbar, className);
19
+ const classes = classNames(styles.buttonToolbar, className);
21
20
  return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
22
21
  "data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
23
22
  className: classes
@@ -16,7 +16,7 @@ import 'core-js/modules/es.string.replace.js';
16
16
  import '../global/memoize.js';
17
17
  import 'memoize-one';
18
18
 
19
- var modules_3199090e = {"checkboxSize":"14px","light":"light_rui_2ac4","checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","cellWrapper":"cellWrapper_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
19
+ var styles = {"checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","cellWrapper":"cellWrapper_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
20
20
 
21
21
  const _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef", "help"];
22
22
  class Checkbox extends PureComponent {
@@ -59,10 +59,10 @@ class Checkbox extends PureComponent {
59
59
  help
60
60
  } = _this$props,
61
61
  restProps = _objectWithoutProperties(_this$props, _excluded);
62
- const classes = classNames(modules_3199090e.input, className);
63
- const containerClasses = classNames(modules_3199090e.checkbox, containerClassName);
64
- const cellClasses = classNames(modules_3199090e.cell, cellClassName);
65
- const labelClasses = classNames(modules_3199090e.label, labelClassName);
62
+ const classes = classNames(styles.input, className);
63
+ const containerClasses = classNames(styles.checkbox, containerClassName);
64
+ const cellClasses = classNames(styles.cell, cellClassName);
65
+ const labelClasses = classNames(styles.label, labelClassName);
66
66
  return /*#__PURE__*/jsxs("label", {
67
67
  className: containerClasses,
68
68
  style: containerStyle,
@@ -73,15 +73,15 @@ class Checkbox extends PureComponent {
73
73
  type: "checkbox",
74
74
  className: classes
75
75
  })), /*#__PURE__*/jsx("div", {
76
- className: modules_3199090e.cellWrapper,
76
+ className: styles.cellWrapper,
77
77
  children: /*#__PURE__*/jsxs("span", {
78
78
  className: cellClasses,
79
79
  children: [/*#__PURE__*/jsx(Icon, {
80
80
  glyph: checkmarkIcon,
81
- className: modules_3199090e.check
81
+ className: styles.check
82
82
  }), /*#__PURE__*/jsx(Icon, {
83
83
  glyph: minusIcon,
84
- className: modules_3199090e.minus
84
+ className: styles.minus
85
85
  })]
86
86
  })
87
87
  }), /*#__PURE__*/jsxs("span", {
@@ -21,7 +21,6 @@ import '../global/memoize.js';
21
21
  import 'react/jsx-runtime';
22
22
  import '../loader-inline/loader-inline.js';
23
23
  import '../global/data-tests.js';
24
- import 'core-js/modules/es.array.reduce.js';
25
24
  import '../global/dom.js';
26
25
  import '../button/button.js';
27
26
  import '@jetbrains/icons/chevron-down';
@@ -5,7 +5,7 @@ export interface CodeProps {
5
5
  code: string;
6
6
  inline: boolean;
7
7
  softWrap: boolean;
8
- replacer: ((element: HTMLElement | null) => void);
8
+ replacer: (element: HTMLElement | null) => void;
9
9
  className?: string | null | undefined;
10
10
  language?: string | null | undefined;
11
11
  codeRef?: Ref<HTMLElement> | null | undefined;
@@ -11,13 +11,13 @@ import { jsx } from 'react/jsx-runtime';
11
11
  import 'core-js/modules/es.array.reverse.js';
12
12
  import 'core-js/modules/es.regexp.exec.js';
13
13
 
14
- var modules_66c414ea = {"light":"light_rui_2ac4","code":"code_rui_1c82","inline":"inline_rui_1c82","softWrap":"softWrap_rui_1c82"};
14
+ var styles = {"code":"code_rui_1c82","inline":"inline_rui_1c82","softWrap":"softWrap_rui_1c82"};
15
15
 
16
- var modules_39cf09e8 = {"highlightContainer":"highlightContainer_rui_1a79"};
16
+ var highlightStyles = {"highlightContainer":"highlightContainer_rui_1a79"};
17
17
 
18
18
  function noop() {}
19
19
  const registerLanguage = memoize(async language => {
20
- const languageExports = await import( /* webpackChunkName: "highlight-[request]" */"highlight.js/lib/languages/".concat(language));
20
+ const languageExports = await import(/* webpackChunkName: "highlight-[request]" */"highlight.js/lib/languages/".concat(language));
21
21
  highlight.registerLanguage(language, languageExports.default);
22
22
  });
23
23
  /**
@@ -83,9 +83,9 @@ class Code extends PureComponent {
83
83
  language
84
84
  } = this.props;
85
85
  const Tag = inline ? 'span' : 'pre';
86
- const classes = classNames(modules_66c414ea.code, className, language, {
87
- [modules_66c414ea.inline]: inline,
88
- [modules_66c414ea.softWrap]: softWrap
86
+ const classes = classNames(styles.code, className, language, {
87
+ [styles.inline]: inline,
88
+ [styles.softWrap]: softWrap
89
89
  });
90
90
  return /*#__PURE__*/jsx(Tag, {
91
91
  className: classes,
@@ -94,7 +94,7 @@ class Code extends PureComponent {
94
94
  // should be focusable because it can be scrollable
95
95
  tabIndex: inline ? -1 : 0,
96
96
  ref: this.initCodeRef,
97
- className: modules_39cf09e8.highlightContainer,
97
+ className: highlightStyles.highlightContainer,
98
98
  children: normalizeIndent(code)
99
99
  })
100
100
  });
@@ -1,5 +1,4 @@
1
- import { PropsWithChildren } from 'react';
2
- import * as React from 'react';
1
+ import React, { PropsWithChildren } from 'react';
3
2
  type Props = {
4
3
  minHeight?: number;
5
4
  className?: string;
@@ -7,11 +7,10 @@ import { toPx } from './utils.js';
7
7
  import { CollapseContext } from './collapse-context.js';
8
8
  import { COLLAPSE_CONTENT_CONTAINER_TEST_ID, COLLAPSE_CONTENT_TEST_ID } from './consts.js';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
- import 'core-js/modules/es.array.reduce.js';
11
10
  import '../_helpers/_rollupPluginBabelHelpers.js';
12
11
  import 'core-js/modules/es.regexp.exec.js';
13
12
 
14
- var modules_9c8b5b00 = {"container":"container_rui_93ce","transition":"transition_rui_93ce","summary":"summary_rui_93ce","trigger":"trigger_rui_93ce","fade":"fade_rui_93ce"};
13
+ var styles = {"container":"container_rui_93ce","transition":"transition_rui_93ce","summary":"summary_rui_93ce","trigger":"trigger_rui_93ce","fade":"fade_rui_93ce"};
15
14
 
16
15
  const DURATION_FACTOR = 0.5;
17
16
  const DEFAULT_HEIGHT = 0;
@@ -41,13 +40,27 @@ const CollapseContent = _ref => {
41
40
  height: 0
42
41
  });
43
42
  const [height, setHeight] = useState(toPx(minHeight));
44
- const [showFade, setShowFade] = useState(true);
43
+ const [showFade, setShowFade] = useState(collapsed);
44
+ const [shouldHideContent, setShouldHideContent] = useState(collapsed && minHeight <= DEFAULT_HEIGHT);
45
45
  useEffect(() => {
46
- if (!collapsed) {
47
- setShowFade(false);
48
- } else {
49
- setShowFade(true);
46
+ function onTransitionEnd() {
47
+ if (initialContentHeight.current <= DEFAULT_HEIGHT) {
48
+ setShouldHideContent(collapsed);
49
+ }
50
50
  }
51
+ const container = containerRef.current;
52
+ if (container) {
53
+ container.addEventListener('transitionend', onTransitionEnd);
54
+ }
55
+ return () => {
56
+ if (container) {
57
+ container.removeEventListener('transitionend', onTransitionEnd);
58
+ }
59
+ };
60
+ }, [collapsed]);
61
+ useEffect(() => {
62
+ setShowFade(collapsed);
63
+ if (!collapsed) setShouldHideContent(false);
51
64
  }, [collapsed]);
52
65
  useEffect(() => {
53
66
  if (contentRef.current) {
@@ -85,20 +98,21 @@ const CollapseContent = _ref => {
85
98
  };
86
99
  }, [duration, height, collapsed, minHeight]);
87
100
  const fadeShouldBeVisible = useMemo(() => Boolean(minHeight && showFade), [minHeight, showFade]);
101
+ const shouldRenderContent = disableAnimation ? !collapsed : !shouldHideContent;
88
102
  return /*#__PURE__*/jsxs("div", {
89
103
  ref: containerRef,
90
104
  id: "collapse-content-".concat(id),
91
105
  "data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
92
- className: classNames(modules_9c8b5b00.container, {
93
- [modules_9c8b5b00.transition]: !disableAnimation
106
+ className: classNames(styles.container, {
107
+ [styles.transition]: !disableAnimation
94
108
  }),
95
109
  style: style,
96
110
  children: [/*#__PURE__*/jsx("div", {
97
111
  ref: contentRef,
98
112
  "data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
99
- children: children
113
+ children: shouldRenderContent ? children : null
100
114
  }), fadeShouldBeVisible && /*#__PURE__*/jsx("div", {
101
- className: modules_9c8b5b00.fade
115
+ className: styles.fade
102
116
  })]
103
117
  });
104
118
  };
@@ -3,7 +3,6 @@ import joinDataTestAttributes from '../global/data-tests.js';
3
3
  import { CollapseContext } from './collapse-context.js';
4
4
  import { COLLAPSE_CONTROL_TEST_ID } from './consts.js';
5
5
  import { jsx } from 'react/jsx-runtime';
6
- import 'core-js/modules/es.array.reduce.js';
7
6
  import 'core-js/modules/web.dom-collections.iterator.js';
8
7
 
9
8
  const CollapseControl = _ref => {
@@ -9,8 +9,8 @@ export interface ConfirmProps {
9
9
  cancelIsDefault: boolean;
10
10
  confirmLabel: string;
11
11
  rejectLabel: string;
12
- onConfirm: ((event: React.MouseEvent<HTMLButtonElement>) => void);
13
- onReject: ((event?: React.MouseEvent<HTMLButtonElement>) => void);
12
+ onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
13
+ onReject: (event?: React.MouseEvent<HTMLButtonElement>) => void;
14
14
  className?: string | undefined;
15
15
  native?: boolean;
16
16
  }
@@ -5,8 +5,8 @@ import { PureComponent } from 'react';
5
5
  import Dialog from '../dialog/dialog.js';
6
6
  import { Button } from '../button/button.js';
7
7
  import 'classnames';
8
- import 'core-js/modules/es.array.reduce.js';
9
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
+ import '../_helpers/island.js';
10
10
  import HeaderWrapper from '../island/header.js';
11
11
  import ContentWrapper from '../island/content.js';
12
12
  import Panel from '../panel/panel.js';
@@ -16,7 +16,6 @@ import '../island/island.js';
16
16
  import '../global/data-tests.js';
17
17
  import '../island/adaptive-island-hoc.js';
18
18
  import '../global/linear-function.js';
19
- import '../_helpers/island.js';
20
19
  import 'element-resize-detector';
21
20
  import '../global/schedule-raf.js';
22
21
  import '../global/get-uid.js';
@@ -42,7 +41,7 @@ import '../link/clickableLink.js';
42
41
  import '../global/controls-height.js';
43
42
  import '../_helpers/button__classes.js';
44
43
 
45
- var modules_4c9c3a3a = {"light":"light_rui_2ac4","description":"description_rui_f040"};
44
+ var styles = {"description":"description_rui_f040"};
46
45
 
47
46
  class Confirm extends PureComponent {
48
47
  constructor() {
@@ -79,7 +78,7 @@ class Confirm extends PureComponent {
79
78
  children: text
80
79
  }), description && /*#__PURE__*/jsx(ContentWrapper, {
81
80
  children: /*#__PURE__*/jsx("div", {
82
- className: modules_4c9c3a3a.description,
81
+ className: styles.description,
83
82
  children: description
84
83
  })
85
84
  }), /*#__PURE__*/jsxs(Panel, {
@@ -17,5 +17,5 @@ export interface ConfirmServiceParams {
17
17
  onBeforeConfirm?: (() => void) | undefined;
18
18
  buttonsHeight?: ControlsHeight | undefined;
19
19
  }
20
- export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight }: ConfirmServiceParams): Promise<void>;
20
+ export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight, }: ConfirmServiceParams): Promise<void>;
21
21
  export declare function hideConfirm(): void;
@@ -12,7 +12,6 @@ import 'classnames';
12
12
  import '@jetbrains/icons/close';
13
13
  import '../island/island.js';
14
14
  import '../global/data-tests.js';
15
- import 'core-js/modules/es.array.reduce.js';
16
15
  import '../island/adaptive-island-hoc.js';
17
16
  import '../global/linear-function.js';
18
17
  import '../_helpers/island.js';
@@ -55,7 +54,7 @@ function renderConfirm(props) {
55
54
  buttonsHeight = getGlobalControlsHeight()
56
55
  } = props,
57
56
  restProps = _objectWithoutProperties(props, _excluded);
58
- reactRoot.render( /*#__PURE__*/jsx(ControlsHeightContext.Provider, {
57
+ reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
59
58
  value: buttonsHeight,
60
59
  children: /*#__PURE__*/jsx(Confirm, _objectSpread2({}, restProps))
61
60
  }));
@@ -2,7 +2,7 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component, Children, cloneElement } from 'react';
4
4
  import classNames from 'classnames';
5
- import { m as modules_b8a9dd4f, S as Sidebar } from '../_helpers/sidebar.js';
5
+ import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
  import 'react-waypoint';
8
8
 
@@ -28,10 +28,10 @@ class ContentLayout extends Component {
28
28
  responsive
29
29
  } = _this$props,
30
30
  restProps = _objectWithoutProperties(_this$props, _excluded);
31
- const classes = classNames(modules_b8a9dd4f.contentLayout, className, {
32
- [modules_b8a9dd4f.contentLayoutResponsive]: responsive
31
+ const classes = classNames(styles.contentLayout, className, {
32
+ [styles.contentLayoutResponsive]: responsive
33
33
  });
34
- const contentClasses = classNames(modules_b8a9dd4f.contentLayoutContent, contentClassName);
34
+ const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
35
35
  const childrenArray = Children.toArray(children);
36
36
  const sidebarChild = childrenArray.filter(child => child != null && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
37
37
  const sidebar = sidebarChild && /*#__PURE__*/cloneElement(sidebarChild, {
@@ -5,7 +5,7 @@ import { Component, HTMLAttributes, Ref } from 'react';
5
5
  declare function noop(): void;
6
6
  export interface ContentEditableBaseProps extends HTMLAttributes<HTMLElement> {
7
7
  disabled: boolean;
8
- onComponentUpdate: ((prevProps: ContentEditableBaseProps) => void);
8
+ onComponentUpdate: (prevProps: ContentEditableBaseProps) => void;
9
9
  inputRef?: Ref<HTMLDivElement> | null | undefined;
10
10
  __html: string;
11
11
  }
@@ -2,7 +2,7 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
2
2
  import classNames from 'classnames';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var modules_7bfdf71c = {"light":"light_rui_2ac4","help":"help_rui_63a3"};
5
+ var styles = {"help":"help_rui_63a3"};
6
6
 
7
7
  const _excluded = ["className"];
8
8
  function ControlHelp(_ref) {
@@ -11,7 +11,7 @@ function ControlHelp(_ref) {
11
11
  } = _ref,
12
12
  restProps = _objectWithoutProperties(_ref, _excluded);
13
13
  return /*#__PURE__*/jsx("div", _objectSpread2({
14
- className: classNames(className, modules_7bfdf71c.help)
14
+ className: classNames(className, styles.help)
15
15
  }, restProps));
16
16
  }
17
17
 
@@ -3,7 +3,7 @@ import 'react';
3
3
  import classNames from 'classnames';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
- var modules_9eb96a10 = {"label":"label_rui_fe46","formLabel":"formLabel_rui_fe46","secondaryLabel":"secondaryLabel_rui_fe46","disabledLabel":"disabledLabel_rui_fe46"};
6
+ var styles = {"label":"label_rui_fe46","formLabel":"formLabel_rui_fe46","secondaryLabel":"secondaryLabel_rui_fe46","disabledLabel":"disabledLabel_rui_fe46"};
7
7
 
8
8
  const _excluded = ["children", "type", "disabled"];
9
9
  var LabelType;
@@ -12,8 +12,8 @@ var LabelType;
12
12
  LabelType["FORM"] = "form";
13
13
  })(LabelType || (LabelType = {}));
14
14
  const classNameByType = {
15
- [LabelType.SECONDARY]: modules_9eb96a10.secondaryLabel,
16
- [LabelType.FORM]: modules_9eb96a10.formLabel
15
+ [LabelType.SECONDARY]: styles.secondaryLabel,
16
+ [LabelType.FORM]: styles.formLabel
17
17
  };
18
18
  const ControlLabel = _ref => {
19
19
  let {
@@ -23,8 +23,8 @@ const ControlLabel = _ref => {
23
23
  } = _ref,
24
24
  rest = _objectWithoutProperties(_ref, _excluded);
25
25
  return /*#__PURE__*/jsx("label", _objectSpread2(_objectSpread2({
26
- className: classNames(modules_9eb96a10.label, classNameByType[type], {
27
- [modules_9eb96a10.disabledLabel]: disabled
26
+ className: classNames(styles.label, classNameByType[type], {
27
+ [styles.disabledLabel]: disabled
28
28
  })
29
29
  }, rest), {}, {
30
30
  children: children
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @name Data List
3
- */
2
+ * @name Data List
3
+ */
4
4
  import { Component } from 'react';
5
5
  import { FocusSensorOuterProps } from '../global/focus-sensor-hoc';
6
6
  import { SelectionShortcutsAddProps, SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
@@ -9,7 +9,7 @@ import getUID from '../global/get-uid.js';
9
9
  import Shortcuts from '../shortcuts/shortcuts.js';
10
10
  import Loader from '../loader/loader.js';
11
11
  import Item, { moreLessButtonStates } from './item.js';
12
- import { m as modules_09d014b4 } from '../_helpers/title.js';
12
+ import { s as styles } from '../_helpers/title.js';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  import '../global/composeRefs.js';
15
15
  import 'memoize-one';
@@ -19,7 +19,6 @@ import 'combokeys';
19
19
  import '../global/sniffer.js';
20
20
  import 'sniffr';
21
21
  import '../global/data-tests.js';
22
- import 'core-js/modules/es.array.reduce.js';
23
22
  import '../loader/loader__core.js';
24
23
  import '../global/dom.js';
25
24
  import '@jetbrains/icons/chevron-right';
@@ -116,12 +115,12 @@ class DataList extends PureComponent {
116
115
  } = this.props;
117
116
  const shortcutsMap = _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap);
118
117
  const classes = classNames(className, {
119
- [modules_09d014b4.dataList]: true,
120
- [modules_09d014b4.disabledHover]: disabledHover,
121
- [modules_09d014b4.multiSelection]: selection.getSelected().size > 0
118
+ [styles.dataList]: true,
119
+ [styles.disabledHover]: disabledHover,
120
+ [styles.multiSelection]: selection.getSelected().size > 0
122
121
  });
123
122
  return /*#__PURE__*/jsxs("div", {
124
- className: modules_09d014b4.dataListWrapper,
123
+ className: styles.dataListWrapper,
125
124
  "data-test": "ring-data-list",
126
125
  ref: innerRef,
127
126
  children: [focused && /*#__PURE__*/jsx(Shortcuts, {
@@ -159,7 +158,7 @@ class DataList extends PureComponent {
159
158
  }, key || id);
160
159
  })
161
160
  }), loading && /*#__PURE__*/jsx("div", {
162
- className: data.length > 0 ? modules_09d014b4.loadingOverlay : undefined,
161
+ className: data.length > 0 ? styles.loadingOverlay : undefined,
163
162
  children: /*#__PURE__*/jsx(Loader, {})
164
163
  })]
165
164
  });
@@ -1,16 +1,25 @@
1
1
  import Link from '../link/link.js';
2
- import Badge from '../badge/badge.js';
2
+ import Tag from '../tag/tag.js';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import '../_helpers/_rollupPluginBabelHelpers.js';
5
5
  import 'react';
6
6
  import 'classnames';
7
7
  import '../global/data-tests.js';
8
- import 'core-js/modules/es.array.reduce.js';
9
8
  import 'core-js/modules/web.dom-collections.iterator.js';
10
9
  import '../link/clickableLink.js';
11
10
  import '../_helpers/link.js';
11
+ import '@jetbrains/icons/close-12px';
12
+ import '../icon/icon.js';
12
13
  import 'util-deprecate';
13
- import '../_helpers/badge.js';
14
+ import '../icon/icon__constants.js';
15
+ import '../_helpers/icon__svg.js';
16
+ import 'core-js/modules/es.regexp.exec.js';
17
+ import 'core-js/modules/es.string.replace.js';
18
+ import '../global/memoize.js';
19
+ import '../button/button.js';
20
+ import '@jetbrains/icons/chevron-down';
21
+ import '../global/controls-height.js';
22
+ import '../_helpers/button__classes.js';
14
23
 
15
24
  const items = [{
16
25
  id: 1,
@@ -81,8 +90,7 @@ const items = [{
81
90
  children: "JetProfile"
82
91
  }), /*#__PURE__*/jsx("span", {
83
92
  children: " "
84
- }), /*#__PURE__*/jsx(Badge, {
85
- gray: true,
93
+ }), /*#__PURE__*/jsx(Tag, {
86
94
  children: "duplicate"
87
95
  })]
88
96
  })
@@ -209,7 +217,7 @@ const items = [{
209
217
  children: "Developer"
210
218
  }), /*#__PURE__*/jsx("span", {
211
219
  children: " in 57 projects "
212
- }), /*#__PURE__*/jsx(Badge, {
220
+ }), /*#__PURE__*/jsx(Tag, {
213
221
  children: "team role"
214
222
  })]
215
223
  }),
@@ -257,8 +265,7 @@ const moreItems = [{
257
265
  children: "More item 1"
258
266
  }), /*#__PURE__*/jsx("span", {
259
267
  children: " "
260
- }), /*#__PURE__*/jsx(Badge, {
261
- gray: true,
268
+ }), /*#__PURE__*/jsx(Tag, {
262
269
  children: "duplicate"
263
270
  })]
264
271
  })
@@ -272,8 +279,7 @@ const moreItems = [{
272
279
  children: "More item 2"
273
280
  }), /*#__PURE__*/jsx("span", {
274
281
  children: " "
275
- }), /*#__PURE__*/jsx(Badge, {
276
- gray: true,
282
+ }), /*#__PURE__*/jsx(Tag, {
277
283
  children: "duplicate"
278
284
  })]
279
285
  })
@@ -7,11 +7,10 @@ import Link from '../link/link.js';
7
7
  import Text from '../text/text.js';
8
8
  import LoaderInline from '../loader-inline/loader-inline.js';
9
9
  import { Button } from '../button/button.js';
10
- import { m as modules_09d014b4, T as Title } from '../_helpers/title.js';
10
+ import { s as styles, T as Title } from '../_helpers/title.js';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
12
  import 'classnames';
13
13
  import '../global/data-tests.js';
14
- import 'core-js/modules/es.array.reduce.js';
15
14
  import '../link/clickableLink.js';
16
15
  import '../_helpers/link.js';
17
16
  import 'util-deprecate';
@@ -126,7 +125,7 @@ class Item extends PureComponent {
126
125
  onClick: this.onShowMore,
127
126
  children: 'Show more'
128
127
  }), showMoreLessButton === moreLessButtonStates.MORE_LOADING && /*#__PURE__*/jsx(LoaderInline, {
129
- className: modules_09d014b4.showMoreLoader
128
+ className: styles.showMoreLoader
130
129
  })]
131
130
  });
132
131
  } else if (showMoreLessButton === moreLessButtonStates.LESS) {
@@ -147,8 +146,8 @@ class Item extends PureComponent {
147
146
  title: "Expand",
148
147
  onClick: onExpand,
149
148
  icon: chevronRightIcon,
150
- className: modules_09d014b4.collapseButton,
151
- iconClassName: modules_09d014b4.collapseIcon,
149
+ className: styles.collapseButton,
150
+ iconClassName: styles.collapseIcon,
152
151
  "data-test": "ring-data-list-expand"
153
152
  });
154
153
  } else {
@@ -156,8 +155,8 @@ class Item extends PureComponent {
156
155
  title: "Collapse",
157
156
  onClick: onCollapse,
158
157
  icon: chevronDownIcon,
159
- className: modules_09d014b4.collapseButton,
160
- iconClassName: modules_09d014b4.collapseIcon,
158
+ className: styles.collapseButton,
159
+ iconClassName: styles.collapseIcon,
161
160
  "data-test": "ring-data-list-collapse"
162
161
  });
163
162
  }
@@ -176,9 +175,9 @@ class Item extends PureComponent {
176
175
  onSelect: this.onSelect,
177
176
  offset: offset
178
177
  }), !itemIsEmpty ? /*#__PURE__*/jsxs("ul", {
179
- className: modules_09d014b4.itemContent,
178
+ className: styles.itemContent,
180
179
  children: [items.map(model => this.renderItem(model, parentShift)), showMoreLessButton !== moreLessButtonStates.UNUSED ? /*#__PURE__*/jsx("li", {
181
- className: modules_09d014b4.showMore,
180
+ className: styles.showMore,
182
181
  children: moreLessButton
183
182
  }) : null]
184
183
  }) : null]
@@ -7,7 +7,7 @@ import classNames from 'classnames';
7
7
  import { I as Input } from '../_helpers/input.js';
8
8
  import { ControlsHeight } from '../global/controls-height.js';
9
9
  import { I18nContext } from '../i18n/i18n-context.js';
10
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
10
+ import { s as styles } from '../_helpers/date-picker.js';
11
11
  import { jsx } from 'react/jsx-runtime';
12
12
  import '@jetbrains/icons/close-12px';
13
13
  import '../button/button.js';
@@ -121,7 +121,7 @@ class DateInput extends React.PureComponent {
121
121
  return ((_translations$selectN = translations === null || translations === void 0 ? void 0 : translations.selectName) !== null && _translations$selectN !== void 0 ? _translations$selectN : translate('selectName')).replace('%name%', name).replace('{{name}}', name);
122
122
  }
123
123
  })();
124
- const classes = classNames(modules_0c7b7d96.filter, modules_0c7b7d96["".concat(name, "Input")], divider && modules_0c7b7d96["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
124
+ const classes = classNames(styles.filter, styles["".concat(name, "Input")], divider && styles["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
125
125
  return /*#__PURE__*/jsx(Input, {
126
126
  autoComplete: "off",
127
127
  borderless: true,