@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
@@ -2,7 +2,6 @@ import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutPropertie
2
2
  import 'core-js/modules/es.array.reduce.js';
3
3
  import * as React from 'react';
4
4
  import { Component, createElement } from 'react';
5
- import PropTypes from 'prop-types';
6
5
  import { isAfter } from 'date-fns/isAfter';
7
6
  import { isBefore } from 'date-fns/isBefore';
8
7
  import { isSameDay } from 'date-fns/isSameDay';
@@ -13,7 +12,7 @@ import DateInput from './date-input.js';
13
12
  import Months from './months.js';
14
13
  import Years from './years.js';
15
14
  import Weekdays from './weekdays.js';
16
- import { dateType, parseTime } from './consts.js';
15
+ import { parseTime } from './consts.js';
17
16
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
18
17
  import { jsxs, jsx } from 'react/jsx-runtime';
19
18
  import 'core-js/modules/web.dom-collections.iterator.js';
@@ -22,7 +21,6 @@ import 'core-js/modules/es.string.replace.js';
22
21
  import 'classnames';
23
22
  import '../_helpers/input.js';
24
23
  import '@jetbrains/icons/close-12px';
25
- import '../global/prop-types.js';
26
24
  import '../button/button.js';
27
25
  import '@jetbrains/icons/chevron-down';
28
26
  import '../icon/icon.js';
@@ -420,27 +418,6 @@ class DatePopup extends Component {
420
418
  });
421
419
  }
422
420
  }
423
- _defineProperty(DatePopup, "propTypes", {
424
- className: PropTypes.string,
425
- date: dateType,
426
- range: PropTypes.bool,
427
- withTime: PropTypes.bool,
428
- time: PropTypes.string,
429
- from: dateType,
430
- to: dateType,
431
- renderAfterCalendar: PropTypes.func,
432
- displayFormat: PropTypes.func,
433
- parseDateInput: PropTypes.func,
434
- onChange: PropTypes.func,
435
- onComplete: PropTypes.func,
436
- onClear: PropTypes.func,
437
- minDate: dateType,
438
- maxDate: dateType,
439
- fromPlaceholder: PropTypes.string,
440
- toPlaceholder: PropTypes.string,
441
- timePlaceholder: PropTypes.string,
442
- locale: PropTypes.object
443
- });
444
421
  _defineProperty(DatePopup, "defaultProps", {
445
422
  onChange() {}
446
423
  });
@@ -1,24 +1,10 @@
1
1
  import { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { MonthsProps } from './consts';
4
3
  export interface DayProps extends MonthsProps {
5
4
  day: Date;
6
5
  empty: boolean;
7
6
  }
8
7
  export default class Day extends Component<DayProps> {
9
- static propTypes: {
10
- day: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
11
- from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
12
- currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
13
- activeRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
14
- empty: PropTypes.Requireable<boolean>;
15
- onSelect: PropTypes.Requireable<(...args: any[]) => any>;
16
- parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
17
- onHover: PropTypes.Requireable<(...args: any[]) => any>;
18
- locale: PropTypes.Requireable<object>;
19
- minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
20
- maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
21
- };
22
8
  handleClick: () => void;
23
9
  handleMouseOver: () => void;
24
10
  handleMouseOut: () => void;
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty } 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 classNames from 'classnames';
6
5
  import { addDays } from 'date-fns/addDays';
7
6
  import { format } from 'date-fns/format';
@@ -12,7 +11,7 @@ import { isBefore } from 'date-fns/isBefore';
12
11
  import { isSameDay } from 'date-fns/isSameDay';
13
12
  import { isToday } from 'date-fns/isToday';
14
13
  import { startOfDay } from 'date-fns/startOfDay';
15
- import { dateType, getDayNumInWeek, weekdays } from './consts.js';
14
+ import { getDayNumInWeek, weekdays } from './consts.js';
16
15
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
17
16
  import { jsx } from 'react/jsx-runtime';
18
17
  import 'core-js/modules/es.regexp.exec.js';
@@ -100,18 +99,5 @@ class Day extends Component {
100
99
  );
101
100
  }
