@jetbrains/ring-ui 6.0.35 → 6.0.36

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 (293) hide show
  1. package/babel.config.js +4 -1
  2. package/components/alert/alert.css +0 -7
  3. package/components/alert/alert.d.ts +2 -1
  4. package/components/alert/alert.js +2 -1
  5. package/components/alert/container.d.ts +2 -2
  6. package/components/alert/container.js +1 -1
  7. package/components/alert-service/alert-service.d.ts +2 -2
  8. package/components/alert-service/alert-service.js +0 -1
  9. package/components/auth/down-notification.d.ts +1 -1
  10. package/components/auth/down-notification.js +1 -1
  11. package/components/auth/iframe-flow.js +0 -1
  12. package/components/auth-dialog/auth-dialog.d.ts +2 -2
  13. package/components/auth-dialog/auth-dialog.js +1 -1
  14. package/components/auth-dialog-service/auth-dialog-service.js +0 -1
  15. package/components/avatar/avatar.d.ts +2 -2
  16. package/components/avatar/avatar.js +1 -1
  17. package/components/avatar/fallback-avatar.d.ts +2 -2
  18. package/components/avatar/fallback-avatar.js +1 -1
  19. package/components/badge/badge.d.ts +2 -2
  20. package/components/badge/badge.js +1 -1
  21. package/components/breadcrumbs/breadcrumbs.css +7 -0
  22. package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
  23. package/components/breadcrumbs/breadcrumbs.js +11 -0
  24. package/components/button/button.d.ts +2 -1
  25. package/components/button/button.js +2 -1
  26. package/components/button-group/button-group.css +12 -11
  27. package/components/button-group/button-group.d.ts +4 -2
  28. package/components/button-group/button-group.js +9 -3
  29. package/components/button-group/caption.d.ts +2 -2
  30. package/components/button-group/caption.js +1 -1
  31. package/components/button-set/button-set.d.ts +2 -2
  32. package/components/button-set/button-set.js +1 -1
  33. package/components/button-toolbar/button-toolbar.d.ts +2 -2
  34. package/components/button-toolbar/button-toolbar.js +1 -1
  35. package/components/checkbox/checkbox.css +16 -20
  36. package/components/checkbox/checkbox.d.ts +3 -2
  37. package/components/checkbox/checkbox.js +12 -6
  38. package/components/code/code.d.ts +3 -3
  39. package/components/code/code.js +1 -1
  40. package/components/collapse/collapse-content.d.ts +2 -1
  41. package/components/collapse/collapse-content.js +2 -1
  42. package/components/collapse/collapse-control.d.ts +1 -1
  43. package/components/collapse/collapse-control.js +2 -1
  44. package/components/collapse/collapse.d.ts +2 -1
  45. package/components/collapse/collapse.js +2 -1
  46. package/components/confirm/confirm.d.ts +2 -1
  47. package/components/confirm/confirm.js +2 -1
  48. package/components/confirm-service/confirm-service.js +0 -1
  49. package/components/content-layout/content-layout.d.ts +2 -2
  50. package/components/content-layout/content-layout.js +2 -2
  51. package/components/content-layout/sidebar.d.ts +2 -2
  52. package/components/content-layout/sidebar.js +1 -1
  53. package/components/contenteditable/contenteditable.d.ts +3 -3
  54. package/components/contenteditable/contenteditable.js +1 -1
  55. package/components/control-help/control-help.css +8 -0
  56. package/components/control-help/control-help.d.ts +4 -0
  57. package/components/control-help/control-help.js +5 -0
  58. package/components/control-label/control-label.d.ts +2 -1
  59. package/components/control-label/control-label.js +1 -1
  60. package/components/data-list/data-list.d.ts +11 -11
  61. package/components/data-list/data-list.js +1 -1
  62. package/components/data-list/data-list.mock.d.ts +2 -2
  63. package/components/data-list/data-list.mock.js +0 -2
  64. package/components/data-list/item.d.ts +3 -3
  65. package/components/data-list/item.js +1 -1
  66. package/components/data-list/title.d.ts +3 -3
  67. package/components/data-list/title.js +1 -1
  68. package/components/date-picker/date-input.d.ts +1 -1
  69. package/components/date-picker/date-input.js +1 -1
  70. package/components/date-picker/date-picker.d.ts +2 -1
  71. package/components/date-picker/date-picker.js +2 -1
  72. package/components/date-picker/date-popup.d.ts +2 -1
  73. package/components/date-picker/date-popup.js +2 -1
  74. package/components/date-picker/day.d.ts +2 -2
  75. package/components/date-picker/day.js +1 -1
  76. package/components/date-picker/month-names.d.ts +2 -2
  77. package/components/date-picker/month-names.js +1 -1
  78. package/components/date-picker/month-slider.d.ts +2 -2
  79. package/components/date-picker/month-slider.js +1 -1
  80. package/components/date-picker/month.d.ts +2 -2
  81. package/components/date-picker/month.js +0 -1
  82. package/components/date-picker/months.d.ts +2 -2
  83. package/components/date-picker/months.js +1 -1
  84. package/components/date-picker/weekdays.d.ts +2 -2
  85. package/components/date-picker/weekdays.js +0 -1
  86. package/components/date-picker/years.d.ts +3 -3
  87. package/components/date-picker/years.js +1 -1
  88. package/components/dialog/dialog.d.ts +2 -1
  89. package/components/dialog/dialog.js +2 -1
  90. package/components/dropdown/anchor.d.ts +3 -3
  91. package/components/dropdown/anchor.js +1 -1
  92. package/components/dropdown/dropdown.d.ts +2 -1
  93. package/components/dropdown/dropdown.js +2 -1
  94. package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  95. package/components/dropdown-menu/dropdown-menu.js +2 -2
  96. package/components/editable-heading/editable-heading.d.ts +2 -1
  97. package/components/editable-heading/editable-heading.js +2 -1
  98. package/components/error-bubble/error-bubble.d.ts +2 -2
  99. package/components/error-bubble/error-bubble.js +1 -1
  100. package/components/error-message/error-message.d.ts +2 -2
  101. package/components/error-message/error-message.js +1 -1
  102. package/components/footer/footer.css +1 -1
  103. package/components/footer/footer.d.ts +2 -2
  104. package/components/footer/footer.js +1 -1
  105. package/components/form/form.css +1 -1
  106. package/components/form/form.stories.js +0 -1
  107. package/components/global/create-stateful-context.d.ts +5 -5
  108. package/components/global/create-stateful-context.js +1 -1
  109. package/components/global/focus-sensor-hoc.js +1 -1
  110. package/components/global/get-event-key.d.ts +1 -1
  111. package/components/global/react-dom-renderer.d.ts +2 -2
  112. package/components/global/react-dom-renderer.js +1 -1
  113. package/components/global/rerender-hoc.d.ts +2 -2
  114. package/components/global/rerender-hoc.js +1 -1
  115. package/components/global/theme.d.ts +3 -3
  116. package/components/global/theme.js +1 -1
  117. package/components/grid/col.d.ts +2 -2
  118. package/components/grid/col.js +1 -1
  119. package/components/grid/grid.d.ts +2 -2
  120. package/components/grid/grid.js +1 -1
  121. package/components/grid/row.d.ts +2 -2
  122. package/components/grid/row.js +1 -1
  123. package/components/group/group.d.ts +2 -2
  124. package/components/group/group.js +1 -1
  125. package/components/header/header.d.ts +2 -2
  126. package/components/header/header.js +1 -1
  127. package/components/header/logo.d.ts +2 -2
  128. package/components/header/logo.js +1 -1
  129. package/components/header/profile.d.ts +4 -3
  130. package/components/header/profile.js +2 -1
  131. package/components/header/services-link.d.ts +2 -2
  132. package/components/header/services-link.js +1 -1
  133. package/components/header/services.d.ts +2 -2
  134. package/components/header/services.js +1 -1
  135. package/components/header/smart-profile.d.ts +2 -2
  136. package/components/header/smart-profile.js +1 -1
  137. package/components/header/smart-services.d.ts +2 -2
  138. package/components/header/smart-services.js +1 -1
  139. package/components/header/tray-icon.d.ts +2 -2
  140. package/components/header/tray-icon.js +1 -1
  141. package/components/header/tray.d.ts +2 -2
  142. package/components/header/tray.js +1 -1
  143. package/components/heading/heading.d.ts +6 -6
  144. package/components/heading/heading.js +1 -1
  145. package/components/i18n/i18n-context.d.ts +1 -1
  146. package/components/i18n/i18n-context.js +2 -1
  147. package/components/icon/icon.d.ts +2 -2
  148. package/components/icon/icon.js +1 -1
  149. package/components/icon/icon__svg.d.ts +3 -3
  150. package/components/icon/icon__svg.js +1 -1
  151. package/components/input/input.css +5 -1
  152. package/components/input/input.d.ts +3 -2
  153. package/components/input/input.js +8 -6
  154. package/components/input-size/input-size.stories.js +0 -1
  155. package/components/island/adaptive-island-hoc.d.ts +11 -11
  156. package/components/island/adaptive-island-hoc.js +1 -1
  157. package/components/island/content.d.ts +3 -3
  158. package/components/island/content.js +1 -1
  159. package/components/island/header.d.ts +2 -2
  160. package/components/island/header.js +1 -1
  161. package/components/island/island.css +1 -1
  162. package/components/island/island.d.ts +10 -10
  163. package/components/island/island.js +1 -1
  164. package/components/island-legacy/content-legacy.d.ts +2 -2
  165. package/components/island-legacy/content-legacy.js +1 -1
  166. package/components/island-legacy/header-legacy.d.ts +2 -2
  167. package/components/island-legacy/header-legacy.js +1 -1
  168. package/components/island-legacy/island-legacy.d.ts +2 -2
  169. package/components/island-legacy/island-legacy.js +1 -1
  170. package/components/link/clickableLink.d.ts +2 -1
  171. package/components/link/clickableLink.js +2 -1
  172. package/components/link/link.d.ts +15 -15
  173. package/components/link/link.js +1 -1
  174. package/components/list/consts.d.ts +2 -1
  175. package/components/list/list.d.ts +10 -10
  176. package/components/list/list.js +1 -1
  177. package/components/list/list__custom.d.ts +2 -1
  178. package/components/list/list__custom.js +2 -1
  179. package/components/list/list__hint.d.ts +2 -2
  180. package/components/list/list__hint.js +1 -1
  181. package/components/list/list__item.d.ts +2 -2
  182. package/components/list/list__item.js +2 -2
  183. package/components/list/list__link.d.ts +2 -2
  184. package/components/list/list__link.js +1 -1
  185. package/components/list/list__separator.d.ts +2 -2
  186. package/components/list/list__separator.js +1 -1
  187. package/components/list/list__title.d.ts +2 -2
  188. package/components/list/list__title.js +1 -1
  189. package/components/loader/loader.d.ts +2 -2
  190. package/components/loader/loader.js +1 -1
  191. package/components/loader-inline/loader-inline.d.ts +2 -2
  192. package/components/loader-inline/loader-inline.js +1 -1
  193. package/components/loader-screen/loader-screen.d.ts +2 -2
  194. package/components/loader-screen/loader-screen.js +1 -1
  195. package/components/login-dialog/login-dialog.d.ts +2 -2
  196. package/components/login-dialog/login-dialog.js +1 -1
  197. package/components/login-dialog/service.js +0 -1
  198. package/components/markdown/markdown.d.ts +2 -2
  199. package/components/markdown/markdown.js +1 -1
  200. package/components/message/message.d.ts +2 -2
  201. package/components/message/message.js +1 -1
  202. package/components/pager/pager.d.ts +2 -1
  203. package/components/pager/pager.js +2 -1
  204. package/components/panel/panel.d.ts +2 -2
  205. package/components/panel/panel.js +1 -1
  206. package/components/popup/popup.d.ts +2 -1
  207. package/components/popup/popup.js +2 -1
  208. package/components/popup/popup.target.d.ts +3 -3
  209. package/components/popup/popup.target.js +1 -1
  210. package/components/popup-menu/popup-menu.d.ts +2 -2
  211. package/components/popup-menu/popup-menu.js +0 -1
  212. package/components/progress-bar/progress-bar.d.ts +2 -2
  213. package/components/progress-bar/progress-bar.js +1 -1
  214. package/components/query-assist/query-assist.d.ts +3 -2
  215. package/components/query-assist/query-assist.js +4 -3
  216. package/components/query-assist/query-assist__suggestions.d.ts +2 -2
  217. package/components/query-assist/query-assist__suggestions.js +0 -1
  218. package/components/radio/radio.d.ts +3 -3
  219. package/components/radio/radio.js +1 -1
  220. package/components/radio/radio__item.d.ts +9 -6
  221. package/components/radio/radio__item.js +10 -6
  222. package/components/select/select-popup.css +1 -0
  223. package/components/select/select.css +1 -1
  224. package/components/select/select.d.ts +5 -2
  225. package/components/select/select.js +5 -3
  226. package/components/select/select__filter.d.ts +2 -2
  227. package/components/select/select__filter.js +1 -1
  228. package/components/select/select__popup.d.ts +6 -4
  229. package/components/select/select__popup.js +4 -3
  230. package/components/shortcuts/core.d.ts +0 -1
  231. package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
  232. package/components/shortcuts/shortcuts-hoc.js +2 -2
  233. package/components/slider/slider.d.ts +2 -1
  234. package/components/slider/slider.js +2 -1
  235. package/components/tab-trap/tab-trap.d.ts +2 -1
  236. package/components/tab-trap/tab-trap.js +2 -1
  237. package/components/table/cell.d.ts +2 -2
  238. package/components/table/cell.js +1 -1
  239. package/components/table/disable-hover-hoc.d.ts +9 -9
  240. package/components/table/disable-hover-hoc.js +1 -1
  241. package/components/table/header-cell.d.ts +2 -2
  242. package/components/table/header-cell.js +1 -1
  243. package/components/table/header.d.ts +3 -3
  244. package/components/table/header.js +1 -1
  245. package/components/table/multitable.d.ts +2 -2
  246. package/components/table/multitable.js +1 -1
  247. package/components/table/row-with-focus-sensor.d.ts +3 -3
  248. package/components/table/row-with-focus-sensor.js +1 -1
  249. package/components/table/row.d.ts +2 -1
  250. package/components/table/row.js +2 -1
  251. package/components/table/selection-shortcuts-hoc.js +1 -1
  252. package/components/table/smart-table.d.ts +44 -44
  253. package/components/table/smart-table.js +1 -1
  254. package/components/table/table.d.ts +2 -1
  255. package/components/table/table.js +2 -1
  256. package/components/table-legacy/table-legacy.css +1 -1
  257. package/components/tabs/collapsible-more.d.ts +4 -4
  258. package/components/tabs/collapsible-more.js +8 -8
  259. package/components/tabs/collapsible-tab.d.ts +2 -1
  260. package/components/tabs/collapsible-tab.js +1 -1
  261. package/components/tabs/collapsible-tabs.d.ts +4 -4
  262. package/components/tabs/collapsible-tabs.js +14 -14
  263. package/components/tabs/dumb-tabs.d.ts +2 -1
  264. package/components/tabs/dumb-tabs.js +2 -1
  265. package/components/tabs/smart-tabs.d.ts +2 -2
  266. package/components/tabs/smart-tabs.js +1 -1
  267. package/components/tabs/tab-link.d.ts +3 -3
  268. package/components/tabs/tab-link.js +1 -1
  269. package/components/tabs/tab.d.ts +2 -2
  270. package/components/tabs/tab.js +1 -1
  271. package/components/tag/tag.d.ts +2 -1
  272. package/components/tag/tag.js +2 -1
  273. package/components/tags-input/tags-input.d.ts +3 -2
  274. package/components/tags-input/tags-input.js +2 -1
  275. package/components/tags-list/tags-list.d.ts +2 -1
  276. package/components/tags-list/tags-list.js +2 -1
  277. package/components/text/text.d.ts +2 -2
  278. package/components/text/text.js +1 -1
  279. package/components/toggle/toggle.d.ts +2 -2
  280. package/components/toggle/toggle.js +1 -1
  281. package/components/tooltip/tooltip.d.ts +2 -1
  282. package/components/tooltip/tooltip.js +2 -1
  283. package/components/user-agreement/service.js +2 -3
  284. package/components/user-agreement/user-agreement.d.ts +2 -2
  285. package/components/user-agreement/user-agreement.js +1 -1
  286. package/components/user-card/card.d.ts +2 -1
  287. package/components/user-card/card.js +2 -1
  288. package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
  289. package/components/user-card/smart-user-card-tooltip.js +1 -1
  290. package/components/user-card/tooltip.d.ts +3 -3
  291. package/components/user-card/tooltip.js +1 -1
  292. package/components/user-card/user-card.css +1 -1
  293. package/package.json +27 -26
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classnames from 'classnames';
4
4
  import styles from './list.css';
