@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.4

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 (264) hide show
  1. package/components/_helpers/anchor.js +0 -5
  2. package/components/_helpers/caption.js +1 -5
  3. package/components/_helpers/card.js +0 -28
  4. package/components/_helpers/icon__svg.js +0 -6
  5. package/components/_helpers/input.js +0 -21
  6. package/components/_helpers/select__filter.js +0 -8
  7. package/components/_helpers/services-link.js +1 -11
  8. package/components/_helpers/sidebar.js +0 -9
  9. package/components/_helpers/tab-link.js +0 -6
  10. package/components/_helpers/theme.js +1 -1
  11. package/components/_helpers/title.js +0 -15
  12. package/components/alert/alert.d.ts +7 -24
  13. package/components/alert/alert.js +0 -24
  14. package/components/alert/container.d.ts +0 -5
  15. package/components/alert/container.js +1 -6
  16. package/components/alert-service/alert-service.js +0 -1
  17. package/components/auth/auth.js +0 -1
  18. package/components/auth/auth__core.d.ts +3 -3
  19. package/components/auth/auth__core.js +28 -20
  20. package/components/auth/down-notification.js +0 -9
  21. package/components/auth/iframe-flow.js +0 -1
  22. package/components/auth/storage.js +0 -1
  23. package/components/auth-dialog/auth-dialog.d.ts +0 -18
  24. package/components/auth-dialog/auth-dialog.js +7 -25
  25. package/components/auth-dialog-service/auth-dialog-service.js +4 -5
  26. package/components/avatar/avatar.d.ts +0 -13
  27. package/components/avatar/avatar.js +0 -13
  28. package/components/avatar/fallback-avatar.d.ts +1 -10
  29. package/components/avatar/fallback-avatar.js +0 -6
  30. package/components/badge/badge.d.ts +0 -10
  31. package/components/badge/badge.js +1 -11
  32. package/components/button/button.d.ts +0 -21
  33. package/components/button/button.js +0 -21
  34. package/components/button-group/button-group.d.ts +0 -5
  35. package/components/button-group/button-group.js +1 -6
  36. package/components/button-group/caption.d.ts +0 -4
  37. package/components/button-group/caption.js +0 -1
  38. package/components/button-set/button-set.d.ts +0 -6
  39. package/components/button-set/button-set.js +1 -7
  40. package/components/button-toolbar/button-toolbar.d.ts +0 -6
  41. package/components/button-toolbar/button-toolbar.js +1 -7
  42. package/components/checkbox/checkbox.d.ts +0 -19
  43. package/components/checkbox/checkbox.js +0 -18
  44. package/components/clipboard/clipboard.js +0 -1
  45. package/components/code/code.d.ts +0 -12
  46. package/components/code/code.js +0 -12
  47. package/components/confirm/confirm.d.ts +0 -14
  48. package/components/confirm/confirm.js +10 -24
  49. package/components/confirm-service/confirm-service.js +0 -1
  50. package/components/content-layout/content-layout.d.ts +0 -7
  51. package/components/content-layout/content-layout.js +0 -7
  52. package/components/content-layout/sidebar.d.ts +0 -9
  53. package/components/content-layout/sidebar.js +0 -1
  54. package/components/contenteditable/contenteditable.d.ts +1 -22
  55. package/components/contenteditable/contenteditable.js +1 -16
  56. package/components/control-label/control-label.js +0 -6
  57. package/components/data-list/data-list.d.ts +0 -2
  58. package/components/data-list/data-list.js +2 -23
  59. package/components/data-list/data-list.mock.js +0 -1
  60. package/components/data-list/item.js +0 -26
  61. package/components/data-list/title.d.ts +2 -2
  62. package/components/data-list/title.js +0 -2
  63. package/components/date-picker/consts.d.ts +0 -2
  64. package/components/date-picker/consts.js +1 -3
  65. package/components/date-picker/date-input.d.ts +0 -20
  66. package/components/date-picker/date-input.js +0 -23
  67. package/components/date-picker/date-picker.d.ts +0 -29
  68. package/components/date-picker/date-picker.js +3 -40
  69. package/components/date-picker/date-popup.d.ts +0 -22
  70. package/components/date-picker/date-popup.js +1 -24
  71. package/components/date-picker/day.d.ts +0 -14
  72. package/components/date-picker/day.js +1 -15
  73. package/components/date-picker/month-names.d.ts +1 -11
  74. package/components/date-picker/month-names.js +2 -14
  75. package/components/date-picker/month-slider.d.ts +0 -9
  76. package/components/date-picker/month-slider.js +1 -10
  77. package/components/date-picker/month.d.ts +1 -9
  78. package/components/date-picker/month.js +1 -6
  79. package/components/date-picker/months.d.ts +1 -9
  80. package/components/date-picker/months.js +1 -6
  81. package/components/date-picker/weekdays.d.ts +2 -8
  82. package/components/date-picker/weekdays.js +0 -4
  83. package/components/date-picker/years.d.ts +0 -6
  84. package/components/date-picker/years.js +1 -7
  85. package/components/dialog/dialog.d.ts +0 -20
  86. package/components/dialog/dialog.js +2 -24
  87. package/components/dropdown/anchor.d.ts +1 -8
  88. package/components/dropdown/anchor.js +0 -1
  89. package/components/dropdown/dropdown.d.ts +4 -22
  90. package/components/dropdown/dropdown.js +0 -22
  91. package/components/dropdown-menu/dropdown-menu.js +9 -33
  92. package/components/editable-heading/editable-heading.js +0 -2
  93. package/components/error-bubble/error-bubble.d.ts +0 -6
  94. package/components/error-bubble/error-bubble.js +1 -7
  95. package/components/error-message/error-message.d.ts +0 -10
  96. package/components/error-message/error-message.js +1 -11
  97. package/components/footer/footer.js +0 -15
  98. package/components/global/create-stateful-context.d.ts +0 -4
  99. package/components/global/create-stateful-context.js +0 -4
  100. package/components/global/focus-sensor-hoc.js +7 -27
  101. package/components/global/react-dom-renderer.d.ts +0 -5
  102. package/components/global/react-dom-renderer.js +0 -5
  103. package/components/global/theme.d.ts +1 -0
  104. package/components/global/theme.js +1 -2
  105. package/components/grid/col.d.ts +0 -14
  106. package/components/grid/col.js +1 -16
  107. package/components/grid/grid.d.ts +0 -5
  108. package/components/grid/grid.js +1 -6
  109. package/components/grid/row.d.ts +0 -18
  110. package/components/grid/row.js +1 -19
  111. package/components/group/group.d.ts +0 -5
  112. package/components/group/group.js +1 -6
  113. package/components/header/header-icon.d.ts +0 -22
  114. package/components/header/header-icon.js +1 -6
  115. package/components/header/header.d.ts +0 -6
  116. package/components/header/header.js +0 -7
  117. package/components/header/logo.d.ts +0 -4
  118. package/components/header/logo.js +0 -4
  119. package/components/header/profile.d.ts +1 -39
  120. package/components/header/profile.js +1 -40
  121. package/components/header/services-link.d.ts +0 -10
  122. package/components/header/services-link.js +0 -1
  123. package/components/header/services.d.ts +0 -14
  124. package/components/header/services.js +1 -13
  125. package/components/header/smart-profile.d.ts +0 -9
  126. package/components/header/smart-profile.js +19 -28
  127. package/components/header/smart-services.d.ts +0 -4
  128. package/components/header/smart-services.js +17 -51
  129. package/components/header/tray.d.ts +0 -5
  130. package/components/header/tray.js +1 -6
  131. package/components/heading/heading.js +0 -6
  132. package/components/icon/icon.d.ts +0 -11
  133. package/components/icon/icon.js +0 -11
  134. package/components/icon/icon__svg.d.ts +0 -8
  135. package/components/icon/icon__svg.js +0 -1
  136. package/components/icon/index.js +0 -1
  137. package/components/input/input.js +0 -2
  138. package/components/island/adaptive-island-hoc.d.ts +0 -1
  139. package/components/island/adaptive-island-hoc.js +3 -4
  140. package/components/island/content.d.ts +0 -10
  141. package/components/island/content.js +2 -12
  142. package/components/island/header.js +2 -10
  143. package/components/island/island.d.ts +0 -9
  144. package/components/island/island.js +1 -9
  145. package/components/island-legacy/content-legacy.d.ts +0 -5
  146. package/components/island-legacy/content-legacy.js +1 -6
  147. package/components/island-legacy/header-legacy.d.ts +0 -5
  148. package/components/island-legacy/header-legacy.js +1 -6
  149. package/components/island-legacy/island-legacy.d.ts +0 -5
  150. package/components/island-legacy/island-legacy.js +1 -6
  151. package/components/link/clickableLink.d.ts +0 -9
  152. package/components/link/clickableLink.js +0 -9
  153. package/components/link/link.d.ts +0 -25
  154. package/components/link/link.js +3 -16
  155. package/components/list/list.d.ts +0 -32
  156. package/components/list/list.js +1 -31
  157. package/components/list/list__custom.js +0 -17
  158. package/components/list/list__hint.d.ts +0 -4
  159. package/components/list/list__hint.js +0 -5
  160. package/components/list/list__item.js +0 -33
  161. package/components/list/list__link.js +2 -13
  162. package/components/list/list__separator.js +0 -6
  163. package/components/list/list__title.js +0 -7
  164. package/components/list/list__users-groups-source.js +0 -2
  165. package/components/loader/loader.d.ts +0 -10
  166. package/components/loader/loader.js +0 -10
  167. package/components/loader-inline/loader-inline.d.ts +0 -6
  168. package/components/loader-inline/loader-inline.js +1 -7
  169. package/components/loader-screen/loader-screen.d.ts +0 -6
  170. package/components/loader-screen/loader-screen.js +1 -7
  171. package/components/login-dialog/login-dialog.d.ts +0 -11
  172. package/components/login-dialog/login-dialog.js +12 -23
  173. package/components/login-dialog/service.js +3 -2
  174. package/components/markdown/markdown.js +0 -5
  175. package/components/message/message.js +0 -16
  176. package/components/pager/pager.js +0 -20
  177. package/components/panel/panel.d.ts +0 -5
  178. package/components/panel/panel.js +1 -6
  179. package/components/popup/popup.js +0 -41
  180. package/components/popup/popup.target.js +0 -5
  181. package/components/popup-menu/popup-menu.js +1 -12
  182. package/components/progress-bar/progress-bar.d.ts +19 -33
  183. package/components/progress-bar/progress-bar.js +0 -33
  184. package/components/query-assist/query-assist.d.ts +63 -93
  185. package/components/query-assist/query-assist.js +0 -94
  186. package/components/query-assist/query-assist__suggestions.js +0 -2
  187. package/components/radio/radio.d.ts +0 -8
  188. package/components/radio/radio.js +0 -8
  189. package/components/radio/radio__item.d.ts +0 -9
  190. package/components/radio/radio__item.js +0 -10
  191. package/components/select/select.js +0 -65
  192. package/components/select/select__filter.js +0 -2
  193. package/components/select/select__popup.js +1 -52
  194. package/components/shortcuts/core.js +1 -1
  195. package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
  196. package/components/shortcuts/shortcuts-hoc.js +2 -7
  197. package/components/shortcuts/shortcuts.d.ts +0 -8
  198. package/components/shortcuts/shortcuts.js +0 -8
  199. package/components/slider/slider.js +0 -1
  200. package/components/storage/storage.js +0 -1
  201. package/components/storage/storage__local.js +0 -1
  202. package/components/style.css +1 -1
  203. package/components/tab-trap/tab-trap.js +0 -8
  204. package/components/table/cell.d.ts +0 -6
  205. package/components/table/cell.js +1 -7
  206. package/components/table/disable-hover-hoc.d.ts +0 -1
  207. package/components/table/disable-hover-hoc.js +1 -1
  208. package/components/table/header-cell.d.ts +0 -10
  209. package/components/table/header-cell.js +0 -10
  210. package/components/table/header.d.ts +0 -15
  211. package/components/table/header.js +0 -16
  212. package/components/table/multitable.d.ts +0 -4
  213. package/components/table/multitable.js +0 -4
  214. package/components/table/row-with-focus-sensor.d.ts +2 -2
  215. package/components/table/row-with-focus-sensor.js +0 -3
  216. package/components/table/row.js +0 -35
  217. package/components/table/selection-shortcuts-hoc.js +3 -22
  218. package/components/table/simple-table.d.ts +0 -44
  219. package/components/table/simple-table.js +1 -7
  220. package/components/table/smart-table.d.ts +0 -48
  221. package/components/table/smart-table.js +1 -10
  222. package/components/table/table.d.ts +0 -2
  223. package/components/table/table.js +3 -52
  224. package/components/tabs/collapsible-more.d.ts +1 -9
  225. package/components/tabs/collapsible-more.js +0 -24
  226. package/components/tabs/collapsible-tab.js +1 -9
  227. package/components/tabs/collapsible-tabs.d.ts +2 -29
  228. package/components/tabs/collapsible-tabs.js +0 -13
  229. package/components/tabs/custom-item.d.ts +1 -7
  230. package/components/tabs/custom-item.js +0 -5
  231. package/components/tabs/dumb-tabs.d.ts +0 -11
  232. package/components/tabs/dumb-tabs.js +0 -12
  233. package/components/tabs/smart-tabs.d.ts +0 -6
  234. package/components/tabs/smart-tabs.js +0 -7
  235. package/components/tabs/tab-link.d.ts +0 -8
  236. package/components/tabs/tab-link.js +0 -1
  237. package/components/tabs/tab.d.ts +0 -8
  238. package/components/tabs/tab.js +0 -9
  239. package/components/tabs/tabs.js +0 -2
  240. package/components/tag/tag.d.ts +0 -17
  241. package/components/tag/tag.js +0 -17
  242. package/components/tags-input/tags-input.d.ts +7 -33
  243. package/components/tags-input/tags-input.js +1 -34
  244. package/components/tags-list/tags-list.d.ts +0 -13
  245. package/components/tags-list/tags-list.js +0 -13
  246. package/components/text/text.d.ts +0 -7
  247. package/components/text/text.js +0 -7
  248. package/components/toggle/toggle.d.ts +0 -15
  249. package/components/toggle/toggle.js +0 -15
  250. package/components/tooltip/tooltip.d.ts +0 -9
  251. package/components/tooltip/tooltip.js +0 -9
  252. package/components/user-agreement/service.js +0 -1
  253. package/components/user-agreement/user-agreement.d.ts +0 -18
  254. package/components/user-agreement/user-agreement.js +11 -29
  255. package/components/user-card/card.d.ts +0 -35
  256. package/components/user-card/card.js +0 -1
  257. package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
  258. package/components/user-card/smart-user-card-tooltip.js +0 -5
  259. package/components/user-card/tooltip.d.ts +0 -9
  260. package/components/user-card/tooltip.js +0 -9
  261. package/components/user-card/user-card.js +0 -1
  262. package/package.json +1 -2
  263. package/components/global/prop-types.d.ts +0 -4
  264. package/components/global/prop-types.js +0 -7