102
101
  }
103
- _defineProperty(Day, "propTypes", {
104
- day: dateType,
105
- from: dateType,
106
- currentRange: PropTypes.arrayOf(dateType),
107
- activeRange: PropTypes.arrayOf(dateType),
108
- empty: PropTypes.bool,
109
- onSelect: PropTypes.func,
110
- parseDateInput: PropTypes.func,
111
- onHover: PropTypes.func,
112
- locale: PropTypes.object,
113
- minDate: dateType,
114
- maxDate: dateType
115
- });
116
102
 
117
103
  export { Day as default };
@@ -1,12 +1,2 @@
1
- import PropTypes from 'prop-types';
2
1
  import { MonthsProps } from './consts';
3
- declare function MonthNames(props: MonthsProps): import("react").JSX.Element;
4
- declare namespace MonthNames {
5
- var propTypes: {
6
- scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
7
- onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
8
- currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
9
- locale: PropTypes.Requireable<object>;
10
- };
11
- }
12
- export default MonthNames;
2
+ export default function MonthNames(props: MonthsProps): import("react").JSX.Element;
@@ -1,7 +1,6 @@
1
- import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { b as _objectSpread2, _ 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 { endOfMonth } from 'date-fns/endOfMonth';
7
6
  import { format } from 'date-fns/format';
@@ -11,7 +10,7 @@ import { startOfDay } from 'date-fns/startOfDay';
11
10
  import { startOfYear } from 'date-fns/startOfYear';
12
11
  import linearFunction from '../global/linear-function.js';
13
12
  import MonthSlider from './month-slider.js';
14
- import { dateType, YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
13
+ import { YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
15
14
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
16
15
  import { jsxs, jsx } from 'react/jsx-runtime';
17
16
  import 'date-fns/addYears';
@@ -44,11 +43,6 @@ class MonthName extends PureComponent {
44
43
  });
45
44
  }
46
45
  }
47
- _defineProperty(MonthName, "propTypes", {
48
- month: dateType,
49
- onScrollChange: PropTypes.func,
50
- locale: PropTypes.object
51
- });
52
46
  function MonthNames(props) {
53
47
  const {
54
48
  scrollDate,
@@ -85,11 +79,5 @@ function MonthNames(props) {
85
79
  }))]
86
80
  });
87
81
  }
88
- MonthNames.propTypes = {
89
- scrollDate: dateType,
90
- onScrollChange: PropTypes.func,
91
- currentRange: PropTypes.arrayOf(dateType),
92
- locale: PropTypes.object
93
- };
94
82
 
95
83
  export { MonthNames as default };
@@ -1,5 +1,4 @@
1
1
  import { PureComponent } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { LinearFunction } from '../global/linear-function';
4
3
  import { MonthsProps } from './consts';
5
4
  export interface MonthSliderProps extends MonthsProps {
@@ -9,14 +8,6 @@ interface MonthSliderState {
9
8
  dragging: boolean;
10
9
  }
11
10
  export default class MonthSlider extends PureComponent<MonthSliderProps> {
12
- static propTypes: {
13
- scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
14
- onScroll: PropTypes.Requireable<(...args: any[]) => any>;
15
- pxToDate: PropTypes.Requireable<PropTypes.InferProps<{
16
- x: PropTypes.Requireable<(...args: any[]) => any>;
17
- y: PropTypes.Requireable<(...args: any[]) => any>;
18
- }>>;
19
- };
20
11
  state: {
21
12
  dragging: boolean;
22
13
  };
@@ -1,13 +1,12 @@
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 { addYears } from 'date-fns/addYears';
7
6
  import { startOfDay } from 'date-fns/startOfDay';
8
7
  import { subYears } from 'date-fns/subYears';
9
8
  import linearFunction from '../global/linear-function.js';
10
- import units, { dateType, yearScrollSpeed } from './consts.js';
9
+ import units, { yearScrollSpeed } from './consts.js';
11
10
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
12
11
  import { jsx } from 'react/jsx-runtime';
13
12
  import 'core-js/modules/es.regexp.exec.js';
@@ -65,13 +64,5 @@ class MonthSlider extends PureComponent {
65
64
  });
66
65
  }
