@jetbrains/ring-ui 6.0.35 → 6.0.37

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 (302) 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.css +4 -0
  6. package/components/alert/container.d.ts +2 -2
  7. package/components/alert/container.js +1 -1
  8. package/components/alert-service/alert-service.d.ts +2 -2
  9. package/components/alert-service/alert-service.js +0 -1
  10. package/components/auth/down-notification.d.ts +1 -1
  11. package/components/auth/down-notification.js +1 -1
  12. package/components/auth/iframe-flow.js +0 -1
  13. package/components/auth/request-builder.d.ts +0 -1
  14. package/components/auth/token-validator.d.ts +1 -1
  15. package/components/auth-dialog/auth-dialog.d.ts +2 -2
  16. package/components/auth-dialog/auth-dialog.js +1 -1
  17. package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -1
  18. package/components/auth-dialog-service/auth-dialog-service.js +0 -1
  19. package/components/avatar/avatar.d.ts +2 -2
  20. package/components/avatar/avatar.js +1 -1
  21. package/components/avatar/fallback-avatar.d.ts +1 -2
  22. package/components/avatar/fallback-avatar.js +1 -1
  23. package/components/badge/badge.d.ts +2 -2
  24. package/components/badge/badge.js +1 -1
  25. package/components/breadcrumbs/breadcrumbs.css +7 -0
  26. package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
  27. package/components/breadcrumbs/breadcrumbs.js +11 -0
  28. package/components/button/button.d.ts +2 -1
  29. package/components/button/button.js +2 -1
  30. package/components/button-group/button-group.css +12 -11
  31. package/components/button-group/button-group.d.ts +4 -2
  32. package/components/button-group/button-group.js +9 -3
  33. package/components/button-group/caption.d.ts +2 -2
  34. package/components/button-group/caption.js +1 -1
  35. package/components/button-set/button-set.d.ts +2 -2
  36. package/components/button-set/button-set.js +1 -1
  37. package/components/button-toolbar/button-toolbar.d.ts +2 -2
  38. package/components/button-toolbar/button-toolbar.js +1 -1
  39. package/components/checkbox/checkbox.css +16 -20
  40. package/components/checkbox/checkbox.d.ts +3 -2
  41. package/components/checkbox/checkbox.js +12 -6
  42. package/components/code/code.d.ts +3 -4
  43. package/components/code/code.js +1 -1
  44. package/components/collapse/collapse-content.d.ts +2 -1
  45. package/components/collapse/collapse-content.js +2 -1
  46. package/components/collapse/collapse-context.d.ts +0 -1
  47. package/components/collapse/collapse-control.d.ts +1 -1
  48. package/components/collapse/collapse-control.js +2 -1
  49. package/components/collapse/collapse.d.ts +2 -1
  50. package/components/collapse/collapse.js +2 -1
  51. package/components/confirm/confirm.d.ts +2 -1
  52. package/components/confirm/confirm.js +2 -1
  53. package/components/confirm-service/confirm-service.js +0 -1
  54. package/components/content-layout/content-layout.d.ts +2 -2
  55. package/components/content-layout/content-layout.js +2 -2
  56. package/components/content-layout/sidebar.d.ts +2 -2
  57. package/components/content-layout/sidebar.js +1 -1
  58. package/components/contenteditable/contenteditable.d.ts +3 -3
  59. package/components/contenteditable/contenteditable.js +1 -1
  60. package/components/control-help/control-help.css +8 -0
  61. package/components/control-help/control-help.d.ts +4 -0
  62. package/components/control-help/control-help.js +5 -0
  63. package/components/control-label/control-label.d.ts +2 -1
  64. package/components/control-label/control-label.js +1 -1
  65. package/components/data-list/data-list.d.ts +15 -15
  66. package/components/data-list/data-list.js +1 -1
  67. package/components/data-list/data-list.mock.d.ts +2 -2
  68. package/components/data-list/data-list.mock.js +0 -2
  69. package/components/data-list/item.d.ts +3 -3
  70. package/components/data-list/item.js +1 -1
  71. package/components/data-list/title.d.ts +3 -3
  72. package/components/data-list/title.js +1 -1
  73. package/components/date-picker/date-input.d.ts +1 -1
  74. package/components/date-picker/date-input.js +1 -1
  75. package/components/date-picker/date-picker.d.ts +2 -1
  76. package/components/date-picker/date-picker.js +2 -1
  77. package/components/date-picker/date-popup.d.ts +2 -1
  78. package/components/date-picker/date-popup.js +2 -1
  79. package/components/date-picker/day.d.ts +3 -3
  80. package/components/date-picker/day.js +1 -1
  81. package/components/date-picker/month-names.d.ts +1 -2
  82. package/components/date-picker/month-names.js +1 -1
  83. package/components/date-picker/month-slider.d.ts +2 -2
  84. package/components/date-picker/month-slider.js +1 -1
  85. package/components/date-picker/month.d.ts +1 -2
  86. package/components/date-picker/month.js +0 -1
  87. package/components/date-picker/months.d.ts +1 -2
  88. package/components/date-picker/months.js +1 -1
  89. package/components/date-picker/weekdays.d.ts +1 -2
  90. package/components/date-picker/weekdays.js +0 -1
  91. package/components/date-picker/years.d.ts +3 -3
  92. package/components/date-picker/years.js +1 -1
  93. package/components/dialog/dialog.d.ts +2 -1
  94. package/components/dialog/dialog.js +2 -1
  95. package/components/dropdown/anchor.d.ts +2 -3
  96. package/components/dropdown/anchor.js +1 -1
  97. package/components/dropdown/dropdown.d.ts +2 -1
  98. package/components/dropdown/dropdown.js +2 -1
  99. package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  100. package/components/dropdown-menu/dropdown-menu.js +2 -2
  101. package/components/editable-heading/editable-heading.d.ts +2 -1
  102. package/components/editable-heading/editable-heading.js +2 -1
  103. package/components/error-bubble/error-bubble.d.ts +2 -2
  104. package/components/error-bubble/error-bubble.js +1 -1
  105. package/components/error-message/error-message.d.ts +2 -2
  106. package/components/error-message/error-message.js +1 -1
  107. package/components/footer/footer.css +1 -1
  108. package/components/footer/footer.d.ts +2 -2
  109. package/components/footer/footer.js +1 -1
  110. package/components/form/form.css +1 -1
  111. package/components/form/form.stories.js +0 -1
  112. package/components/global/controls-height.d.ts +0 -1
  113. package/components/global/create-stateful-context.d.ts +5 -5
  114. package/components/global/create-stateful-context.js +1 -1
  115. package/components/global/dom.d.ts +2 -2
  116. package/components/global/focus-sensor-hoc.js +1 -1
  117. package/components/global/get-event-key.d.ts +1 -1
  118. package/components/global/react-dom-renderer.d.ts +2 -2
  119. package/components/global/react-dom-renderer.js +1 -1
  120. package/components/global/rerender-hoc.d.ts +2 -2
  121. package/components/global/rerender-hoc.js +1 -1
  122. package/components/global/theme.d.ts +3 -3
  123. package/components/global/theme.js +1 -1
  124. package/components/global/typescript-utils.d.ts +1 -1
  125. package/components/grid/col.d.ts +2 -2
  126. package/components/grid/col.js +1 -1
  127. package/components/grid/grid.d.ts +2 -2
  128. package/components/grid/grid.js +1 -1
  129. package/components/grid/row.d.ts +2 -2
  130. package/components/grid/row.js +1 -1
  131. package/components/group/group.d.ts +2 -2
  132. package/components/group/group.js +1 -1
  133. package/components/header/header.d.ts +2 -2
  134. package/components/header/header.js +1 -1
  135. package/components/header/logo.d.ts +2 -2
  136. package/components/header/logo.js +1 -1
  137. package/components/header/profile.d.ts +4 -3
  138. package/components/header/profile.js +2 -1
  139. package/components/header/services-link.d.ts +2 -2
  140. package/components/header/services-link.js +1 -1
  141. package/components/header/services.d.ts +2 -2
  142. package/components/header/services.js +1 -1
  143. package/components/header/smart-profile.d.ts +2 -2
  144. package/components/header/smart-profile.js +1 -1
  145. package/components/header/smart-services.d.ts +2 -2
  146. package/components/header/smart-services.js +1 -1
  147. package/components/header/tray-icon.d.ts +2 -2
  148. package/components/header/tray-icon.js +1 -1
  149. package/components/header/tray.d.ts +2 -2
  150. package/components/header/tray.js +1 -1
  151. package/components/heading/heading.d.ts +6 -6
  152. package/components/heading/heading.js +1 -1
  153. package/components/i18n/i18n-context.d.ts +1 -1
  154. package/components/i18n/i18n-context.js +2 -1
  155. package/components/icon/icon.d.ts +2 -2
  156. package/components/icon/icon.js +1 -1
  157. package/components/icon/icon__svg.d.ts +3 -3
  158. package/components/icon/icon__svg.js +1 -1
  159. package/components/input/input.css +5 -1
  160. package/components/input/input.d.ts +3 -2
  161. package/components/input/input.js +8 -6
  162. package/components/input-size/input-size.stories.js +0 -1
  163. package/components/island/adaptive-island-hoc.d.ts +15 -15
  164. package/components/island/adaptive-island-hoc.js +1 -1
  165. package/components/island/content.d.ts +3 -3
  166. package/components/island/content.js +1 -1
  167. package/components/island/header.d.ts +2 -2
  168. package/components/island/header.js +1 -1
  169. package/components/island/island.css +1 -1
  170. package/components/island/island.d.ts +14 -14
  171. package/components/island/island.js +1 -1
  172. package/components/island-legacy/content-legacy.d.ts +2 -2
  173. package/components/island-legacy/content-legacy.js +1 -1
  174. package/components/island-legacy/header-legacy.d.ts +2 -2
  175. package/components/island-legacy/header-legacy.js +1 -1
  176. package/components/island-legacy/island-legacy.d.ts +2 -2
  177. package/components/island-legacy/island-legacy.js +1 -1
  178. package/components/link/clickableLink.d.ts +2 -1
  179. package/components/link/clickableLink.js +2 -1
  180. package/components/link/link.d.ts +23 -23
  181. package/components/link/link.js +1 -1
  182. package/components/list/consts.d.ts +2 -1
  183. package/components/list/list.d.ts +11 -11
  184. package/components/list/list.js +1 -1
  185. package/components/list/list__custom.d.ts +2 -1
  186. package/components/list/list__custom.js +2 -1
  187. package/components/list/list__hint.d.ts +2 -2
  188. package/components/list/list__hint.js +1 -1
  189. package/components/list/list__item.d.ts +2 -2
  190. package/components/list/list__item.js +2 -2
  191. package/components/list/list__link.d.ts +2 -2
  192. package/components/list/list__link.js +1 -1
  193. package/components/list/list__separator.d.ts +2 -2
  194. package/components/list/list__separator.js +1 -1
  195. package/components/list/list__title.d.ts +2 -2
  196. package/components/list/list__title.js +1 -1
  197. package/components/loader/loader.d.ts +2 -2
  198. package/components/loader/loader.js +1 -1
  199. package/components/loader-inline/loader-inline.d.ts +2 -2
  200. package/components/loader-inline/loader-inline.js +1 -1
  201. package/components/loader-screen/loader-screen.d.ts +2 -2
  202. package/components/loader-screen/loader-screen.js +1 -1
  203. package/components/login-dialog/login-dialog.d.ts +2 -2
  204. package/components/login-dialog/login-dialog.js +1 -1
  205. package/components/login-dialog/service.js +0 -1
  206. package/components/markdown/markdown.d.ts +2 -2
  207. package/components/markdown/markdown.js +1 -1
  208. package/components/message/message.d.ts +2 -2
  209. package/components/message/message.js +1 -1
  210. package/components/pager/pager.d.ts +2 -1
  211. package/components/pager/pager.js +2 -1
  212. package/components/panel/panel.d.ts +2 -2
  213. package/components/panel/panel.js +1 -1
  214. package/components/popup/popup.d.ts +4 -3
  215. package/components/popup/popup.js +2 -1
  216. package/components/popup/popup.target.d.ts +3 -3
  217. package/components/popup/popup.target.js +1 -1
  218. package/components/popup-menu/popup-menu.d.ts +2 -2
  219. package/components/popup-menu/popup-menu.js +0 -1
  220. package/components/progress-bar/progress-bar.d.ts +2 -2
  221. package/components/progress-bar/progress-bar.js +1 -1
  222. package/components/query-assist/query-assist.d.ts +3 -2
  223. package/components/query-assist/query-assist.js +4 -3
  224. package/components/query-assist/query-assist__suggestions.d.ts +1 -2
  225. package/components/query-assist/query-assist__suggestions.js +0 -1
  226. package/components/radio/radio.d.ts +3 -3
  227. package/components/radio/radio.js +1 -1
  228. package/components/radio/radio__item.d.ts +9 -6
  229. package/components/radio/radio__item.js +10 -6
  230. package/components/select/select-popup.css +1 -0
  231. package/components/select/select.css +1 -1
  232. package/components/select/select.d.ts +5 -2
  233. package/components/select/select.js +5 -3
  234. package/components/select/select__filter.d.ts +2 -2
  235. package/components/select/select__filter.js +1 -1
  236. package/components/select/select__popup.d.ts +4 -35
  237. package/components/select/select__popup.js +4 -3
  238. package/components/shortcuts/core.d.ts +0 -1
  239. package/components/shortcuts/shortcuts-hoc.d.ts +12 -12
  240. package/components/shortcuts/shortcuts-hoc.js +2 -2
  241. package/components/slider/slider.d.ts +2 -1
  242. package/components/slider/slider.js +2 -1
  243. package/components/tab-trap/tab-trap.d.ts +2 -1
  244. package/components/tab-trap/tab-trap.js +2 -1
  245. package/components/table/cell.d.ts +2 -2
  246. package/components/table/cell.js +1 -1
  247. package/components/table/disable-hover-hoc.d.ts +13 -13
  248. package/components/table/disable-hover-hoc.js +1 -1
  249. package/components/table/header-cell.d.ts +2 -2
  250. package/components/table/header-cell.js +1 -1
  251. package/components/table/header.d.ts +3 -3
  252. package/components/table/header.js +1 -1
  253. package/components/table/multitable.d.ts +2 -2
  254. package/components/table/multitable.js +1 -1
  255. package/components/table/row-with-focus-sensor.d.ts +3 -3
  256. package/components/table/row-with-focus-sensor.js +1 -1
  257. package/components/table/row.d.ts +2 -1
  258. package/components/table/row.js +2 -1
  259. package/components/table/selection-shortcuts-hoc.js +1 -1
  260. package/components/table/smart-table.d.ts +44 -44
  261. package/components/table/smart-table.js +1 -1
  262. package/components/table/table.d.ts +6 -5
  263. package/components/table/table.js +2 -1
  264. package/components/table-legacy/table-legacy.css +1 -1
  265. package/components/tabs/collapsible-more.d.ts +4 -4
  266. package/components/tabs/collapsible-more.js +8 -8
  267. package/components/tabs/collapsible-tab.d.ts +2 -1
  268. package/components/tabs/collapsible-tab.js +1 -1
  269. package/components/tabs/collapsible-tabs.d.ts +4 -4
  270. package/components/tabs/collapsible-tabs.js +14 -14
  271. package/components/tabs/custom-item.d.ts +1 -1
  272. package/components/tabs/dumb-tabs.d.ts +2 -1
  273. package/components/tabs/dumb-tabs.js +2 -1
  274. package/components/tabs/smart-tabs.d.ts +2 -2
  275. package/components/tabs/smart-tabs.js +1 -1
  276. package/components/tabs/tab-link.d.ts +3 -3
  277. package/components/tabs/tab-link.js +1 -1
  278. package/components/tabs/tab.d.ts +2 -2
  279. package/components/tabs/tab.js +1 -1
  280. package/components/tag/tag.d.ts +2 -1
  281. package/components/tag/tag.js +2 -1
  282. package/components/tags-input/tags-input.d.ts +3 -2
  283. package/components/tags-input/tags-input.js +2 -1
  284. package/components/tags-list/tags-list.d.ts +2 -1
  285. package/components/tags-list/tags-list.js +2 -1
  286. package/components/text/text.d.ts +2 -2
  287. package/components/text/text.js +1 -1
  288. package/components/toggle/toggle.d.ts +2 -2
  289. package/components/toggle/toggle.js +1 -1
  290. package/components/tooltip/tooltip.d.ts +2 -1
  291. package/components/tooltip/tooltip.js +2 -1
  292. package/components/user-agreement/service.js +2 -3
  293. package/components/user-agreement/user-agreement.d.ts +2 -2
  294. package/components/user-agreement/user-agreement.js +1 -1
  295. package/components/user-card/card.d.ts +2 -1
  296. package/components/user-card/card.js +2 -1
  297. package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
  298. package/components/user-card/smart-user-card-tooltip.js +1 -1
  299. package/components/user-card/tooltip.d.ts +3 -3
  300. package/components/user-card/tooltip.js +1 -1
  301. package/components/user-card/user-card.css +1 -1
  302. package/package.json +32 -31
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, ComponentType } from 'react';
1
+ import { ReactNode, ComponentType } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ClickableLinkProps } from './clickableLink';
4
4
  /**
@@ -15,20 +15,20 @@ export interface LinkBaseProps {
15
15
  export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
16
16
  export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): {
17
17
  new (props: LinkProps<P>): {
18
- render(): React.JSX.Element;
18
+ render(): import("react").JSX.Element;
19
19
  context: unknown;
20
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
20
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
21
21
  forceUpdate(callback?: (() => void) | undefined): void;
22
22
  readonly props: Readonly<LinkProps<P>>;
23
23
  state: Readonly<{}>;
24
24
  refs: {
25
- [key: string]: React.ReactInstance;
25
+ [key: string]: import("react").ReactInstance;
26
26
  };
27
27
  componentDidMount?(): void;
28
28
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
29
29
  componentWillUnmount?(): void;
30
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
31
- getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
30
+ componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
31
+ getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
32
32
  componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
33
33
  componentWillMount?(): void;
34
34
  UNSAFE_componentWillMount?(): void;
@@ -38,20 +38,20 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
38
38
  UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
39
39
  };
40
40
  new (props: LinkProps<P>, context: any): {
41
- render(): React.JSX.Element;
41
+ render(): import("react").JSX.Element;
42
42
  context: unknown;
43
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
43
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
44
44
  forceUpdate(callback?: (() => void) | undefined): void;
45
45
  readonly props: Readonly<LinkProps<P>>;
46
46
  state: Readonly<{}>;
47
47
  refs: {
48
- [key: string]: React.ReactInstance;
48
+ [key: string]: import("react").ReactInstance;
49
49
  };
50
50
  componentDidMount?(): void;
51
51
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
52
52
  componentWillUnmount?(): void;
53
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
54
- getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
53
+ componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
54
+ getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
55
55
  componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
56
56
  componentWillMount?(): void;
57
57
  UNSAFE_componentWillMount?(): void;
@@ -72,24 +72,24 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
72
72
  onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
73
73
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
74
74
  };
75
- contextType?: React.Context<any> | undefined;
75
+ contextType?: import("react").Context<any> | undefined;
76
76
  };
77
77
  declare const _default: {
78
78
  new (props: LinkProps<ClickableLinkProps>): {
79
- render(): React.JSX.Element;
79
+ render(): import("react").JSX.Element;
80
80
  context: unknown;
81
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
81
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
82
82
  forceUpdate(callback?: (() => void) | undefined): void;
83
83
  readonly props: Readonly<LinkProps<ClickableLinkProps>>;
84
84
  state: Readonly<{}>;
85
85
  refs: {
86
- [key: string]: React.ReactInstance;
86
+ [key: string]: import("react").ReactInstance;
87
87
  };
88
88
  componentDidMount?(): void;
89
89
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
90
90
  componentWillUnmount?(): void;
91
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
92
- getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
91
+ componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
92
+ getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
93
93
  componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
94
94
  componentWillMount?(): void;
95
95
  UNSAFE_componentWillMount?(): void;
@@ -99,20 +99,20 @@ declare const _default: {
99
99
  UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
100
100
  };
101
101
  new (props: LinkProps<ClickableLinkProps>, context: any): {
102
- render(): React.JSX.Element;
102
+ render(): import("react").JSX.Element;
103
103
  context: unknown;
104
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
104
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
105
105
  forceUpdate(callback?: (() => void) | undefined): void;
106
106
  readonly props: Readonly<LinkProps<ClickableLinkProps>>;
107
107
  state: Readonly<{}>;
108
108
  refs: {
109
- [key: string]: React.ReactInstance;
109
+ [key: string]: import("react").ReactInstance;
110
110
  };
111
111
  componentDidMount?(): void;
112
112
  shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
113
113
  componentWillUnmount?(): void;
114
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
115
- getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
114
+ componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
115
+ getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
116
116
  componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
117
117
  componentWillMount?(): void;
118
118
  UNSAFE_componentWillMount?(): void;
@@ -133,6 +133,6 @@ declare const _default: {
133
133
  onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
134
134
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
135
135
  };
136
- contextType?: React.Context<any> | undefined;
136
+ contextType?: import("react").Context<any> | undefined;
137
137
  };
138
138
  export default _default;
@@ -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';
@@ -1,4 +1,5 @@
1
- import React, { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
1
+ import { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
2
+ import * as React from 'react';
2
3
  import { LinkProps } from '../link/link';
3
4
  import { IconType, Size } from '../icon/icon';
4
5
  import { ClickableLinkProps } from '../link/clickableLink';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name List
3
3
  */
