@jetbrains/ring-ui-built 7.0.0-beta.2 → 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 (336) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +1 -504
  2. package/components/_helpers/anchor.js +7 -10
  3. package/components/_helpers/button__classes.js +15 -13
  4. package/components/_helpers/caption.js +11 -21
  5. package/components/_helpers/card.js +91 -123
  6. package/components/_helpers/dialog__body-scroll-preventer.js +10 -17
  7. package/components/_helpers/icon__svg.js +27 -29
  8. package/components/_helpers/input.js +150 -192
  9. package/components/_helpers/query-assist__suggestions.js +78 -93
  10. package/components/_helpers/select__filter.js +56 -75
  11. package/components/_helpers/services-link.js +23 -39
  12. package/components/_helpers/sidebar.js +91 -102
  13. package/components/_helpers/tab-link.js +8 -12
  14. package/components/_helpers/theme.js +42 -51
  15. package/components/_helpers/title.js +59 -84
  16. package/components/alert/alert.d.ts +7 -24
  17. package/components/alert/alert.js +111 -179
  18. package/components/alert/container.d.ts +0 -5
  19. package/components/alert/container.js +32 -44
  20. package/components/alert-service/alert-service.js +104 -162
  21. package/components/analytics/analytics.js +12 -20
  22. package/components/analytics/analytics__custom-plugin.js +52 -68
  23. package/components/auth/auth.js +2 -28
  24. package/components/auth/auth__core.d.ts +4 -4
  25. package/components/auth/auth__core.js +753 -1431
  26. package/components/auth/background-flow.js +84 -121
  27. package/components/auth/down-notification.js +31 -78
  28. package/components/auth/iframe-flow.js +70 -124
  29. package/components/auth/request-builder.js +46 -77
  30. package/components/auth/response-parser.js +84 -112
  31. package/components/auth/storage.js +160 -319
  32. package/components/auth/token-validator.js +132 -227
  33. package/components/auth/window-flow.js +84 -121
  34. package/components/auth-dialog/auth-dialog.d.ts +0 -18
  35. package/components/auth-dialog/auth-dialog.js +106 -175
  36. package/components/auth-dialog-service/auth-dialog-service.js +10 -31
  37. package/components/avatar/avatar-example-datauri.js +1 -1
  38. package/components/avatar/avatar.d.ts +0 -13
  39. package/components/avatar/avatar.js +94 -136
  40. package/components/avatar/fallback-avatar.d.ts +1 -10
  41. package/components/avatar/fallback-avatar.js +20 -40
  42. package/components/badge/badge.d.ts +0 -10
  43. package/components/badge/badge.js +32 -48
  44. package/components/breadcrumbs/breadcrumbs.js +13 -17
  45. package/components/button/button.d.ts +0 -21
  46. package/components/button/button.js +67 -101
  47. package/components/button-group/button-group.d.ts +0 -5
  48. package/components/button-group/button-group.js +27 -41
  49. package/components/button-group/caption.d.ts +0 -4
  50. package/components/button-group/caption.js +0 -1
  51. package/components/button-set/button-set.d.ts +0 -6
  52. package/components/button-set/button-set.js +19 -33
  53. package/components/button-toolbar/button-toolbar.d.ts +0 -6
  54. package/components/button-toolbar/button-toolbar.js +17 -31
  55. package/components/caret/caret.js +184 -211
  56. package/components/checkbox/checkbox.d.ts +0 -19
  57. package/components/checkbox/checkbox.js +69 -104
  58. package/components/clipboard/clipboard-fallback.js +7 -7
  59. package/components/clipboard/clipboard.js +36 -129
  60. package/components/code/code.d.ts +0 -12
  61. package/components/code/code.js +83 -163
  62. package/components/collapse/collapse-content.js +42 -60
  63. package/components/collapse/collapse-context.js +2 -2
  64. package/components/collapse/collapse-control.js +12 -12
  65. package/components/collapse/collapse.js +12 -17
  66. package/components/collapse/consts.js +4 -4
  67. package/components/collapse/utils.js +1 -3
  68. package/components/confirm/confirm.d.ts +0 -14
  69. package/components/confirm/confirm.js +67 -111
  70. package/components/confirm-service/confirm-service.js +23 -45
  71. package/components/content-layout/content-layout.d.ts +0 -7
  72. package/components/content-layout/content-layout.js +41 -63
  73. package/components/content-layout/sidebar.d.ts +0 -9
  74. package/components/content-layout/sidebar.js +1 -2
  75. package/components/contenteditable/contenteditable.d.ts +1 -22
  76. package/components/contenteditable/contenteditable.js +37 -60
  77. package/components/control-help/control-help.js +5 -3
  78. package/components/control-label/control-label.js +9 -14
  79. package/components/data-list/data-list.d.ts +0 -2
  80. package/components/data-list/data-list.js +115 -179
  81. package/components/data-list/data-list.mock.js +3 -6
  82. package/components/data-list/item.js +118 -164
  83. package/components/data-list/selection.js +77 -135
  84. package/components/data-list/title.d.ts +2 -2
  85. package/components/data-list/title.js +2 -12
  86. package/components/date-picker/consts.d.ts +0 -2
  87. package/components/date-picker/consts.js +16 -24
  88. package/components/date-picker/date-input.d.ts +0 -20
  89. package/components/date-picker/date-input.js +99 -147
  90. package/components/date-picker/date-picker.d.ts +0 -29
  91. package/components/date-picker/date-picker.js +143 -224
  92. package/components/date-picker/date-popup.d.ts +0 -22
  93. package/components/date-picker/date-popup.js +281 -351
  94. package/components/date-picker/day.d.ts +0 -14
  95. package/components/date-picker/day.js +72 -109
  96. package/components/date-picker/month-names.d.ts +1 -11
  97. package/components/date-picker/month-names.js +42 -72
  98. package/components/date-picker/month-slider.d.ts +0 -9
  99. package/components/date-picker/month-slider.js +43 -71
  100. package/components/date-picker/month.d.ts +1 -9
  101. package/components/date-picker/month.js +18 -30
  102. package/components/date-picker/months.d.ts +1 -9
  103. package/components/date-picker/months.js +45 -55
  104. package/components/date-picker/weekdays.d.ts +2 -8
  105. package/components/date-picker/weekdays.js +12 -25
  106. package/components/date-picker/years.d.ts +0 -6
  107. package/components/date-picker/years.js +77 -104
  108. package/components/dialog/dialog.d.ts +0 -20
  109. package/components/dialog/dialog.js +152 -210
  110. package/components/dialog/dialog__body-scroll-preventer.js +0 -3
  111. package/components/dropdown/anchor.d.ts +1 -8
  112. package/components/dropdown/anchor.js +0 -7
  113. package/components/dropdown/dropdown.d.ts +4 -22
  114. package/components/dropdown/dropdown.js +134 -176
  115. package/components/dropdown-menu/dropdown-menu.js +51 -103
  116. package/components/editable-heading/editable-heading.js +69 -118
  117. package/components/error-bubble/error-bubble.d.ts +0 -6
  118. package/components/error-bubble/error-bubble.js +29 -60
  119. package/components/error-message/error-message.d.ts +0 -10
  120. package/components/error-message/error-message.js +34 -59
  121. package/components/footer/footer.js +27 -43
  122. package/components/global/compose.js +1 -8
  123. package/components/global/composeRefs.d.ts +0 -3
  124. package/components/global/composeRefs.js +8 -15
  125. package/components/global/controls-height.js +2 -2
  126. package/components/global/create-stateful-context.d.ts +0 -4
  127. package/components/global/create-stateful-context.js +14 -17
  128. package/components/global/data-tests.js +7 -12
  129. package/components/global/dom.js +49 -82
  130. package/components/global/focus-sensor-hoc.js +95 -122
  131. package/components/global/fuzzy-highlight.js +23 -34
  132. package/components/global/get-event-key.js +8 -8
  133. package/components/global/get-uid.js +3 -7
  134. package/components/global/inject-styles.js +7 -14
  135. package/components/global/listeners.js +28 -47
  136. package/components/global/memoize.js +6 -10
  137. package/components/global/normalize-indent.js +19 -46
  138. package/components/global/promise-with-timeout.js +6 -8
  139. package/components/global/react-dom-renderer.d.ts +0 -5
  140. package/components/global/react-dom-renderer.js +29 -45
  141. package/components/global/rerender-hoc.js +16 -32
  142. package/components/global/schedule-raf.js +4 -4
  143. package/components/global/sniffer.js +1 -1
  144. package/components/global/theme.d.ts +1 -0
  145. package/components/global/theme.js +2 -20
  146. package/components/global/trivial-template-tag.js +4 -9
  147. package/components/global/typescript-utils.js +2 -6
  148. package/components/global/url.js +20 -23
  149. package/components/global/use-event-callback.js +7 -4
  150. package/components/grid/col.d.ts +0 -14
  151. package/components/grid/col.js +26 -53
  152. package/components/grid/grid.d.ts +0 -5
  153. package/components/grid/grid.js +18 -32
  154. package/components/grid/row.d.ts +0 -18
  155. package/components/grid/row.js +22 -47
  156. package/components/group/group.d.ts +0 -5
  157. package/components/group/group.js +16 -27
  158. package/components/header/header-icon.d.ts +0 -22
  159. package/components/header/header-icon.js +19 -36
  160. package/components/header/header.d.ts +0 -7
  161. package/components/header/header.js +30 -71
  162. package/components/header/links.js +6 -3
  163. package/components/header/logo.d.ts +0 -4
  164. package/components/header/logo.js +15 -30
  165. package/components/header/profile.d.ts +1 -39
  166. package/components/header/profile.js +125 -190
  167. package/components/header/services-link.d.ts +0 -10
  168. package/components/header/services-link.js +1 -4
  169. package/components/header/services.d.ts +0 -14
  170. package/components/header/services.js +65 -110
  171. package/components/header/smart-profile.d.ts +0 -9
  172. package/components/header/smart-profile.js +119 -205
  173. package/components/header/smart-services.d.ts +0 -4
  174. package/components/header/smart-services.js +72 -141
  175. package/components/header/tray.d.ts +0 -5
  176. package/components/header/tray.js +21 -35
  177. package/components/heading/heading.js +21 -26
  178. package/components/http/http.js +162 -319
  179. package/components/http/http.mock.js +50 -98
  180. package/components/hub-source/hub-source.js +77 -182
  181. package/components/hub-source/hub-source__user.js +9 -37
  182. package/components/hub-source/hub-source__users-groups.js +34 -60
  183. package/components/i18n/i18n-context.js +7 -8
  184. package/components/i18n/i18n.js +3 -6
  185. package/components/icon/icon.d.ts +0 -11
  186. package/components/icon/icon.js +60 -85
  187. package/components/icon/icon__svg.d.ts +0 -8
  188. package/components/icon/icon__svg.js +0 -6
  189. package/components/icon/index.js +0 -6
  190. package/components/input/input.js +1 -13
  191. package/components/island/adaptive-island-hoc.d.ts +0 -1
  192. package/components/island/adaptive-island-hoc.js +30 -39
  193. package/components/island/content.d.ts +0 -10
  194. package/components/island/content.js +99 -119
  195. package/components/island/header.js +55 -73
  196. package/components/island/island.d.ts +0 -9
  197. package/components/island/island.js +25 -41
  198. package/components/island-legacy/content-legacy.d.ts +0 -5
  199. package/components/island-legacy/content-legacy.js +16 -27
  200. package/components/island-legacy/header-legacy.d.ts +0 -5
  201. package/components/island-legacy/header-legacy.js +19 -30
  202. package/components/island-legacy/island-legacy.d.ts +0 -5
  203. package/components/island-legacy/island-legacy.js +16 -27
  204. package/components/link/clickableLink.d.ts +0 -9
  205. package/components/link/clickableLink.js +33 -51
  206. package/components/link/link.d.ts +0 -25
  207. package/components/link/link.js +47 -68
  208. package/components/list/consts.js +2 -2
  209. package/components/list/list.d.ts +0 -32
  210. package/components/list/list.js +399 -516
  211. package/components/list/list__custom.js +51 -78
  212. package/components/list/list__hint.d.ts +0 -4
  213. package/components/list/list__hint.js +8 -21
  214. package/components/list/list__item.js +147 -211
  215. package/components/list/list__link.js +39 -59
  216. package/components/list/list__separator.js +15 -30
  217. package/components/list/list__title.js +25 -41
  218. package/components/list/list__users-groups-source.js +55 -123
  219. package/components/loader/loader.d.ts +0 -10
  220. package/components/loader/loader.js +38 -70
  221. package/components/loader/loader__core.js +123 -184
  222. package/components/loader-inline/loader-inline.d.ts +0 -6
  223. package/components/loader-inline/loader-inline.js +24 -38
  224. package/components/loader-screen/loader-screen.d.ts +0 -6
  225. package/components/loader-screen/loader-screen.js +24 -46
  226. package/components/login-dialog/login-dialog.d.ts +0 -11
  227. package/components/login-dialog/login-dialog.js +93 -144
  228. package/components/login-dialog/service.js +9 -31
  229. package/components/markdown/markdown.js +16 -29
  230. package/components/message/message.js +170 -217
  231. package/components/old-browsers-message/old-browsers-message.js +11 -14
  232. package/components/old-browsers-message/old-browsers-message__stop.js +1 -4
  233. package/components/old-browsers-message/white-list.js +8 -13
  234. package/components/pager/pager.js +212 -277
  235. package/components/panel/panel.d.ts +0 -5
  236. package/components/panel/panel.js +16 -27
  237. package/components/permissions/permissions.js +118 -161
  238. package/components/permissions/permissions__cache.js +191 -218
  239. package/components/popup/popup.consts.js +1 -1
  240. package/components/popup/popup.js +237 -329
  241. package/components/popup/popup.target.js +9 -12
  242. package/components/popup/position.js +94 -101
  243. package/components/popup-menu/popup-menu.js +31 -76
  244. package/components/progress-bar/progress-bar.d.ts +19 -33
  245. package/components/progress-bar/progress-bar.js +55 -99
  246. package/components/query-assist/query-assist.d.ts +63 -93
  247. package/components/query-assist/query-assist.js +583 -746
  248. package/components/query-assist/query-assist__suggestions.js +2 -28
  249. package/components/radio/radio.d.ts +0 -8
  250. package/components/radio/radio.js +15 -35
  251. package/components/radio/radio__item.d.ts +0 -9
  252. package/components/radio/radio__item.js +52 -72
  253. package/components/scrollable-section/scrollable-section.js +22 -32
  254. package/components/select/select.js +693 -858
  255. package/components/select/select__filter.js +1 -28
  256. package/components/select/select__popup.js +317 -465
  257. package/components/shortcuts/core.js +147 -195
  258. package/components/shortcuts/shortcut-title.js +6 -10
  259. package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
  260. package/components/shortcuts/shortcuts-hoc.js +23 -46
  261. package/components/shortcuts/shortcuts.d.ts +0 -8
  262. package/components/shortcuts/shortcuts.js +41 -72
  263. package/components/slider/slider.js +93 -113
  264. package/components/slider/slider.utils.js +16 -23
  265. package/components/storage/storage.js +3 -28
  266. package/components/storage/storage__fallback.js +137 -210
  267. package/components/storage/storage__local.js +89 -148
  268. package/components/style.css +1 -1
  269. package/components/tab-trap/tab-trap.js +35 -61
  270. package/components/table/cell.d.ts +0 -6
  271. package/components/table/cell.js +11 -27
  272. package/components/table/disable-hover-hoc.d.ts +0 -1
  273. package/components/table/disable-hover-hoc.js +27 -42
  274. package/components/table/header-cell.d.ts +0 -10
  275. package/components/table/header-cell.js +59 -85
  276. package/components/table/header.d.ts +0 -15
  277. package/components/table/header.js +89 -126
  278. package/components/table/multitable.d.ts +0 -4
  279. package/components/table/multitable.js +83 -93
  280. package/components/table/row-with-focus-sensor.d.ts +2 -2
  281. package/components/table/row-with-focus-sensor.js +25 -60
  282. package/components/table/row.js +169 -235
  283. package/components/table/selection-adapter.js +2 -2
  284. package/components/table/selection-shortcuts-hoc.js +102 -126
  285. package/components/table/selection.js +150 -217
  286. package/components/table/simple-table.d.ts +0 -44
  287. package/components/table/simple-table.js +17 -59
  288. package/components/table/smart-table.d.ts +0 -48
  289. package/components/table/smart-table.js +40 -83
  290. package/components/table/table.d.ts +0 -2
  291. package/components/table/table.js +268 -377
  292. package/components/tabs/collapsible-more.d.ts +1 -9
  293. package/components/tabs/collapsible-more.js +47 -97
  294. package/components/tabs/collapsible-tab.js +32 -44
  295. package/components/tabs/collapsible-tabs.d.ts +2 -29
  296. package/components/tabs/collapsible-tabs.js +89 -161
  297. package/components/tabs/custom-item.d.ts +1 -7
  298. package/components/tabs/custom-item.js +4 -7
  299. package/components/tabs/dumb-tabs.d.ts +0 -11
  300. package/components/tabs/dumb-tabs.js +60 -104
  301. package/components/tabs/smart-tabs.d.ts +0 -6
  302. package/components/tabs/smart-tabs.js +29 -68
  303. package/components/tabs/tab-link.d.ts +0 -8
  304. package/components/tabs/tab-link.js +1 -4
  305. package/components/tabs/tab.d.ts +0 -8
  306. package/components/tabs/tab.js +14 -32
  307. package/components/tabs/tabs.js +1 -28
  308. package/components/tag/tag.d.ts +0 -19
  309. package/components/tag/tag.js +120 -179
  310. package/components/tags-input/tags-input.d.ts +7 -33
  311. package/components/tags-input/tags-input.js +223 -338
  312. package/components/tags-list/tags-list.d.ts +0 -13
  313. package/components/tags-list/tags-list.js +45 -74
  314. package/components/text/text.d.ts +0 -7
  315. package/components/text/text.js +27 -43
  316. package/components/toggle/toggle.d.ts +0 -15
  317. package/components/toggle/toggle.js +51 -76
  318. package/components/tooltip/tooltip.d.ts +0 -9
  319. package/components/tooltip/tooltip.js +109 -150
  320. package/components/user-agreement/service.js +259 -401
  321. package/components/user-agreement/user-agreement.d.ts +0 -18
  322. package/components/user-agreement/user-agreement.js +91 -137
  323. package/components/user-card/card.d.ts +0 -35
  324. package/components/user-card/card.js +1 -26
  325. package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
  326. package/components/user-card/smart-user-card-tooltip.js +52 -108
  327. package/components/user-card/tooltip.d.ts +0 -9
  328. package/components/user-card/tooltip.js +35 -74
  329. package/components/user-card/user-card.js +1 -26
  330. package/package.json +1 -2
  331. package/components/global/prop-types.d.ts +0 -4
  332. package/components/global/prop-types.js +0 -9
  333. package/components/global/react-render-adapter.d.ts +0 -1
  334. package/components/global/react-render-adapter.js +0 -6
  335. package/components/header/tray-icon.d.ts +0 -1
  336. package/components/header/tray-icon.js +0 -26