@@ -1,6 +1,5 @@
1
1
  import { Component, ComponentType, HTMLAttributes, ReactNode } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { TagAttrs } from '../tag/tag';
5
4
  declare function noop(): void;
6
5
  export interface TagType extends Omit<TagAttrs, 'onClick' | 'children'> {
@@ -21,18 +20,6 @@ export interface TagsListProps<T extends TagType> extends HTMLAttributes<HTMLEle
21
20
  * @name Tags List
22
21
  */
23
22
  export default class TagsList<T extends TagType> extends Component<TagsListProps<T>> {
24
- static propTypes: {
25
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
- tags: PropTypes.Requireable<any[]>;
27
- customTagComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
28
- activeIndex: PropTypes.Requireable<number>;
29
- canNotBeEmpty: PropTypes.Requireable<boolean>;
30
- disabled: PropTypes.Requireable<boolean>;
31
- handleClick: PropTypes.Requireable<(...args: any[]) => any>;
32
- handleRemove: PropTypes.Requireable<(...args: any[]) => any>;
33
- className: PropTypes.Requireable<string>;
34
- tagClassName: PropTypes.Requireable<string>;
35
- };
36
23
  static defaultProps: {
37
24
  customTagComponent: null;
38
25
  canNotBeEmpty: boolean;
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { Component, createElement } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
5
4
  import Tag from '../tag/tag.js';
6
5
  import { jsxs } from 'react/jsx-runtime';
@@ -65,18 +64,6 @@ class TagsList extends Component {
65
64
  }));
66
65
  }