67
66
  }
68
- _defineProperty(MonthSlider, "propTypes", {
69
- scrollDate: dateType,
70
- onScroll: PropTypes.func,
71
- pxToDate: PropTypes.shape({
72
- x: PropTypes.func,
73
- y: PropTypes.func
74
- })
75
- });
76
67
 
77
68
  export { MonthSlider as default };
@@ -1,13 +1,5 @@
1
- import PropTypes from 'prop-types';
2
1
  import { MonthsProps } from './consts';
3
2
  export interface MonthProps extends MonthsProps {
4
3
  month: Date;
5
4
  }
6
- declare function Month(props: MonthProps): import("react").JSX.Element;
7
- declare namespace Month {
8
- var propTypes: {
9
- month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
10
- locale: PropTypes.Requireable<object>;
11
- };
12
- }
13
- export default Month;
5
+ export default function Month(props: MonthProps): import("react").JSX.Element;
@@ -4,9 +4,8 @@ import { endOfMonth } from 'date-fns/endOfMonth';
4
4
  import { format } from 'date-fns/format';
5
5
  import { getDay } from 'date-fns/getDay';
6
6
  import { setDay } from 'date-fns/setDay';
7
- import PropTypes from 'prop-types';
8
7
  import Day from './day.js';
9
- import { dateType, shiftWeekArray, getWeekStartsOn, weekdays, FIFTH_DAY, WEEK } from './consts.js';
8
+ import { shiftWeekArray, getWeekStartsOn, weekdays, FIFTH_DAY, WEEK } from './consts.js';
10
9
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
11
10
  import { jsxs, jsx } from 'react/jsx-runtime';
12
11
  import { createElement } from 'react';
@@ -51,9 +50,5 @@ function Month(props) {
51
50
  })))]
52
51
  });
53
52
  }
54
- Month.propTypes = {
55
- month: dateType,
56
- locale: PropTypes.object
57
- };
58
53
 
59
54
  export { Month as default };
@@ -1,10 +1,2 @@
1
- import PropTypes from 'prop-types';
2
1
  import { MonthsProps } from './consts';
3
- declare function Months(props: MonthsProps): import("react").JSX.Element;
4
- declare namespace Months {
5
- var propTypes: {
6
- onScroll: PropTypes.Requireable<(...args: any[]) => any>;
7
- scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
8
- };
9
- }
10
- export default Months;
2
+ export default function Months(props: MonthsProps): import("react").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { useMemo, useRef, useEffect, createElement } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { addMonths } from 'date-fns/addMonths';
5
4
  import { getDay } from 'date-fns/getDay';
6
5
  import { getDaysInMonth } from 'date-fns/getDaysInMonth';
@@ -13,7 +12,7 @@ import useEventCallback from '../global/use-event-callback.js';
13
12
  import Month from './month.js';
14
13
  import MonthNames from './month-names.js';
15
14
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
16
- import units, { dateType, DOUBLE, HALF, WEEK, weekdays } from './consts.js';
15
+ import units, { DOUBLE, HALF, WEEK, weekdays } from './consts.js';
17
16
  import { jsxs, jsx } from 'react/jsx-runtime';
18
17
  import 'core-js/modules/web.dom-collections.iterator.js';
19
18
  import 'date-fns/addDays';
@@ -126,9 +125,5 @@ function Months(props) {
126
125
  }), /*#__PURE__*/jsx(MonthNames, _objectSpread2({}, props))]
127
126
  });