@@ -1,24 +1,22 @@
1
- import 'core-js/modules/es.array.map.js';
2
1
  import { memo, isValidElement } from 'react';
3
- import PropTypes from 'prop-types';
4
2
  import classNames from 'classnames';
5
3
  import Link from '../link/link.js';
6
4
  import { jsx } from 'react/jsx-runtime';
7
5
  import '../_helpers/_rollupPluginBabelHelpers.js';
8
6
  import '../global/data-tests.js';
9
- import 'core-js/modules/es.array.concat.js';
10
7
  import 'core-js/modules/es.array.reduce.js';
11
- import 'core-js/modules/es.object.entries.js';
12
- import 'core-js/modules/es.object.to-string.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
13
9
  import '../link/clickableLink.js';
14
10
  import '../_helpers/link.js';
15
11
 
16
12
  var modules_7385b3fd = {"light":"light_rui_2ac4","footer":"footer_rui_b622 font_rui_f295","footerFloating":"footerFloating_rui_b622 footer_rui_b622 font_rui_f295","column":"column_rui_b622","columnItem":"columnItem_rui_b622","columnLeft":"columnLeft_rui_b622 column_rui_b622","columnCenter":"columnCenter_rui_b622 column_rui_b622","line":"line_rui_b622","columnRight":"columnRight_rui_b622 column_rui_b622","lineCenter":"lineCenter_rui_b622"};