67
66
  }
68
- _defineProperty(TagsList, "propTypes", {
69
- children: PropTypes.node,
70
- tags: PropTypes.array,
71
- customTagComponent: PropTypes.elementType,
72
- activeIndex: PropTypes.number,
73
- canNotBeEmpty: PropTypes.bool,
74
- disabled: PropTypes.bool,
75
- handleClick: PropTypes.func,
76
- handleRemove: PropTypes.func,
77
- className: PropTypes.string,
78
- tagClassName: PropTypes.string
79
- });
80
67
  _defineProperty(TagsList, "defaultProps", {
81
68
  customTagComponent: null,
82
69
  canNotBeEmpty: false,
@@ -1,5 +1,4 @@
1
1
  import { Component, HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  type TextSize = 's' | 'm' | 'l';
4
3
  export interface TextProps extends HTMLAttributes<HTMLElement> {
5
4
  info?: boolean | null | undefined;
@@ -12,12 +11,6 @@ declare const TextSize: Record<string, TextSize>;
12
11
  * @name Text
13
12
  */
14
13
  export default class Text extends Component<TextProps> {
15
- static propTypes: {
16
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- info: PropTypes.Requireable<boolean>;
18
- size: PropTypes.Requireable<TextSize>;
19
- className: PropTypes.Requireable<string>;
20
- };
21
14
  static Size: Record<string, TextSize>;
22
15
  render(): import("react").JSX.Element;
23
16
  }
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { Component } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -40,12 +39,6 @@ class Text extends Component {
40
39
  }));
41
40
  }
42
41
  }