4
- import React, { Component, ReactNode, SyntheticEvent } from 'react';
4
+ import { Component, ReactNode, SyntheticEvent } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import VirtualizedList, { ListRowProps } from 'react-virtualized/dist/es/List';
7
7
  import { Size } from 'react-virtualized/dist/es/AutoSizer';
@@ -48,17 +48,17 @@ export interface ListProps<T = unknown> {
48
48
  preventListOverscroll?: boolean | undefined;
49
49
  }
50
50
  export declare const ActiveItemContext: {
51
- ValueContext: React.Context<string | undefined>;
52
- UpdateContext: React.Context<(value: string | undefined) => void>;
51
+ ValueContext: import("react").Context<string | undefined>;
52
+ UpdateContext: import("react").Context<(value: string | undefined) => void>;
53
53
  Provider: {
54
- ({ children }: import("../global/create-stateful-context").ProviderProps): React.JSX.Element;
54
+ ({ children }: import("../global/create-stateful-context").ProviderProps): import("react").JSX.Element;
55
55
  propTypes: {
56
56
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
57
57
  };
58
58
  displayName: string;
59
59
  };
60
- useUpdate: (value: string | undefined, skipUpdate?: boolean | undefined) => void;
61
- Updater: React.MemoExoticComponent<{
60
+ useUpdate: (value: string | undefined, skipUpdate?: boolean) => void;
61
+ Updater: import("react").MemoExoticComponent<{
62
62
  ({ value, skipUpdate }: import("../global/create-stateful-context").UpdaterProps<string | undefined>): null;
63
63
  displayName: string;
64
64
  }>;
@@ -189,19 +189,19 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
189
189
  getVisibleListHeight(maxHeight: number): number;
190
190
  private _deprecatedGenerateKeyFromContent;
191
191
  getId(item: ListDataItem<T> | null): string | undefined;
192
- renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => React.JSX.Element;
192
+ renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react").JSX.Element;
193
193
  addItemDataTestToProp: (props: ListDataItemProps<T>) => ListDataItemProps<T>;
194
194
  virtualizedListRef: (el: VirtualizedList | null) => void;
195
195
  containerRef: (el: HTMLElement | null) => void;
196
196
  private _inner?;
197
197
  get inner(): HTMLElement | null | undefined;
198
- renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams): React.JSX.Element;
199
- renderVirtualized(maxHeight: number | null | undefined, rowCount: number): React.JSX.Element;
200
- renderSimple(maxHeight: number | null | undefined, rowCount: number): React.JSX.Element;
198
+ renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams): import("react").JSX.Element;
199
+ renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
200
+ renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
201
201
  id: string;