17
13
 
18
- var FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
19
- var position = _ref.position,
20
- children = _ref.children;
21
- var classes = classNames({
14
+ const FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
15
+ let {
16
+ position,
17
+ children
18
+ } = _ref;
19
+ const classes = classNames({
22
20
  [modules_7385b3fd.columnLeft]: position === 'left',
23
21
  [modules_7385b3fd.columnCenter]: position === 'center',
24
22
  [modules_7385b3fd.columnRight]: position === 'right'
@@ -31,19 +29,15 @@ var FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
31
29
  })
32
30
  });
33
31
  });
34
- FooterColumn.propTypes = {
35
- position: PropTypes.oneOf(['left', 'center', 'right']).isRequired,
36
- children: PropTypes.node
37
- };
38
32
  /**
39
33
  * Return copyright string
40
34
  * @param year {int}
41
35
  * @returns {string}
42
36
  */
43
37
  function copyright(year) {
44
- var currentYear = new Date().getUTCFullYear();
45
- var ndash = '–';
46
- var ret = 'Copyright © ';
38
+ const currentYear = new Date().getUTCFullYear();
39
+ const ndash = '–';
40
+ let ret = 'Copyright © ';
47
41
  if (year >= currentYear) {
48
42
  ret += year;
49
43
  } else {
@@ -55,14 +49,14 @@ function copyright(year) {
55
49
  * @constructor
56
50
  * @extends {ReactComponent}
57
51
  */
58
- var FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
59
- var items = Array.isArray(props.item) ? props.item : [props.item];
52
+ const FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
53
+ const items = Array.isArray(props.item) ? props.item : [props.item];
60
54
  function renderItem(item) {
61
55
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
62
56
  if ( /*#__PURE__*/isValidElement(item) || typeof item !== 'object') {
63
57
  return item;
64
58
  }
65
- var element = (item.copyright ? copyright(item.copyright) : '') + (item.label || item);
59
+ const element = (item.copyright ? copyright(item.copyright) : '') + (item.label || item);
66
60
  if (item.url) {
67
61
  return /*#__PURE__*/jsx(Link, {
68
62
  href: item.url,
@@ -78,31 +72,28 @@ var FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
78
72
  children: items.map(renderItem)
79
73
  });
80
74
  });
81
- FooterLine.propTypes = {
82
- item: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string])
83
- };
84
- var Footer = /*#__PURE__*/memo(function Footer(_ref2) {
85
- var floating = _ref2.floating,
86
- className = _ref2.className,
87
- left = _ref2.left,
88
- center = _ref2.center,
89
- right = _ref2.right;
75
+ const Footer = /*#__PURE__*/memo(function Footer(_ref2) {
76
+ let {
77
+ floating,
78
+ className,
79
+ left,
80
+ center,
81
+ right
82
+ } = _ref2;
90
83
  function content(elements, position) {
91
84
  if (!elements) {
92
85
  return false;
93
86
  }
94
87
  return /*#__PURE__*/jsx(FooterColumn, {
95
88
  position: position,
96
- children: elements.map(function (item, idx) {
97
- return /*#__PURE__*/jsx(FooterLine
98
- // eslint-disable-next-line react/no-array-index-key
99
- , {
100
- item: item
101
- }, idx);
102
- })
89
+ children: elements.map((item, idx) => /*#__PURE__*/jsx(FooterLine
90
+ // eslint-disable-next-line react/no-array-index-key
91
+ , {
92
+ item: item
93
+ }, idx))
103
94
  }, position);
104
95
  }
105
- var classes = classNames(modules_7385b3fd.footer, className, {
96
+ const classes = classNames(modules_7385b3fd.footer, className, {
106
97
  [modules_7385b3fd.footerFloating]: floating
107
98
  });
108
99
  return /*#__PURE__*/jsx("footer", {
@@ -111,12 +102,5 @@ var Footer = /*#__PURE__*/memo(function Footer(_ref2) {
111
102
  children: [content(left, 'left'), content(center, 'center'), content(right, 'right')]
112
103
  });
113
104
  });
114
- Footer.propTypes = {
115
- className: PropTypes.string,
116
- floating: PropTypes.bool,
117
- left: PropTypes.array,
118
- center: PropTypes.array,
119
- right: PropTypes.array
120
- };
121
105
 
122
106
  export { copyright, Footer as default };
@@ -1,17 +1,10 @@
1
1
  import 'core-js/modules/es.array.reduce.js';
2
- import 'core-js/modules/es.object.to-string.js';
3
2
 
4
3
  function compose() {
5
4
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
6
5
  funcs[_key] = arguments[_key];
7
6
  }
8
- return funcs.reduce(function (acc, func) {
9
- return function (arg) {
10
- return acc(func(arg));
11
- };
12
- }, function (arg) {
13
- return arg;
14
- });
7
+ return funcs.reduce((acc, func) => arg => acc(func(arg)), arg => arg);
15
8
  }
16
9
 
17
10
  export { compose as default };
@@ -1,5 +1,2 @@
1
1
  import { Ref } from 'react';
2
- declare function composeRefs<T>(...refs: (Ref<T> | undefined)[]): (value: T | null) => void;
3
- declare const _default: typeof composeRefs;
4
- export default _default;
5
2
  export declare function createComposedRef<T>(): import("memoize-one").MemoizedFn<(...refs: (Ref<T> | undefined)[]) => (value: T | null) => void>;
@@ -1,26 +1,19 @@
1
- import 'core-js/modules/es.object.to-string.js';
2
- import 'core-js/modules/web.dom-collections.for-each.js';
3
1
  import memoizeOne from 'memoize-one';
4
- import deprecate from 'util-deprecate';
5
2
 
6
3
  function composeRefs() {
7
4
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
8
5
  refs[_key] = arguments[_key];
9
6
  }
10
- return function (value) {
11
- return refs.forEach(function (ref) {
12
- if (typeof ref === 'function') {
13
- ref(value);
14
- } else if (ref != null) {
15
- ref.current = value;
16
- }
17
- });
18
- };
7
+ return value => refs.forEach(ref => {
8
+ if (typeof ref === 'function') {
9
+ ref(value);
10
+ } else if (ref != null) {
11
+ ref.current = value;
12
+ }
13
+ });
19
14
  }
20
- // TODO remove export in 7.0, composeRefs should be used only in createComposedRef and in useComposedRefs in the future
21
- var composeRefs$1 = deprecate(composeRefs, 'composeRefs is deprecated and will be removed in 7.0. Use createComposedRef instead.');
22
15
  function createComposedRef() {
23
16
  return memoizeOne(composeRefs);
24
17
  }
25
18
 
26
- export { createComposedRef, composeRefs$1 as default };
19
+ export { createComposedRef };
@@ -6,8 +6,8 @@ var ControlsHeight;
6
6
  ControlsHeight["M"] = "M";
7
7
  ControlsHeight["L"] = "L";
8
8
  })(ControlsHeight || (ControlsHeight = {}));
9
- var ControlsHeightContext = /*#__PURE__*/createContext(ControlsHeight.M);
10
- var globalControlsHeight = ControlsHeight.M;
9
+ const ControlsHeightContext = /*#__PURE__*/createContext(ControlsHeight.M);
10
+ let globalControlsHeight = ControlsHeight.M;
11
11
  // This can be used if React Context is not applicable, for example for alertService or Auth dialog
12
12
  function configureGlobalControlsHeight(value) {
13
13
  globalControlsHeight = value;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  type Update<T> = (value: T) => void;
4
3
  export interface ProviderProps {
5
4
  children: ReactNode;
@@ -13,9 +12,6 @@ export default function createStatefulContext<T>(initialValue: T, name?: string)
13
12
  UpdateContext: import("react").Context<Update<T>>;
14
13
  Provider: {
15
14
  ({ children }: ProviderProps): import("react").JSX.Element;
16
- propTypes: {
17
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
- };
19
15
  displayName: string;
20
16
  };
21
17
  useUpdate: (value: T, skipUpdate?: boolean) => void;
@@ -1,18 +1,16 @@
1
- import { i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
2
  import { memo, createContext, useState, useContext, useEffect } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
6
5
  function createStatefulContext(initialValue) {
7
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
8
- var ValueContext = /*#__PURE__*/createContext(initialValue);
9
- var UpdateContext = /*#__PURE__*/createContext(function () {});
6
+ let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
7
+ const ValueContext = /*#__PURE__*/createContext(initialValue);
8
+ const UpdateContext = /*#__PURE__*/createContext(() => {});
10
9
  function Provider(_ref) {
11
- var children = _ref.children;
12
- var _useState = useState(initialValue),
13
- _useState2 = _slicedToArray(_useState, 2),
14
- value = _useState2[0],
15
- update = _useState2[1];
10
+ let {
11
+ children
12
+ } = _ref;
13
+ const [value, update] = useState(initialValue);
16
14
  return /*#__PURE__*/jsx(ValueContext.Provider, {
17
15
  value: value,
18
16
  children: /*#__PURE__*/jsx(UpdateContext.Provider, {
@@ -21,21 +19,20 @@ function createStatefulContext(initialValue) {
21
19
  })
22
20
  });
23
21
  }
24
- Provider.propTypes = {
25
- children: PropTypes.node
26
- };
27
22
  Provider.displayName = "".concat(name, "Provider");
28
23
  function useUpdate(value, skipUpdate) {
29
- var update = useContext(UpdateContext);
30
- useEffect(function () {
24
+ const update = useContext(UpdateContext);
25
+ useEffect(() => {
31
26
  if (!skipUpdate) {
32
27
  update(value);
33
28
  }
34
29
  }, [update, value, skipUpdate]);
35
30
  }
36
31
  function Updater(_ref2) {
37
- var value = _ref2.value,
38
- skipUpdate = _ref2.skipUpdate;
32
+ let {
33
+ value,
34
+ skipUpdate
35
+ } = _ref2;
39
36
  useUpdate(value, skipUpdate);
40
37
  return null;
41
38
  }
@@ -1,29 +1,24 @@
1
- import { j as _toConsumableArray, i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.array.concat.js';
3
1
  import 'core-js/modules/es.array.reduce.js';
4
- import 'core-js/modules/es.object.entries.js';
5
- import 'core-js/modules/es.object.to-string.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
6
3
 
7
4
  function expandMap(attrsMap) {
8
- return Object.entries(attrsMap).reduce(function (result, _ref) {
9
- var _ref2 = _slicedToArray(_ref, 2),
10
- key = _ref2[0],
11
- value = _ref2[1];
12
- return value ? [].concat(_toConsumableArray(result), [key]) : result;
5
+ return Object.entries(attrsMap).reduce((result, _ref) => {
6
+ let [key, value] = _ref;
7
+ return value ? [...result, key] : result;
13
8
  }, []);
14
9
  }
15
10
  function joinDataTestAttributes() {
16
11
  for (var _len = arguments.length, attrs = new Array(_len), _key = 0; _key < _len; _key++) {
17
12
  attrs[_key] = arguments[_key];
18
13
  }
19
- return attrs.reduce(function (result, attr) {
14
+ return attrs.reduce((result, attr) => {
20
15
  if (!attr) {
21
16
  return result;
22
17
  }
23
18
  if (typeof attr === 'object') {
24
- return [].concat(_toConsumableArray(result), _toConsumableArray(expandMap(attr)));
19
+ return [...result, ...expandMap(attr)];
25
20
  }
26
- return [].concat(_toConsumableArray(result), [attr]);
21
+ return [...result, attr];
27
22
  }, []).join(' ');
28
23
  }
29
24
 
@@ -1,26 +1,18 @@
1
- import { i as _slicedToArray, b as _createClass, e as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.array.filter.js';
3
- import 'core-js/modules/es.array.iterator.js';
4
- import 'core-js/modules/es.object.assign.js';
5
- import 'core-js/modules/es.object.entries.js';
6
- import 'core-js/modules/es.object.to-string.js';
1
+ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
7
2
  import 'core-js/modules/es.regexp.exec.js';
8
- import 'core-js/modules/es.set.js';
9
- import 'core-js/modules/es.string.split.js';
10
- import 'core-js/modules/web.dom-collections.for-each.js';
11
3
  import 'core-js/modules/web.dom-collections.iterator.js';
12
4
 
13
5
  /**
14
6
  * @name DOM
15
7
  */
16
- var getStyles = window.getComputedStyle.bind(window);
8
+ const getStyles = window.getComputedStyle.bind(window);
17
9
  function isMounted(node) {
18
10
  if (node === document) {
19
11
  return true;
20
12
  }
21
13
  return node instanceof Node && document.documentElement.contains(node.parentNode);
22
14
  }
23
- var rectStub = {
15
+ const rectStub = {
24
16
  top: 0,
25
17
  right: 0,
26
18
  bottom: 0,
@@ -30,13 +22,14 @@ var rectStub = {
30
22
  };
31
23
  function getRect(node) {
32
24
  if (node instanceof Range || node != null && isMounted(node)) {
33
- var _node$getBoundingClie = node.getBoundingClientRect(),
34
- top = _node$getBoundingClie.top,
35
- right = _node$getBoundingClie.right,
36
- bottom = _node$getBoundingClie.bottom,
37
- left = _node$getBoundingClie.left,
38
- width = _node$getBoundingClie.width,
39
- height = _node$getBoundingClie.height;
25
+ const {
26
+ top,
27
+ right,
28
+ bottom,
29
+ left,
30
+ width,
31
+ height
32
+ } = node.getBoundingClientRect();
40
33
  return {
41
34
  top,
42
35
  right,
@@ -59,11 +52,12 @@ function getWindowWidth() {
59
52
  return window.innerWidth;
60
53
  }
61
54
  function isNodeInVisiblePartOfPage(node) {
62
- var _getRect = getRect(node),
63
- top = _getRect.top,
64
- bottom = _getRect.bottom,
65
- left = _getRect.left,
66
- right = _getRect.right;
55
+ const {
56
+ top,
57
+ bottom,
58
+ left,
59
+ right
60
+ } = getRect(node);
67
61
  return !(bottom < 0 || right < 0 || getWindowHeight() - top < 0 || getWindowWidth() - left < 0);
68
62
  }
69
63
  function getDocumentScrollTop() {
@@ -72,74 +66,47 @@ function getDocumentScrollTop() {
72
66
  function getDocumentScrollLeft() {
73
67
  return document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft;
74
68
  }
75
- var applyMethodToClasses = function applyMethodToClasses(method) {
76
- return function (classList) {
77
- var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
78
- classes.split(/\s+/g).filter(function (className) {
79
- return !!className;
80
- }).forEach(function (className) {
81
- return classList[method](className);
82
- });
83
- };
84
- };
85
- var addClasses = applyMethodToClasses('add');
86
- var removeClasses = applyMethodToClasses('remove');
87
- var toggleClasses = function toggleClasses(classList, classes) {
88
- return Object.entries(classes).forEach(function (_ref) {
89
- var _ref2 = _slicedToArray(_ref, 2),
90
- className = _ref2[0],
91
- on = _ref2[1];
92
- return classList.toggle(className, on);
93
- });
69
+ const applyMethodToClasses = method => function (classList) {
70
+ let classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
71
+ classes.split(/\s+/g).filter(className => !!className).forEach(className => classList[method](className));
94
72
  };
73
+ const addClasses = applyMethodToClasses('add');
74
+ const removeClasses = applyMethodToClasses('remove');
75
+ const toggleClasses = (classList, classes) => Object.entries(classes).forEach(_ref => {
76
+ let [className, on] = _ref;
77
+ return classList.toggle(className, on);
78
+ });
95
79
  function setRootStyleProperties() {
96
- var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
97
- var rootStyle = document.documentElement.style;
98
- Object.entries(properties).forEach(function (_ref3) {
99
- var _ref4 = _slicedToArray(_ref3, 2),
100
- key = _ref4[0],
101
- value = _ref4[1];
80
+ let properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
81
+ const rootStyle = document.documentElement.style;
82
+ Object.entries(properties).forEach(_ref2 => {
83
+ let [key, value] = _ref2;
102
84
  rootStyle.setProperty(key, value);
103
85
  });
104
86
  }
105
87
  function resetRootStyleProperties() {
106
- var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
107
- var rootStyle = document.documentElement.style;
108
- Object.keys(properties).forEach(function (key) {
109
- return rootStyle.removeProperty(key);
110
- });
88
+ let properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
89
+ const rootStyle = document.documentElement.style;
90
+ Object.keys(properties).forEach(key => rootStyle.removeProperty(key));
111
91
  }
112
- var Listeners = /*#__PURE__*/function () {
113
- function Listeners() {
114
- _classCallCheck(this, Listeners);
92
+ class Listeners {
93
+ constructor() {
115
94
  _defineProperty(this, "_all", new Set());
116
95
  }
117
- return _createClass(Listeners, [{
118
- key: "add",
119
- value: function add(el, event, handler, options) {
120
- el.addEventListener(event, handler, options);
121
- var dispatchFn = function dispatchFn() {
122
- return el.removeEventListener(event, handler, options);
123
- };
124
- this._all.add(dispatchFn);
125
- return dispatchFn;
126
- }
127
- }, {
128
- key: "remove",
129
- value: function remove(fn) {
130
- fn();
131
- this._all.delete(fn);
132
- }
133
- }, {
134
- key: "removeAll",
135
- value: function removeAll() {
136
- var _this = this;
137
- this._all.forEach(function (fn) {
138
- return _this.remove(fn);
139
- });
140
- }
141
- }]);
142
- }();
96
+ add(el, event, handler, options) {
97
+ el.addEventListener(event, handler, options);
98
+ const dispatchFn = () => el.removeEventListener(event, handler, options);
99
+ this._all.add(dispatchFn);
100
+ return dispatchFn;
101
+ }
102
+ remove(fn) {
103
+ fn();
104
+ this._all.delete(fn);
105
+ }
106
+ removeAll() {
107
+ this._all.forEach(fn => this.remove(fn));
108
+ }
109
+ }
143
110
  // Synthetic events from Combokeys#trigger are plain objects
144
111
  function preventDefault(e) {
145
112
  if (e.preventDefault) {