43
- _defineProperty(Text, "propTypes", {
44
- children: PropTypes.node,
45
- info: PropTypes.bool,
46
- size: PropTypes.oneOf(Object.keys(TextSize).map(it => TextSize[it])),
47
- className: PropTypes.string
48
- });
49
42
  _defineProperty(Text, "Size", TextSize);
50
43
 
51
44
  export { Text as default };
@@ -1,5 +1,4 @@
1
1
  import { InputHTMLAttributes, PureComponent, ReactNode } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  export declare const Size: {
4
3
  Size14: string;
5
4
  Size16: string;
@@ -15,20 +14,6 @@ export interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
15
14
  help?: ReactNode;
16
15
  }
17
16
  declare class Toggle extends PureComponent<ToggleProps> {
18
- static propTypes: {
19
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
- name: PropTypes.Requireable<string>;
21
- className: PropTypes.Requireable<string>;
22
- title: PropTypes.Requireable<string>;
23
- leftLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
24
- defaultChecked: PropTypes.Requireable<boolean>;
25
- checked: PropTypes.Requireable<boolean>;
26
- disabled: PropTypes.Requireable<boolean>;
27
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
28
- onTransitionEnd: PropTypes.Requireable<(...args: any[]) => any>;
29
- size: PropTypes.Requireable<string>;
30
- 'data-test': PropTypes.Requireable<string>;
31
- };
32
17
  static defaultProps: {
33
18
  size: string;
34
19
  };
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { PureComponent } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
5
4
  import joinDataTestAttributes from '../global/data-tests.js';
6
5
  import ControlHelp from '../control-help/control-help.js';
@@ -64,20 +63,6 @@ class Toggle extends PureComponent {
64
63
  });