@@ -1,8 +1,8 @@
1
- import React, { PureComponent, SyntheticEvent } from 'react';
1
+ import { PureComponent, SyntheticEvent } from 'react';
2
2
  import { ListDataItemProps } from './consts';
3
3
  export default class ListItem<T> extends PureComponent<ListDataItemProps<T>> {
4
4
  id: string;
5
5
  stopBubbling: (e: SyntheticEvent) => void;
6
6
  private _isString;
7
- render(): React.JSX.Element;
7
+ render(): import("react").JSX.Element;
8
8
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import dataTests from '../global/data-tests';
@@ -61,7 +61,7 @@ export default class ListItem extends PureComponent {
61
61
  {showCheckbox && (<div className={styles.checkboxContainer}>
62
62
  <Checkbox aria-labelledby={this.id} checked={checkbox} disabled={disabled} onChange={onCheckboxChange} onClick={this.stopBubbling}/>
63
63
  </div>)}
64
- <button id={this.id} type="button" tabIndex={tabIndex} onClick={onClick} onMouseOver={onMouseOver} onMouseDown={onMouseDown} onFocus={onMouseOver} onMouseUp={onMouseUp} className={classes} style={style}>
64
+ <button id={this.id} type="button" tabIndex={tabIndex} onClick={onClick} onMouseOver={onMouseOver} onMouseDown={onMouseDown} onFocus={onMouseOver} onMouseUp={onMouseUp} className={classes} style={style} disabled={disabled}>
65
65
  <div className={styles.top} onMouseOut={this.stopBubbling} onBlur={this.stopBubbling}>
66
66
  {!showCheckbox && (<div className={styles.left}>
67
67
  {leftNodes}
@@ -1,9 +1,9 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import { ListDataItemProps } from './consts';
3
3
  /**
4
4
  * @constructor
5
5
  * @extends {ReactComponent}
6
6
  */
7
7
  export default class ListLink<T> extends PureComponent<ListDataItemProps<T>> {
8
- render(): React.JSX.Element;
8
+ render(): import("react").JSX.Element;
9
9
  }
@@ -1,4 +1,4 @@
1
- import React, { Component, PureComponent } from 'react';
1
+ import { Component, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import Link, { linkHOC } from '../link/link';
@@ -1,5 +1,5 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import { ListDataItemProps } from './consts';
3
3
  export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
4
- render(): React.JSX.Element;
4
+ render(): import("react").JSX.Element;
5
5
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import styles from './list.css';
@@ -1,5 +1,5 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import { ListDataItemProps } from './consts';
3
3
  export default class ListTitle<T> extends PureComponent<ListDataItemProps<T>> {
4
- render(): React.JSX.Element;
4
+ render(): import("react").JSX.Element;
5
5
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classnames from 'classnames';
4
4
  import styles from './list.css';
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import LoaderCore, { LoaderCoreProps } from './loader__core';
4
4
  export interface LoaderProps extends Partial<LoaderCoreProps>, HTMLAttributes<HTMLElement> {
@@ -24,5 +24,5 @@ export default class Loader extends PureComponent<LoaderProps> {
24
24
  componentWillUnmount(): void;
25
25
  loader?: LoaderCore;
26
26
  initLoader: (el: Node | null) => void;
27
- render(): React.JSX.Element;
27
+ render(): import("react").JSX.Element;
28
28
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import dataTests from '../global/data-tests';
4
4
  import LoaderCore from './loader__core';
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface LoaderInlineProps extends HTMLAttributes<HTMLDivElement> {
4
4
  'data-test'?: string | null | undefined;
@@ -12,7 +12,7 @@ declare class LoaderInline extends PureComponent<LoaderInlineProps> {
12
12
  'data-test': PropTypes.Requireable<string>;
13
13
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
14
  };
15
- render(): React.JSX.Element;
15
+ render(): import("react").JSX.Element;
16
16
  }
17
17
  export type LoaderInlineAtrrs = JSX.LibraryManagedAttributes<typeof LoaderInline, LoaderInlineProps>;
18
18
  export default LoaderInline;
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import PropTypes from 'prop-types';
4
4
  import dataTests from '../global/data-tests';
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { LoaderProps } from '../loader/loader';
4
4
  export interface LoaderScreenProps extends LoaderProps {
@@ -13,5 +13,5 @@ export default class LoaderScreen extends PureComponent<LoaderScreenProps> {
13
13
  containerClassName: PropTypes.Requireable<string>;
14
14
  message: PropTypes.Requireable<string>;
15
15
  };
16
- render(): React.JSX.Element;
16
+ render(): import("react").JSX.Element;
17
17
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import PropTypes from 'prop-types';
4
4
  import Loader from '../loader/loader';
@@ -1,4 +1,4 @@
1
- import React, { Component, ReactNode } from 'react';
1
+ import { Component, ReactNode } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface LoginDialogProps {
4
4
  onCancel: () => void;
@@ -42,6 +42,6 @@ export default class LoginDialog extends Component<LoginDialogProps> {
42
42
  showFallbackTimout?: number;
43
43
  startFallbackCountdown(): void;
44
44
  onMessage: (event: MessageEvent) => void;
45
- render(): React.JSX.Element;
45
+ render(): import("react").JSX.Element;
46
46
  }
47
47
  export type LoginDialogAttrs = JSX.LibraryManagedAttributes<typeof LoginDialog, LoginDialogProps>;
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Dialog from '../dialog/dialog';
4
4
  import { Content } from '../island/island';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height';
4
3
  import LoginDialog from './login-dialog';
@@ -1,4 +1,4 @@
1
- import React, { PureComponent, ReactNode } from 'react';
1
+ import { PureComponent, ReactNode } from 'react';
2
2
  export interface MarkdownProps {
3
3
  inline?: boolean | null | undefined;
4
4
  children: ReactNode;
@@ -8,5 +8,5 @@ export interface MarkdownProps {
8
8
  * @name Markdown
9
9
  */
10
10
  export default class Markdown extends PureComponent<MarkdownProps> {
11
- render(): React.JSX.Element;
11
+ render(): import("react").JSX.Element;
12
12
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import headingStyles from '../heading/heading.css';
@@ -1,4 +1,4 @@
1
- import React, { Component, ReactNode } from 'react';
1
+ import { Component, ReactNode } from 'react';
2
2
  import Popup, { PopupAttrs } from '../popup/popup';
3
3
  import { Directions } from '../popup/popup.consts';
4
4
  import { IconType } from '../icon/icon';
@@ -49,7 +49,7 @@ export default class Message extends Component<MessageProps> {
49
49
  node?: HTMLElement | null;
50
50
  popupRef: (el: Popup | null) => void;
51
51
  getTailOffset(): number;
52
- render(): React.JSX.Element;
52
+ render(): import("react").JSX.Element;
53
53
  }
54
54
  export type MessageAttrs = JSX.LibraryManagedAttributes<typeof Message, MessageProps>;
55
55
  export {};
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import gift from '@jetbrains/icons/gift';
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Pager
3
3
  */
4
- import React, { PureComponent, ReactNode } from 'react';
4
+ import { PureComponent, ReactNode } from 'react';
5
+ import * as React from 'react';
5
6
  import { SelectItem } from '../select/select';
6
7
  export interface PagerTranslations {
7
8
  perPage: string;
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Pager
3
3
  */
4
- import React, { PureComponent } from 'react';
4
+ import { PureComponent } from 'react';
5
+ import * as React from 'react';
5
6
  import PropTypes from 'prop-types';
6
7
  import classNames from 'classnames';
7
8
  import chevronLeftIcon from '@jetbrains/icons/chevron-left';
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  /**
4
4
  * @name Panel
@@ -8,5 +8,5 @@ export default class Panel extends PureComponent<HTMLAttributes<HTMLElement>> {
8
8
  className: PropTypes.Requireable<string>;
9
9
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
10
10
  };
11
- render(): React.JSX.Element;
11
+ render(): import("react").JSX.Element;
12
12
  }
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import styles from './panel.css';
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Popup
3
3
  */
4
- import React, { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
4
+ import { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
5
+ import * as React from 'react';
5
6
  import { Listeners } from '../global/dom';
6
7
  import { PositionStyles } from './position';
7
8
  import { Dimension, Directions, Display, MaxHeight, MinWidth } from './popup.consts';
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Popup
3
3
  */
4
- import React, { PureComponent } from 'react';
4
+ import { PureComponent } from 'react';
5
+ import * as React from 'react';
5
6
  import { createPortal } from 'react-dom';
6
7
  import PropTypes from 'prop-types';
7
8
  import classNames from 'classnames';
@@ -1,7 +1,7 @@
1
- import React, { HTMLAttributes, ReactNode } from 'react';
2
- export declare const PopupTargetContext: React.Context<string | Element | undefined>;
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export declare const PopupTargetContext: import("react").Context<string | Element | undefined>;
3
3
  export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
4
  id: string;
5
5
  children: ReactNode | ((target: ReactNode) => ReactNode);
6
6
  }
7
- export declare const PopupTarget: React.ForwardRefExoticComponent<PopupTargetProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const PopupTarget: import("react").ForwardRefExoticComponent<PopupTargetProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import React, { createContext, forwardRef } from 'react';
1
+ import { createContext, forwardRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export const PopupTargetContext = createContext(undefined);
4
4
  export const PopupTarget = forwardRef(function PopupTarget({ id, children, ...restProps }, ref) {
@@ -1,4 +1,4 @@
1
- import React, { SyntheticEvent } from 'react';
1
+ import { SyntheticEvent } from 'react';
2
2
  import Popup, { BasePopupProps } from '../popup/popup';
3
3
  import List, { ListProps as ListPropsType } from '../list/list';
4
4
  import { ListDataItem } from '../list/consts';
@@ -61,7 +61,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
61
61
  list?: List<T> | null;
62
62
  listRef: (el: List<T> | null) => void;
63
63
  /** @override */
64
- getInternalContent(): React.JSX.Element;
64
+ getInternalContent(): import("react").JSX.Element;
65
65
  }
66
66
  export type PopupMenuAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof PopupMenu, PopupMenuProps<T>>;
67
67
  export declare const ListProps: {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
3
2
  import Popup from '../popup/popup';
4
3
  import List from '../list/list';
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
4
4
  max: number;
@@ -59,6 +59,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
59
59
  progressbarWrapperRef: (el: HTMLElement | null) => void;
60
60
  progressbar?: (HTMLElement | null);
61
61
  progressbarRef: (el: HTMLElement | null) => void;
62
- render(): React.JSX.Element;
62
+ render(): import("react").JSX.Element;
63
63
  }
64
64
  export type ProgressBarAttrs = JSX.LibraryManagedAttributes<typeof ProgressBar, ProgressBarProps>;
@@ -1,4 +1,4 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import styles from './progress-bar.css';
@@ -1,4 +1,5 @@
1
- import React, { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
1
+ import { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
2
+ import * as React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import Caret, { Position } from '../caret/caret';
4
5
  import PopupMenu from '../popup-menu/popup-menu';
@@ -298,7 +299,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
298
299
  shortcutsScope: string;
299
300
  shortcutsMap: ShortcutsMap;
300
301
  listShortcutsMap: ShortcutsMap;
301
- renderActions(): React.ReactNode[];
302
+ renderActions(): ReactNode[];
302
303
  render(): React.JSX.Element;
303
304
  }
304
305
  export type QueryAssistAttrs = JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
@@ -1,4 +1,5 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
+ import * as React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import debounce from 'just-debounce-it';
4
5
  import classNames from 'classnames';
@@ -366,7 +367,7 @@ export default class QueryAssist extends Component {
366
367
  }
367
368
  const diff = this.immediateState.query.length - this.state.query.length;
368
369
  const originalIndex = this.immediateState.caret - diff;
369
- const ranges = [...this.state.styleRanges ?? []];
370
+ const ranges = [...(this.state.styleRanges ?? [])];
370
371
  const range = ranges.
371
372
  find(r => originalIndex >= r.start && originalIndex <= r.start + r.length);
372
373
  if (range) {
@@ -826,7 +827,7 @@ export default class QueryAssist extends Component {
826
827
  onKeyUp={this.handleInput} // to handle input and key up
827
828
  onKeyDown={this.handleEnter} onPaste={this.handlePaste} spellCheck="false">{this.state.query && <span>{this.renderQuery()}</span>}</ContentEditable>
828
829
 
829
- {renderPlaceholder && (<button type="button" className={placeholderStyles} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder">
830
+ {renderPlaceholder && (<button type="button" className={placeholderStyles} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder" disabled={this.props.disabled}>
830
831
  {this.props.placeholder}
831
832
  </button>)}
832
833
 
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ListDataItem } from '../list/consts';
3
3
  export interface QueryAssistSuggestion {
4
4
  description: string;
@@ -19,7 +19,7 @@ export interface SuggestionItem {
19
19
  }
20
20
  export default class QueryAssistSuggestions {
21
21
  static createKey(suggestion: QueryAssistSuggestion): string;
22
- static renderLabel(suggestion: QueryAssistSuggestion): React.JSX.Element;
22
+ static renderLabel(suggestion: QueryAssistSuggestion): import("react").JSX.Element;
23
23
  static renderGroupSeparator(suggestion: QueryAssistSuggestion, prevSuggestion: string): {
24
24
  key: string;
25
25
  description: string;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import List from '../list/list';
3
2
  import styles from './query-assist.css';
4
3
  const ICON_ID_LENGTH = 44;
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { RadioProps } from './radio__item';
4
4
  /**
@@ -12,7 +12,7 @@ export default class Radio extends Component<RadioProps> {
12
12
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
13
13
  children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
14
14
  };
15
- static Item: React.ForwardRefExoticComponent<import("./radio__item").RadioItemProps & React.RefAttributes<import("./radio__item").Radio>>;
15
+ static Item: import("react").ForwardRefExoticComponent<import("./radio__item").RadioItemProps & import("react").RefAttributes<import("./radio__item").RadioItemInner>>;
16
16
  uid: string;
17
- render(): React.JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  }
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import getUID from '../global/get-uid';
4
4
  import RadioItem, { RadioContext } from './radio__item';
@@ -1,11 +1,14 @@
1
- import React, { Component, InputHTMLAttributes } from 'react';
1
+ import { Component, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
4
  value?: string | undefined;
5
5
  onChange?: ((value: string) => void) | null | undefined;
6
6
  }
7
- export declare const RadioContext: React.Context<RadioProps>;
8
- export declare class Radio extends Component<InputHTMLAttributes<HTMLInputElement>> {
7
+ export declare const RadioContext: import("react").Context<RadioProps>;
8
+ export interface RadioItemInnerProps extends InputHTMLAttributes<HTMLInputElement> {
9
+ help?: ReactNode;
10
+ }
11
+ export declare class RadioItemInner extends Component<RadioItemInnerProps> {
9
12
  static propTypes: {
10
13
  className: PropTypes.Requireable<string>;
11
14
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -19,10 +22,10 @@ export declare class Radio extends Component<InputHTMLAttributes<HTMLInputElemen
19
22
  inputRef: (el: HTMLElement | null) => void;
20
23
  label?: HTMLElement | null;
21
24
  labelRef: (el: HTMLElement | null) => void;
22
- render(): React.JSX.Element;
25
+ render(): import("react").JSX.Element;
23
26
  }
24
- export interface RadioItemProps extends InputHTMLAttributes<HTMLInputElement> {
27
+ export interface RadioItemProps extends RadioItemInnerProps {
25
28
  value: string;
26
29
  }
27
- declare const RadioItem: React.ForwardRefExoticComponent<RadioItemProps & React.RefAttributes<Radio>>;
30
+ declare const RadioItem: import("react").ForwardRefExoticComponent<RadioItemProps & import("react").RefAttributes<RadioItemInner>>;
28
31
  export default RadioItem;
@@ -1,10 +1,11 @@
1
- import React, { Component, createContext, forwardRef } from 'react';
1
+ import { Component, createContext, forwardRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import getUID from '../global/get-uid';
5
+ import ControlHelp from '../control-help/control-help';
5
6
  import styles from './radio.css';
6
7
  export const RadioContext = createContext({});
7
- export class Radio extends Component {
8
+ export class RadioItemInner extends Component {
8
9
  static propTypes = {
9
10
  className: PropTypes.string,
10
11
  children: PropTypes.node,
@@ -23,19 +24,22 @@ export class Radio extends Component {
23
24
  this.label = el;
24
25
  };
25
26
  render() {
26
- const { className, children, ...restProps } = this.props;
27
+ const { className, children, help, ...restProps } = this.props;
27
28
  const classes = classNames(styles.radio, className);
28
29
  return (<label ref={this.labelRef} className={classes} htmlFor={this.uid}>
29
30
  <input id={this.uid} {...restProps} ref={this.inputRef} className={styles.input} type="radio"/>
30
31
  <span className={styles.circle}/>
31
- <span className={styles.label}>{children}</span>
32
+ <span className={styles.label}>
33
+ {children}
34
+ {help && <ControlHelp>{help}</ControlHelp>}
35
+ </span>
32
36
  </label>);
33
37
  }
34
38
  }
35
39
  const RadioItem = forwardRef(function RadioItem(props, ref) {
36
40
  return (<RadioContext.Consumer>
37
- {({ value, onChange, ...restContext }) => (<Radio ref={ref} {...restContext} checked={value != null ? value === props.value : undefined} onChange={onChange != null ? () => onChange(props.value) : undefined} {...props}/>)}
41
+ {({ value, onChange, ...restContext }) => (<RadioItemInner ref={ref} {...restContext} checked={value != null ? value === props.value : undefined} onChange={onChange != null ? () => onChange(props.value) : undefined} {...props}/>)}
38
42
  </RadioContext.Consumer>);
39
43
  });
40
- RadioItem.propTypes = Radio.propTypes;
44
+ RadioItem.propTypes = RadioItemInner.propTypes;
41
45
  export default RadioItem;
@@ -97,6 +97,7 @@
97
97
 
98
98
  .selectAll {
99
99
  display: flex;
100
+ align-items: baseline;
100
101
  justify-content: space-between;
101
102
 
102
103
  padding: 8px 16px 0;
@@ -75,7 +75,7 @@
75
75
  .clearIcon {
76
76
  padding: 0 3px;
77
77
 
78
- vertical-align: -2px;
78
+ vertical-align: -1px;
79
79
  }
80
80
 
81
81
  .sizeS {
@@ -1,4 +1,5 @@
1
- import React, { ButtonHTMLAttributes, Component, ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, SyntheticEvent } from 'react';
1
+ import { ButtonHTMLAttributes, Component, ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback, SyntheticEvent } from 'react';
2
+ import * as React from 'react';
2
3
  import { SelectHandlerParams } from '../list/list';
3
4
  import { Size } from '../input/input';
4
5
  import { LabelType } from '../control-label/control-label';
@@ -100,6 +101,7 @@ export interface BaseSelectProps<T = unknown> {
100
101
  popupStyle?: CSSProperties | undefined;
101
102
  top?: number | undefined;
102
103
  left?: number | undefined;
104
+ offset?: number | undefined;
103
105
  renderOptimization?: boolean | undefined;
104
106
  ringPopupTarget?: string | null | undefined;
105
107
  preventListOverscroll?: boolean | undefined;
@@ -199,6 +201,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
199
201
  tags: null;
200
202
  ringPopupTarget: null;
201
203
  dir: string;
204
+ offset: number;
202
205
  };
203
206
  static getDerivedStateFromProps<T = unknown>(nextProps: SelectProps<T>, prevState: SelectState<T>): Partial<SelectState<T>>;
204
207
  state: SelectState<T>;
@@ -229,7 +232,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
229
232
  _hidePopup: (tryFocusAnchor?: boolean) => void;
230
233
  addHandler: () => void;
231
234
  getToolbar(): React.JSX.Element | null;
232
- getTopbar(): React.ReactNode;
235
+ getTopbar(): ReactNode;
233
236
  getLowerCaseLabel: typeof getLowerCaseLabel;
234
237
  doesLabelMatch: typeof doesLabelMatch;
235
238
  getFilterFn(): FilterFn<T>;
@@ -1,4 +1,5 @@
1
- import React, { Component, Fragment } from 'react';
1
+ import { Component, Fragment } from 'react';
2
+ import * as React from 'react';
2
3
  import classNames from 'classnames';
3
4
  import PropTypes from 'prop-types';
4
5
  import chevronDownIcon from '@jetbrains/icons/chevron-down';
@@ -225,7 +226,8 @@ export default class Select extends Component {
225
226
  onReset: noop,
226
227
  tags: null,
227
228
  ringPopupTarget: null,
228
- dir: 'ltr'
229
+ dir: 'ltr',
230
+ offset: 4
229
231
  };
230
232
  static getDerivedStateFromProps(nextProps, prevState) {
231
233
  const { multiple, data, type } = nextProps;
@@ -442,7 +444,7 @@ export default class Select extends Component {
442
444
  else if (!shownData.length) {
443
445
  message = this.props.notFoundMessage ?? translate('noOptionsFound');
444
446
  }
445
- return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={this.state.selectedIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
447
+ return (<SelectPopup data={_shownData} message={message} toolbar={showPopup && this.getToolbar()} topbar={this.getTopbar()} loading={this.props.loading} activeIndex={this.state.selectedIndex} hidden={!showPopup} ref={this.popupRef} maxHeight={this.props.maxHeight} minWidth={this.props.minWidth} directions={this.props.directions} className={this.props.popupClassName} style={this.props.popupStyle} top={this.props.top} left={this.props.left} offset={this.props.offset} filter={this.isInputMode() ? false : this.props.filter} // disable popup filter in INPUT mode
446
448
  filterIcon={this.props.filterIcon} filterRef={this.props.filterRef} multiple={this.props.multiple} filterValue={this.state.filterValue} anchorElement={anchorElement} onCloseAttempt={this._onCloseAttempt} onOutsideClick={this.props.onOutsideClick} onSelect={this._listSelectHandler} onSelectAll={this._listSelectAllHandler} onFilter={this._filterChangeHandler} onClear={this.clearFilter} onLoadMore={this.props.onLoadMore} isInputMode={this.isInputMode()} selected={this.state.selected} tags={this.props.tags} compact={this.props.compact} renderOptimization={this.props.renderOptimization} ringPopupTarget={this.props.ringPopupTarget} disableMoveOverflow={this.props.disableMoveOverflow} disableScrollToActive={this.props.disableScrollToActive} dir={this.props.dir} onEmptyPopupEnter={this.onEmptyPopupEnter} listId={this.listId} preventListOverscroll={this.props.preventListOverscroll}/>);
447
449
  }}
448
450
  </I18nContext.Consumer>);
@@ -1,4 +1,4 @@
1
- import React, { Component, RefCallback } from 'react';
1
+ import { Component, RefCallback } from 'react';
2
2
  import { InputAttrs } from '../input/input';
3
3
  declare function noop(): void;
4
4
  type SelectFilterProps = InputAttrs & {
@@ -14,6 +14,6 @@ export default class SelectFilter extends Component<SelectFilterProps> {
14
14
  blur(): void;
15
15
  input?: HTMLInputElement | HTMLTextAreaElement | null;
16
16
  inputRef: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
17
- render(): React.JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  }
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import Input from '../input/input';