202
202
  shortcutsScope: string;
203
203
  shortcutsMap: ShortcutsMap;
204
204
  /** @override */
205
- render(): React.JSX.Element;
205
+ render(): import("react").JSX.Element;
206
206
  }
207
207
  export type ListAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof List, ListProps<T>>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name List
3
3
  */
4
- import React, { Component } from 'react';
4
+ import { Component } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import VirtualizedList from 'react-virtualized/dist/es/List';
@@ -1,4 +1,5 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
+ import * as React from 'react';
2
3
  import { ListDataItemProps } from './consts';
3
4
  export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
4
5
  handleKeyPress: (event: React.KeyboardEvent) => void;
@@ -1,4 +1,5 @@
1
- import React, { PureComponent } from 'react';
1
+ import { PureComponent } from 'react';
2
+ import * as React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import classNames from 'classnames';
4
5
  import dataTests from '../global/data-tests';
@@ -1,4 +1,4 @@
1
- import React, { PureComponent, ReactNode } from 'react';
1
+ import { PureComponent, ReactNode } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface ListHintProps {
4
4
  label: ReactNode;
@@ -11,5 +11,5 @@ export default class ListHint extends PureComponent<ListHintProps> {
11
11
  static propTypes: {
12
12
  label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
13
  };
14
- render(): React.JSX.Element;
14
+ render(): import("react").JSX.Element;
15
15
  }
@@ -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';
@@ -97,8 +98,8 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
97
98
  uid: string;
98
99
  calculateDisplay: (prevState: PopupState) => {
99
100
  display: Display;
100
- client?: boolean | undefined;
101
- direction?: Directions | undefined;
101
+ client?: boolean;
102
+ direction?: Directions;
102
103
  };
103
104
  static PopupProps: {
104
105
  Directions: typeof Directions;
@@ -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>;