65
64
  }
66
65
  }
67
- _defineProperty(Toggle, "propTypes", {
68
- children: PropTypes.node,
69
- name: PropTypes.string,
70
- className: PropTypes.string,
71
- title: PropTypes.string,
72
- leftLabel: PropTypes.node,
73
- defaultChecked: PropTypes.bool,
74
- checked: PropTypes.bool,
75
- disabled: PropTypes.bool,
76
- onChange: PropTypes.func,
77
- onTransitionEnd: PropTypes.func,
78
- size: PropTypes.oneOf(Object.values(Size)),
79
- 'data-test': PropTypes.string
80
- });
81
66
  _defineProperty(Toggle, "defaultProps", {
82
67
  size: Size.Size14
83
68
  });
@@ -1,6 +1,5 @@
1
1
  import { AllHTMLAttributes, Component, ReactNode } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Popup, { PopupAttrs } from '../popup/popup';
5
4
  import { Listeners } from '../global/dom';
6
5
  interface Context {
@@ -20,14 +19,6 @@ export interface TooltipProps extends Omit<AllHTMLAttributes<HTMLSpanElement>, '
20
19
  * @name Tooltip
21
20
  */
22
21
  export default class Tooltip extends Component<TooltipProps> {
23
- static propTypes: {
24
- delay: PropTypes.Requireable<number>;
25
- selfOverflowOnly: PropTypes.Requireable<boolean>;
26
- popupProps: PropTypes.Requireable<object>;
27
- title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
28
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
29
- 'data-test': PropTypes.Requireable<string>;
30
- };
31
22
  static defaultProps: {
32
23
  title: string;
33
24
  selfOverflowOnly: boolean;
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component, createContext } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import Popup from '../popup/popup.js';
7
6
  import { Listeners } from '../global/dom.js';
@@ -181,14 +180,6 @@ class Tooltip extends Component {
181
180
  });
182
181
  }