128
127
  }
129
- Months.propTypes = {
130
- onScroll: PropTypes.func,
131
- scrollDate: dateType
132
- };
133
128
 
134
129
  export { Months as default };
@@ -1,12 +1,6 @@
1
1
  import type { Locale } from 'date-fns';
2
- import PropTypes from 'prop-types';
3
2
  interface WeekdaysProps {
4
3
  locale: Locale | undefined;
5
4
  }
6
- declare function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
7
- declare namespace Weekdays {
8
- var propTypes: {
9
- locale: PropTypes.Requireable<object>;
10
- };
11
- }
12
- export default Weekdays;
5
+ export default function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
6
+ export {};
@@ -3,7 +3,6 @@ import { getDay } from 'date-fns/getDay';
3
3
  import { format } from 'date-fns/format';
4
4
  import { setDay } from 'date-fns/setDay';
5
5
  import { startOfDay } from 'date-fns/startOfDay';
6
- import PropTypes from 'prop-types';
7
6
  import { shiftWeekArray, getWeekStartsOn, weekdays } from './consts.js';
8
7
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
9
8
  import { jsx } from 'react/jsx-runtime';
@@ -27,8 +26,5 @@ function Weekdays(props) {
27
26
  }, +day))
28
27
  });
29
28
  }
30
- Weekdays.propTypes = {
31
- locale: PropTypes.object
32
- };
33
29
 
34
30
  export { Weekdays as default };
@@ -1,15 +1,9 @@
1
1
  import { PureComponent } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { CalendarProps } from './consts';
4
3
  interface YearsState {
5
4
  scrollDate: Date | null;
6
5
  }
7
6
  export default class Years extends PureComponent<CalendarProps> {
8
- static propTypes: {
9
- scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
10
- onScroll: PropTypes.Requireable<(...args: any[]) => any>;
11
- onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
12
- };
13
7
  state: {
14
8
  scrollDate: null;
15
9
  };
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent, createRef } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import { addYears } from 'date-fns/addYears';
7
6
  import { getYear } from 'date-fns/getYear';
@@ -13,7 +12,7 @@ import { startOfYear } from 'date-fns/startOfYear';
13
12
  import { subYears } from 'date-fns/subYears';
14
13
  import linearFunction from '../global/linear-function.js';
15
14
  import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
16
- import units, { dateType, yearDuration, DOUBLE, HALF } from './consts.js';
15
+ import units, { DOUBLE, HALF, yearDuration } from './consts.js';
17
16
  import { jsx } from 'react/jsx-runtime';
18
17
  import 'core-js/modules/es.regexp.exec.js';
19
18
  import 'date-fns/add';
@@ -107,10 +106,5 @@ class Years extends PureComponent {
107
106
  });
108
107
  }
109
108
  }
110
- _defineProperty(Years, "propTypes", {
111
- scrollDate: dateType,
112
- onScroll: PropTypes.func,
113
- onScrollChange: PropTypes.func
114
- });
115
109
 
116
110
  export { Years as default };
@@ -1,6 +1,5 @@
1
1
  import { PureComponent } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import TabTrap, { TabTrapProps } from '../tab-trap/tab-trap';
5
4
  import type { ShortcutsScopeOptions } from '../shortcuts/core';