183
182
  }
184
- _defineProperty(Tooltip, "propTypes", {
185
- delay: PropTypes.number,
186
- selfOverflowOnly: PropTypes.bool,
187
- popupProps: PropTypes.object,
188
- title: PropTypes.node,
189
- children: PropTypes.node,
190
- 'data-test': PropTypes.string
191
- });
192
183
  _defineProperty(Tooltip, "defaultProps", {
193
184
  title: '',
194
185
  selfOverflowOnly: false,
@@ -17,7 +17,6 @@ import '../alert/container.js';
17
17
  import 'react';
18
18
  import 'react-dom';
19
19
  import 'classnames';
20
- import 'prop-types';
21
20
  import '../global/data-tests.js';
22
21
  import 'core-js/modules/es.array.reduce.js';
23
22
  import '../link/clickableLink.js';
@@ -2,7 +2,6 @@
2
2
  * @name User Agreement
3
3
  */
4
4
  import { PureComponent, ReactNode } from 'react';
5
- import PropTypes from 'prop-types';
6
5
  declare function noop(): void;
7
6
  export interface UserAgreementTranslations {
8
7
  userAgreement: string;
@@ -27,23 +26,6 @@ export interface UserAgreementProps {
27
26
  * A component that displays a user agreement dialog.
28
27
  */
29
28
  export default class UserAgreement extends PureComponent<UserAgreementProps> {
30
- static propTypes: {
31
- show: PropTypes.Requireable<boolean>;
32
- preview: PropTypes.Requireable<boolean>;
33
- onAccept: PropTypes.Requireable<(...args: any[]) => any>;
34
- onDecline: PropTypes.Requireable<(...args: any[]) => any>;
35
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
36
- onRemindLater: PropTypes.Requireable<(...args: any[]) => any>;
37
- translations: PropTypes.Requireable<PropTypes.InferProps<{
38
- userAgreement: PropTypes.Validator<string>;
39
- accept: PropTypes.Validator<string>;
40
- decline: PropTypes.Validator<string>;
41
- close: PropTypes.Validator<string>;
42
- scrollToAccept: PropTypes.Validator<string>;
43
- remindLater: PropTypes.Validator<string>;
44
- }>>;
45
- className: PropTypes.Requireable<string>;
46
- };
47
29
  static defaultProps: {
48
30
  show: boolean;
49
31
  onAccept: typeof noop;
@@ -1,21 +1,25 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import Dialog from '../dialog/dialog.js';
7
- import '../island/island.js';
8
- import Panel from '../panel/panel.js';
9
- import { Button } from '../button/button.js';
10
- import { I18nContext } from '../i18n/i18n-context.js';
6
+ import 'core-js/modules/es.array.reduce.js';
11
7
  import { jsx, jsxs } from 'react/jsx-runtime';
12
8
  import HeaderWrapper from '../island/header.js';
13
9
  import ContentWrapper from '../island/content.js';
10
+ import Panel from '../panel/panel.js';
11
+ import { Button } from '../button/button.js';
12
+ import { I18nContext } from '../i18n/i18n-context.js';
14
13
  import 'react-dom';
15
14
  import '@jetbrains/icons/close';
16
- import '../global/get-uid.js';
15
+ import '../island/island.js';
17
16
  import '../global/data-tests.js';
18
- import 'core-js/modules/es.array.reduce.js';
17
+ import '../island/adaptive-island-hoc.js';
18
+ import '../global/linear-function.js';
19
+ import '../_helpers/island.js';
20
+ import 'element-resize-detector';
21
+ import '../global/schedule-raf.js';
22
+ import '../global/get-uid.js';
19
23
  import '../shortcuts/shortcuts.js';
20
24
  import '../shortcuts/core.js';
21
25
  import 'core-js/modules/es.regexp.exec.js';
@@ -27,11 +31,6 @@ import '../global/dom.js';
27
31
  import '../popup/popup.target.js';
28
32
  import '../_helpers/dialog__body-scroll-preventer.js';
29
33
  import 'scrollbar-width';
30
- import '../island/adaptive-island-hoc.js';
31
- import '../global/linear-function.js';
32
- import '../_helpers/island.js';
33
- import 'element-resize-detector';
34
- import '../global/schedule-raf.js';
35
34
  import '@jetbrains/icons/chevron-down';
36
35
  import '../icon/icon.js';
37
36
  import 'util-deprecate';
@@ -132,23 +131,6 @@ class UserAgreement extends PureComponent {
132
131
  });
133
132
  }
134
133
  }
135
- _defineProperty(UserAgreement, "propTypes", {
136
- show: PropTypes.bool,
137
- preview: PropTypes.bool,
138
- onAccept: PropTypes.func,
139
- onDecline: PropTypes.func,
140
- onClose: PropTypes.func,
141
- onRemindLater: PropTypes.func,
142
- translations: PropTypes.shape({
143
- userAgreement: PropTypes.string.isRequired,
144
- accept: PropTypes.string.isRequired,
145
- decline: PropTypes.string.isRequired,
146
- close: PropTypes.string.isRequired,
147
- scrollToAccept: PropTypes.string.isRequired,
148
- remindLater: PropTypes.string.isRequired
149
- }),
150
- className: PropTypes.string
151
- });
152
134
  _defineProperty(UserAgreement, "defaultProps", {
153
135
  show: false,
154
136
  onAccept: noop,
@@ -1,6 +1,5 @@
1
1
  import { HTMLAttributes, PureComponent, ReactElement } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  export interface UserCardUser {
5
4
  name: string;
6
5
  login: string;
@@ -29,40 +28,6 @@ export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
29
28
  'data-test'?: string | null | undefined;
30
29
  }
31
30
  export default class UserCard extends PureComponent<UserCardProps> {
32
- static propTypes: {
33
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
34
- info: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
- className: PropTypes.Requireable<string>;
36
- user: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
37
- name: PropTypes.Validator<string>;
38
- login: PropTypes.Validator<string>;
39
- avatarUrl: PropTypes.Validator<string>;
40
- email: PropTypes.Requireable<string>;
41
- href: PropTypes.Requireable<string>;
42
- online: PropTypes.Requireable<boolean>;
43
- banned: PropTypes.Requireable<boolean>;
44
- banReason: PropTypes.Requireable<string>;
45
- unverifiedEmail: PropTypes.Requireable<boolean>;
46
- }>>>;
47
- wording: PropTypes.Requireable<PropTypes.InferProps<{
48
- banned: PropTypes.Validator<string>;
49
- online: PropTypes.Validator<string>;
50
- offline: PropTypes.Validator<string>;
51
- copyToClipboard: PropTypes.Requireable<string>;
52
- copiedToClipboard: PropTypes.Requireable<string>;
53
- copingToClipboardError: PropTypes.Requireable<string>;
54
- unverified: PropTypes.Requireable<string>;
55
- }>>;
56
- translations: PropTypes.Requireable<PropTypes.InferProps<{
57
- banned: PropTypes.Validator<string>;
58
- online: PropTypes.Validator<string>;
59
- offline: PropTypes.Validator<string>;
60
- copyToClipboard: PropTypes.Requireable<string>;
61
- copiedToClipboard: PropTypes.Requireable<string>;
62
- copingToClipboardError: PropTypes.Requireable<string>;
63
- unverified: PropTypes.Requireable<string>;
64
- }>>;
65
- };
66
31
  static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
67
32
  context: React.ContextType<typeof UserCard.contextType>;
68
33
  copyEmail: () => void;
@@ -1,7 +1,6 @@
1
1
  import '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import 'react';
4
- import 'prop-types';
5
4
  import 'classnames';
6
5
  import '@jetbrains/icons/copy';
7
6
  import '../avatar/avatar.js';
@@ -1,15 +1,10 @@
1
1
  import { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { UserCardTooltipAttrs } from './tooltip';
4
3
  import { UserCardUser } from './card';
5
4
  export interface SmartUserCardTooltipProps extends UserCardTooltipAttrs {
6
5
  userDataSource: () => Promise<UserCardUser | null | undefined> | UserCardUser | null | undefined;
7
6
  }
8
7
  export default class SmartUserCardTooltip extends Component<SmartUserCardTooltipProps> {
9
- static propTypes: {
10
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
- userDataSource: PropTypes.Requireable<(...args: any[]) => any>;
12
- };
13
8
  state: {
14
9
  user: null;
15
10
  loading: boolean;
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import LoaderInline from '../loader-inline/loader-inline.js';
6
5
  import UserCardTooltip from './tooltip.js';
7
6
  import { m as modules_a4196c17 } from '../_helpers/card.js';
@@ -116,9 +115,5 @@ class SmartUserCardTooltip extends Component {
116
115
  }));
117
116
  }
118
117
  }
119
- _defineProperty(SmartUserCardTooltip, "propTypes", {
120
- children: PropTypes.node,
121
- userDataSource: PropTypes.func
122
- });
123
118
 
124
119
  export { SmartUserCardTooltip as default };
@@ -1,5 +1,4 @@
1
1
  import { Component, ReactElement, ReactNode } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { DropdownAttrs } from '../dropdown/dropdown';
4
3
  import { UserCardAttrs, UserCardUser } from './card';
5
4
  interface ChildrenProps {
@@ -14,14 +13,6 @@ export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | '
14
13
  renderNoUser: () => ReactNode;
15
14
  }
16
15
  export default class UserCardTooltip extends Component<UserCardTooltipProps> {
17
- static propTypes: {
18
- className: PropTypes.Requireable<string>;
19
- children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
20
- dropdownProps: PropTypes.Requireable<object>;
21
- user: PropTypes.Requireable<object>;
22
- renderUserCard: PropTypes.Requireable<(...args: any[]) => any>;
23
- renderNoUser: PropTypes.Requireable<(...args: any[]) => any>;
24
- };
25
16
  static defaultProps: {
26
17
  renderUserCard: (props: UserCardAttrs) => import("react").JSX.Element;
27
18
  renderNoUser: () => string;
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { Component } from 'react';
3
3
  import classNames from 'classnames';
4
- import PropTypes from 'prop-types';
5
4
  import Dropdown from '../dropdown/dropdown.js';
6
5
  import Popup from '../popup/popup.js';
7
6
  import { m as modules_a4196c17, U as UserCard } from '../_helpers/card.js';
@@ -89,14 +88,6 @@ class UserCardTooltip extends Component {
89
88
  }));
90
89
  }
91
90
  }
92
- _defineProperty(UserCardTooltip, "propTypes", {
93
- className: PropTypes.string,
94
- children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
95
- dropdownProps: PropTypes.object,
96
- user: PropTypes.object,
97
- renderUserCard: PropTypes.func,
98
- renderNoUser: PropTypes.func
99
- });
100
91
  _defineProperty(UserCardTooltip, "defaultProps", {
101
92
  renderUserCard: props => {
102
93
  const {
@@ -4,7 +4,6 @@ export { default as SmartUserCardTooltip } from './smart-user-card-tooltip.js';
4
4
  import '../_helpers/_rollupPluginBabelHelpers.js';
5
5
  import 'core-js/modules/web.dom-collections.iterator.js';
6
6
  import 'react';
7
- import 'prop-types';
8
7
  import 'classnames';
9
8
  import '@jetbrains/icons/copy';
10
9
  import '../avatar/avatar.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "7.0.0-beta.3",
3
+ "version": "7.0.0-beta.4",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -101,7 +101,6 @@
101
101
  "highlight.js": "^10.7.2",
102
102
  "just-debounce-it": "^3.2.0",
103
103
  "memoize-one": "^6.0.0",
104
- "prop-types": "^15.8.1",
105
104
  "react-movable": "^3.3.1",
106
105
  "react-virtualized": "^9.22.5",
107
106
  "react-waypoint": "^10.3.0",
@@ -1,4 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export declare const refObject: <T>(value: PropTypes.Validator<T>) => PropTypes.Requireable<PropTypes.InferProps<{
3
- current: PropTypes.Validator<T>;
4
- }>>;
@@ -1,7 +0,0 @@
1
- import PropTypes from 'prop-types';
2
-
3
- const refObject = value => PropTypes.shape({
4
- current: value
5
- });
6
-
7
- export { refObject };