6
5
  export interface DialogProps extends Partial<TabTrapProps> {
@@ -23,25 +22,6 @@ export interface DialogProps extends Partial<TabTrapProps> {
23
22
  modal?: boolean;
24
23
  }
25
24
  export default class Dialog extends PureComponent<DialogProps> {
26
- static propTypes: {
27
- label: PropTypes.Requireable<string>;
28
- className: PropTypes.Requireable<string>;
29
- contentClassName: PropTypes.Requireable<string>;
30
- children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
31
- show: PropTypes.Validator<boolean>;
32
- showCloseButton: PropTypes.Requireable<boolean>;
33
- closeButtonInside: PropTypes.Requireable<boolean>;
34
- closeButtonTitle: PropTypes.Requireable<string>;
35
- onOverlayClick: PropTypes.Requireable<(...args: any[]) => any>;
36
- onEscPress: PropTypes.Requireable<(...args: any[]) => any>;
37
- onCloseClick: PropTypes.Requireable<(...args: any[]) => any>;
38
- shortcutOptions: PropTypes.Requireable<object>;
39
- onCloseAttempt: PropTypes.Requireable<(...args: any[]) => any>;
40
- trapFocus: PropTypes.Requireable<boolean>;
41
- portalTarget: PropTypes.Requireable<HTMLElement>;
42
- autoFocusFirst: PropTypes.Requireable<boolean>;
43
- 'data-test': PropTypes.Requireable<string>;
44
- };
45
25
  static defaultProps: Partial<DialogProps>;
46
26
  state: {
47
27
  shortcutsScope: string;
@@ -2,7 +2,6 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent, createRef } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
- import PropTypes from 'prop-types';
6
5
  import classNames from 'classnames';
7
6
  import closeIcon from '@jetbrains/icons/close';
8
7
  import { AdaptiveIsland } from '../island/island.js';
@@ -160,7 +159,8 @@ class Dialog extends PureComponent {
160
159
  // click handler is duplicated in close button
161
160
  role: "presentation",
162
161
  className: modules_5e9b8c03.clickableOverlay,
163
- onClick: this.handleClick
162
+ onClick: this.handleClick,
163
+ "data-test": "ring-dialog-overlay"
164
164
  }), /*#__PURE__*/jsx("div", {
165
165
  className: modules_5e9b8c03.innerContainer,
166
166
  children: /*#__PURE__*/jsxs(AdaptiveIsland, {
@@ -213,28 +213,6 @@ class Dialog extends PureComponent {
213
213
  }), portalTarget instanceof HTMLElement ? portalTarget : document.body);
214
214
  }
215
215
  }
216
- _defineProperty(Dialog, "propTypes", {
217
- label: PropTypes.string,
218
- className: PropTypes.string,
219
- contentClassName: PropTypes.string,
220
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
221
- show: PropTypes.bool.isRequired,
222
- showCloseButton: PropTypes.bool,
223
- closeButtonInside: PropTypes.bool,
224
- closeButtonTitle: PropTypes.string,
225
- onOverlayClick: PropTypes.func,
226
- onEscPress: PropTypes.func,
227
- onCloseClick: PropTypes.func,
228
- shortcutOptions: PropTypes.object,
229
- // onCloseAttempt is a common callback for ESC pressing and overlay clicking.
230
- // Use it if you don't need different behaviors for this cases.
231
- onCloseAttempt: PropTypes.func,
232
- // focusTrap may break popups inside dialog, so use it carefully
233
- trapFocus: PropTypes.bool,
234
- portalTarget: PropTypes.instanceOf(HTMLElement),
235
- autoFocusFirst: PropTypes.bool,
236
- 'data-test': PropTypes.string
237
- });
238
216
  _defineProperty(Dialog, "defaultProps", {
239
217
  label: 'Dialog',
240
218
  onOverlayClick: noop,
@@ -1,10 +1,3 @@
1
- import PropTypes from 'prop-types';
2
1
  import { ButtonAttrs } from '../button/button';
3
- declare const _default: import("react").MemoExoticComponent<{
4
- ({ children, className, ...restProps }: ButtonAttrs): import("react").JSX.Element;
5
- propTypes: {
6
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
7
- className: PropTypes.Requireable<string>;
8
- };
9
- }>;
2
+ declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react").JSX.Element>;
10
3
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'react';
3
- import 'prop-types';
4
3
  import '@jetbrains/icons/chevron-10px';
5
4
  import 'classnames';
6
5
  import '../icon/icon.js';
@@ -1,6 +1,5 @@
1
1
  import { Component, HTMLAttributes, ReactNode, ReactElement } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { PopupAttrs } from '../popup/popup';
5
4
  import Anchor from './anchor';
6
5
  export interface AnchorProps {
@@ -15,6 +14,10 @@ export interface DropdownChildProps {
15
14
  dontCloseOnAnchorClick: boolean;
16
15
  }
17
16
  export interface DropdownProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
17
+ /**
18
+ * Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
19
+ * React element should render some interactive HTML element like `button` or `a`
20
+ */
18
21
  anchor: ReactElement | readonly ReactElement[] | string | ((props: AnchorProps) => ReactNode);
19
22
  children: ReactElement<PopupAttrs> | ((props: Omit<PopupAttrs, 'children'>) => ReactNode);
20
23
  initShown: boolean;
@@ -36,27 +39,6 @@ interface DropdownState {
36
39
  * @name Dropdown
37
40
  */
38
41
  export default class Dropdown extends Component<DropdownProps, DropdownState> {
39
- static propTypes: {
40
- /**
41
- * Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
42
- * React element should render some interactive HTML element like `button` or `a`
43
- */
44
- anchor: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>>;
45
- children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>>;
46
- initShown: PropTypes.Requireable<boolean>;
47
- className: PropTypes.Requireable<string>;
48
- activeClassName: PropTypes.Requireable<string>;
49
- clickMode: PropTypes.Requireable<boolean>;
50
- hoverMode: PropTypes.Requireable<boolean>;
51
- hoverShowTimeOut: PropTypes.Requireable<number>;
52
- hoverHideTimeOut: PropTypes.Requireable<number>;
53
- disabled: PropTypes.Requireable<boolean>;
54
- onShow: PropTypes.Requireable<(...args: any[]) => any>;
55
- onHide: PropTypes.Requireable<(...args: any[]) => any>;
56
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
57
- onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
58
- 'data-test': PropTypes.Requireable<string>;
59
- };
60
42
  static defaultProps: {
61
43
  initShown: boolean;
62
44
  clickMode: 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, cloneElement } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import joinDataTestAttributes from '../global/data-tests.js';
7
6
  import { isArray } from '../global/typescript-utils.js';
@@ -189,27 +188,6 @@ class Dropdown extends Component {
189
188
  }));
190
189
  }
191
190
  }
192
- _defineProperty(Dropdown, "propTypes", {
193
- /**
194
- * Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
195
- * React element should render some interactive HTML element like `button` or `a`
196
- */
197
- anchor: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
198
- children: PropTypes.oneOfType([PropTypes.element, PropTypes.func]).isRequired,
199
- initShown: PropTypes.bool,
200
- className: PropTypes.string,
201
- activeClassName: PropTypes.string,
202
- clickMode: PropTypes.bool,
203
- hoverMode: PropTypes.bool,
204
- hoverShowTimeOut: PropTypes.number,
205
- hoverHideTimeOut: PropTypes.number,
206
- disabled: PropTypes.bool,
207
- onShow: PropTypes.func,
208
- onHide: PropTypes.func,
209
- onMouseEnter: PropTypes.func,
210
- onMouseLeave: PropTypes.func,
211
- 'data-test': PropTypes.string
212
- });
213
191
  _defineProperty(Dropdown, "defaultProps", {
214
192
  initShown: false,
215
193
  clickMode: true,
@@ -1,6 +1,5 @@
1
1
  import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { forwardRef, useMemo, cloneElement } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import List, { ActiveItemContext } from '../list/list.js';
5
4
  import Dropdown from '../dropdown/dropdown.js';
6
5
  import PopupMenu from '../popup-menu/popup-menu.js';
@@ -45,7 +44,6 @@ import '@jetbrains/icons/remove-12px';
45
44
  import '../icon/icon.js';
46
45
  import '../icon/icon__constants.js';
47
46
  import '../_helpers/icon__svg.js';
48
- import '../global/prop-types.js';
49
47
  import '../global/composeRefs.js';
50
48
  import '../control-help/control-help.js';
51
49
  import '../list/list__custom.js';
@@ -70,24 +68,16 @@ import '../popup/popup.target.js';
70
68
  const _excluded = ["anchor", "pinned", "active", "activeListItemId", "listId"],
71
69
  _excluded2 = ["id", "anchor", "ariaLabel", "data", "onSelect", "menuProps"],
72
70
  _excluded3 = ["pinned", "active"];
73
- const _ref = Dropdown.propTypes || {},
74
- dropdownPropTypes = _objectWithoutProperties(_ref, ["children"]);
75
- const {
76
- id: idPropType,
77
- data: dataPropType,
78
- ariaLabel: ariaLabelPropType,
79
- onSelect: onSelectPropType
80
- } = PopupMenu.propTypes || {};
81
71
  const defaultAriaLabel = 'Dropdown menu';
82
- function DropdownAnchorWrapper(_ref2) {
72
+ function DropdownAnchorWrapper(_ref) {
83
73
  let {
84
74
  anchor,
85
75
  pinned,
86
76
  active,
87
77
  activeListItemId,
88
78
  listId
89
- } = _ref2,
90
- restProps = _objectWithoutProperties(_ref2, _excluded);
79
+ } = _ref,
80
+ restProps = _objectWithoutProperties(_ref, _excluded);
91
81
  const anchorAriaProps = useMemo(() => _objectSpread2(_objectSpread2(_objectSpread2({}, listId ? {
92
82
  'aria-haspopup': true
93
83
  } : {}), activeListItemId ? {
@@ -121,14 +111,7 @@ function DropdownAnchorWrapper(_ref2) {
121
111
  children: anchor
122
112
  }));
123
113
  }
124
- DropdownAnchorWrapper.propTypes = {
125
- anchor: PropTypes.oneOfType([PropTypes.node, PropTypes.string, PropTypes.func]).isRequired,
126
- pinned: PropTypes.bool,
127
- active: PropTypes.bool,
128
- activeListItemId: PropTypes.string,
129
- listId: PropTypes.string
130
- };
131
- const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref3, forwardedRef) {
114
+ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref2, forwardedRef) {
132
115
  let {
133
116
  id,
134
117
  anchor,
@@ -136,17 +119,17 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref3, forwar
136
119
  data,
137
120
  onSelect,
138
121
  menuProps
139
- } = _ref3,
140
- restDropdownProps = _objectWithoutProperties(_ref3, _excluded2);
122
+ } = _ref2,
123
+ restDropdownProps = _objectWithoutProperties(_ref2, _excluded2);
141
124
  const listId = useMemo(() => id || getUID('dropdown-menu-list'), [id]);
142
125
  return /*#__PURE__*/jsx(ActiveItemContext.Provider, {
143
126
  children: /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({
144
- anchor: _ref4 => {
127
+ anchor: _ref3 => {
145
128
  let {
146
129
  pinned,
147
130
  active
148
- } = _ref4,
149
- restAnchorProps = _objectWithoutProperties(_ref4, _excluded3);
131
+ } = _ref3,
132
+ restAnchorProps = _objectWithoutProperties(_ref3, _excluded3);
150
133
  return /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
151
134
  children: activeItemId => /*#__PURE__*/jsx(DropdownAnchorWrapper, _objectSpread2({
152
135
  anchor: anchor,
@@ -170,13 +153,6 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref3, forwar
170
153
  }))
171
154
  });
172
155
  });
173
- DropdownMenu.propTypes = _objectSpread2({
174
- id: idPropType,
175
- data: dataPropType,
176
- ariaLabel: ariaLabelPropType,
177
- onSelect: onSelectPropType,
178
- menuProps: PropTypes.object
179
- }, dropdownPropTypes);
180
156
  var DropdownMenu$1 = Object.assign(DropdownMenu, {
181
157
  ListProps: List.ListProps
182
158
  });