@jetbrains/ring-ui-built 6.0.34 → 6.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +1 -10
  2. package/components/_helpers/anchor.js +9 -6
  3. package/components/_helpers/caption.js +5 -4
  4. package/components/_helpers/card.js +65 -49
  5. package/components/_helpers/icon__svg.js +4 -3
  6. package/components/_helpers/input.js +45 -36
  7. package/components/_helpers/query-assist__suggestions.js +18 -14
  8. package/components/_helpers/select__filter.js +22 -17
  9. package/components/_helpers/services-link.js +14 -12
  10. package/components/_helpers/sidebar.js +20 -16
  11. package/components/_helpers/tab-link.js +21 -13
  12. package/components/_helpers/theme.js +18 -11
  13. package/components/_helpers/title.js +20 -16
  14. package/components/alert/alert.d.ts +2 -1
  15. package/components/alert/alert.js +20 -17
  16. package/components/alert/container.d.ts +2 -2
  17. package/components/alert/container.js +14 -11
  18. package/components/alert-service/alert-service.d.ts +2 -2
  19. package/components/alert-service/alert-service.js +14 -14
  20. package/components/analytics/analytics.js +1 -1
  21. package/components/analytics/analytics__custom-plugin.js +1 -1
  22. package/components/auth/auth.js +1 -0
  23. package/components/auth/auth__core.js +3 -2
  24. package/components/auth/background-flow.js +1 -1
  25. package/components/auth/down-notification.d.ts +1 -1
  26. package/components/auth/down-notification.js +21 -14
  27. package/components/auth/iframe-flow.js +7 -5
  28. package/components/auth/request-builder.js +1 -1
  29. package/components/auth/response-parser.js +1 -1
  30. package/components/auth/storage.js +3 -2
  31. package/components/auth/token-validator.js +1 -1
  32. package/components/auth/window-flow.js +1 -1
  33. package/components/auth-dialog/auth-dialog.d.ts +2 -2
  34. package/components/auth-dialog/auth-dialog.js +42 -32
  35. package/components/auth-dialog-service/auth-dialog-service.js +6 -7
  36. package/components/avatar/avatar.d.ts +2 -2
  37. package/components/avatar/avatar.js +29 -28
  38. package/components/avatar/fallback-avatar.d.ts +2 -2
  39. package/components/avatar/fallback-avatar.js +50 -37
  40. package/components/badge/badge.d.ts +2 -2
  41. package/components/badge/badge.js +7 -8
  42. package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
  43. package/components/breadcrumbs/breadcrumbs.js +27 -0
  44. package/components/button/button.d.ts +2 -1
  45. package/components/button/button.js +26 -25
  46. package/components/button-group/button-group.d.ts +4 -2
  47. package/components/button-group/button-group.js +19 -10
  48. package/components/button-group/caption.d.ts +2 -2
  49. package/components/button-group/caption.js +1 -0
  50. package/components/button-set/button-set.d.ts +2 -2
  51. package/components/button-set/button-set.js +7 -8
  52. package/components/button-toolbar/button-toolbar.d.ts +2 -2
  53. package/components/button-toolbar/button-toolbar.js +4 -6
  54. package/components/caret/caret.js +1 -1
  55. package/components/checkbox/checkbox.d.ts +3 -2
  56. package/components/checkbox/checkbox.js +33 -28
  57. package/components/clipboard/clipboard.js +3 -2
  58. package/components/code/code.d.ts +3 -3
  59. package/components/code/code.js +14 -11
  60. package/components/collapse/collapse-content.d.ts +2 -1
  61. package/components/collapse/collapse-content.js +13 -10
  62. package/components/collapse/collapse-control.d.ts +1 -1
  63. package/components/collapse/collapse-control.js +10 -11
  64. package/components/collapse/collapse.d.ts +2 -1
  65. package/components/collapse/collapse.js +16 -16
  66. package/components/confirm/confirm.d.ts +2 -1
  67. package/components/confirm/confirm.js +29 -21
  68. package/components/confirm-service/confirm-service.js +6 -4
  69. package/components/content-layout/content-layout.d.ts +2 -2
  70. package/components/content-layout/content-layout.js +12 -12
  71. package/components/content-layout/sidebar.d.ts +2 -2
  72. package/components/content-layout/sidebar.js +1 -0
  73. package/components/contenteditable/contenteditable.d.ts +3 -3
  74. package/components/contenteditable/contenteditable.js +5 -7
  75. package/components/control-help/control-help.d.ts +4 -0
  76. package/components/control-help/control-help.js +16 -0
  77. package/components/control-label/control-label.d.ts +2 -1
  78. package/components/control-label/control-label.js +7 -4
  79. package/components/data-list/data-list.d.ts +11 -11
  80. package/components/data-list/data-list.js +44 -40
  81. package/components/data-list/data-list.mock.d.ts +2 -2
  82. package/components/data-list/data-list.mock.js +165 -73
  83. package/components/data-list/item.d.ts +3 -3
  84. package/components/data-list/item.js +49 -40
  85. package/components/data-list/selection.js +1 -1
  86. package/components/data-list/title.d.ts +3 -3
  87. package/components/data-list/title.js +2 -0
  88. package/components/date-picker/date-input.d.ts +1 -1
  89. package/components/date-picker/date-input.js +5 -3
  90. package/components/date-picker/date-picker.d.ts +2 -1
  91. package/components/date-picker/date-picker.js +43 -34
  92. package/components/date-picker/date-popup.d.ts +2 -1
  93. package/components/date-picker/date-popup.js +51 -45
  94. package/components/date-picker/day.d.ts +2 -2
  95. package/components/date-picker/day.js +11 -8
  96. package/components/date-picker/month-names.d.ts +2 -2
  97. package/components/date-picker/month-names.js +27 -25
  98. package/components/date-picker/month-slider.d.ts +2 -2
  99. package/components/date-picker/month-slider.js +15 -13
  100. package/components/date-picker/month.d.ts +2 -2
  101. package/components/date-picker/month.js +18 -15
  102. package/components/date-picker/months.d.ts +2 -2
  103. package/components/date-picker/months.js +18 -15
  104. package/components/date-picker/weekdays.d.ts +2 -2
  105. package/components/date-picker/weekdays.js +14 -13
  106. package/components/date-picker/years.d.ts +3 -3
  107. package/components/date-picker/years.js +19 -17
  108. package/components/dialog/dialog.d.ts +2 -1
  109. package/components/dialog/dialog.js +48 -45
  110. package/components/dropdown/anchor.d.ts +3 -3
  111. package/components/dropdown/anchor.js +1 -0
  112. package/components/dropdown/dropdown.d.ts +2 -1
  113. package/components/dropdown/dropdown.js +12 -12
  114. package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  115. package/components/dropdown-menu/dropdown-menu.js +41 -29
  116. package/components/editable-heading/editable-heading.d.ts +2 -1
  117. package/components/editable-heading/editable-heading.js +74 -58
  118. package/components/error-bubble/error-bubble.d.ts +2 -2
  119. package/components/error-bubble/error-bubble.js +20 -19
  120. package/components/error-message/error-message.d.ts +2 -2
  121. package/components/error-message/error-message.js +22 -20
  122. package/components/footer/footer.d.ts +2 -2
  123. package/components/footer/footer.js +31 -27
  124. package/components/form/form.js +1 -1
  125. package/components/global/create-stateful-context.d.ts +5 -5
  126. package/components/global/create-stateful-context.js +10 -7
  127. package/components/global/data-tests.js +1 -1
  128. package/components/global/dom.js +1 -1
  129. package/components/global/focus-sensor-hoc.js +4 -3
  130. package/components/global/fuzzy-highlight.js +1 -1
  131. package/components/global/get-event-key.d.ts +1 -1
  132. package/components/global/inject-styles.js +1 -1
  133. package/components/global/listeners.js +1 -1
  134. package/components/global/normalize-indent.js +1 -1
  135. package/components/global/react-dom-renderer.d.ts +2 -2
  136. package/components/global/react-dom-renderer.js +4 -3
  137. package/components/global/rerender-hoc.d.ts +2 -2
  138. package/components/global/rerender-hoc.js +5 -4
  139. package/components/global/theme.d.ts +3 -3
  140. package/components/global/theme.js +1 -0
  141. package/components/global/trivial-template-tag.js +1 -1
  142. package/components/grid/col.d.ts +2 -2
  143. package/components/grid/col.js +7 -5
  144. package/components/grid/grid.d.ts +2 -2
  145. package/components/grid/grid.js +7 -8
  146. package/components/grid/row.d.ts +2 -2
  147. package/components/grid/row.js +7 -5
  148. package/components/group/group.d.ts +2 -2
  149. package/components/group/group.js +7 -8
  150. package/components/header/header.d.ts +2 -2
  151. package/components/header/header.js +12 -14
  152. package/components/header/logo.d.ts +2 -2
  153. package/components/header/logo.js +7 -5
  154. package/components/header/profile.d.ts +4 -3
  155. package/components/header/profile.js +40 -29
  156. package/components/header/services-link.d.ts +2 -2
  157. package/components/header/services-link.js +1 -0
  158. package/components/header/services.d.ts +2 -2
  159. package/components/header/services.js +31 -31
  160. package/components/header/smart-profile.d.ts +2 -2
  161. package/components/header/smart-profile.js +5 -3
  162. package/components/header/smart-services.d.ts +2 -2
  163. package/components/header/smart-services.js +4 -3
  164. package/components/header/tray-icon.d.ts +2 -2
  165. package/components/header/tray-icon.js +4 -3
  166. package/components/header/tray.d.ts +2 -2
  167. package/components/header/tray.js +11 -8
  168. package/components/heading/heading.d.ts +6 -6
  169. package/components/heading/heading.js +8 -9
  170. package/components/http/http.js +1 -1
  171. package/components/http/http.mock.js +2 -1
  172. package/components/hub-source/hub-source.js +1 -1
  173. package/components/hub-source/hub-source__user.js +1 -1
  174. package/components/hub-source/hub-source__users-groups.js +1 -1
  175. package/components/i18n/i18n-context.d.ts +1 -1
  176. package/components/i18n/i18n-context.js +7 -4
  177. package/components/icon/icon.d.ts +2 -2
  178. package/components/icon/icon.js +12 -10
  179. package/components/icon/icon__svg.d.ts +3 -3
  180. package/components/icon/icon__svg.js +1 -0
  181. package/components/icon/index.js +1 -0
  182. package/components/input/input.d.ts +3 -2
  183. package/components/input/input.js +2 -0
  184. package/components/island/adaptive-island-hoc.d.ts +11 -11
  185. package/components/island/adaptive-island-hoc.js +10 -7
  186. package/components/island/content.d.ts +3 -3
  187. package/components/island/content.js +29 -23
  188. package/components/island/header.d.ts +2 -2
  189. package/components/island/header.js +18 -13
  190. package/components/island/island.d.ts +10 -10
  191. package/components/island/island.js +7 -8
  192. package/components/island-legacy/content-legacy.d.ts +2 -2
  193. package/components/island-legacy/content-legacy.js +7 -5
  194. package/components/island-legacy/header-legacy.d.ts +2 -2
  195. package/components/island-legacy/header-legacy.js +10 -7
  196. package/components/island-legacy/island-legacy.d.ts +2 -2
  197. package/components/island-legacy/island-legacy.js +7 -5
  198. package/components/link/clickableLink.d.ts +2 -1
  199. package/components/link/clickableLink.js +8 -6
  200. package/components/link/link.d.ts +15 -15
  201. package/components/link/link.js +12 -9
  202. package/components/list/consts.d.ts +2 -1
  203. package/components/list/list.d.ts +10 -10
  204. package/components/list/list.js +109 -95
  205. package/components/list/list__custom.d.ts +2 -1
  206. package/components/list/list__custom.js +7 -5
  207. package/components/list/list__hint.d.ts +2 -2
  208. package/components/list/list__hint.js +7 -9
  209. package/components/list/list__item.d.ts +2 -2
  210. package/components/list/list__item.js +73 -65
  211. package/components/list/list__link.d.ts +2 -2
  212. package/components/list/list__link.js +8 -10
  213. package/components/list/list__separator.d.ts +2 -2
  214. package/components/list/list__separator.js +7 -5
  215. package/components/list/list__title.d.ts +2 -2
  216. package/components/list/list__title.js +15 -11
  217. package/components/list/list__users-groups-source.js +3 -1
  218. package/components/loader/loader.d.ts +2 -2
  219. package/components/loader/loader.js +5 -10
  220. package/components/loader/loader__core.js +1 -1
  221. package/components/loader-inline/loader-inline.d.ts +2 -2
  222. package/components/loader-inline/loader-inline.js +10 -9
  223. package/components/loader-screen/loader-screen.d.ts +2 -2
  224. package/components/loader-screen/loader-screen.js +10 -11
  225. package/components/login-dialog/login-dialog.d.ts +2 -2
  226. package/components/login-dialog/login-dialog.js +21 -16
  227. package/components/login-dialog/service.js +6 -4
  228. package/components/markdown/markdown.d.ts +2 -2
  229. package/components/markdown/markdown.js +7 -8
  230. package/components/message/message.d.ts +2 -2
  231. package/components/message/message.js +50 -41
  232. package/components/old-browsers-message/white-list.js +1 -1
  233. package/components/pager/pager.d.ts +2 -1
  234. package/components/pager/pager.js +71 -53
  235. package/components/panel/panel.d.ts +2 -2
  236. package/components/panel/panel.js +7 -8
  237. package/components/permissions/permissions.js +1 -1
  238. package/components/permissions/permissions__cache.js +1 -1
  239. package/components/popup/popup.d.ts +2 -1
  240. package/components/popup/popup.js +46 -39
  241. package/components/popup/popup.target.d.ts +3 -3
  242. package/components/popup/popup.target.js +11 -8
  243. package/components/popup-menu/popup-menu.d.ts +2 -2
  244. package/components/popup-menu/popup-menu.js +13 -9
  245. package/components/progress-bar/progress-bar.d.ts +2 -2
  246. package/components/progress-bar/progress-bar.js +17 -18
  247. package/components/query-assist/query-assist.d.ts +3 -2
  248. package/components/query-assist/query-assist.js +122 -109
  249. package/components/query-assist/query-assist__suggestions.d.ts +2 -2
  250. package/components/query-assist/query-assist__suggestions.js +3 -1
  251. package/components/radio/radio.d.ts +3 -3
  252. package/components/radio/radio.js +8 -8
  253. package/components/radio/radio__item.d.ts +9 -6
  254. package/components/radio/radio__item.js +46 -37
  255. package/components/select/select.d.ts +5 -2
  256. package/components/select/select.js +201 -180
  257. package/components/select/select__filter.d.ts +2 -2
  258. package/components/select/select__filter.js +2 -0
  259. package/components/select/select__popup.d.ts +6 -4
  260. package/components/select/select__popup.js +101 -84
  261. package/components/shortcuts/core.d.ts +0 -1
  262. package/components/shortcuts/core.js +1 -1
  263. package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
  264. package/components/shortcuts/shortcuts-hoc.js +10 -8
  265. package/components/shortcuts/shortcuts.js +1 -1
  266. package/components/slider/slider.d.ts +2 -1
  267. package/components/slider/slider.js +78 -78
  268. package/components/slider/slider.utils.js +1 -1
  269. package/components/storage/storage.js +2 -1
  270. package/components/storage/storage__fallback.js +1 -1
  271. package/components/storage/storage__local.js +3 -2
  272. package/components/style.css +1 -1
  273. package/components/tab-trap/tab-trap.d.ts +2 -1
  274. package/components/tab-trap/tab-trap.js +25 -20
  275. package/components/table/cell.d.ts +2 -2
  276. package/components/table/cell.js +7 -5
  277. package/components/table/disable-hover-hoc.d.ts +9 -9
  278. package/components/table/disable-hover-hoc.js +4 -3
  279. package/components/table/header-cell.d.ts +2 -2
  280. package/components/table/header-cell.js +17 -13
  281. package/components/table/header.d.ts +3 -3
  282. package/components/table/header.js +34 -26
  283. package/components/table/multitable.d.ts +2 -2
  284. package/components/table/multitable.js +12 -10
  285. package/components/table/row-with-focus-sensor.d.ts +3 -3
  286. package/components/table/row-with-focus-sensor.js +5 -3
  287. package/components/table/row.d.ts +2 -1
  288. package/components/table/row.js +50 -44
  289. package/components/table/selection-adapter.js +1 -1
  290. package/components/table/selection-shortcuts-hoc.js +4 -3
  291. package/components/table/selection.js +1 -1
  292. package/components/table/smart-table.d.ts +44 -44
  293. package/components/table/smart-table.js +5 -3
  294. package/components/table/table.d.ts +2 -1
  295. package/components/table/table.js +55 -45
  296. package/components/tabs/collapsible-more.d.ts +4 -4
  297. package/components/tabs/collapsible-more.js +37 -30
  298. package/components/tabs/collapsible-tab.d.ts +2 -1
  299. package/components/tabs/collapsible-tab.js +6 -6
  300. package/components/tabs/collapsible-tabs.d.ts +4 -4
  301. package/components/tabs/collapsible-tabs.js +51 -46
  302. package/components/tabs/dumb-tabs.d.ts +2 -1
  303. package/components/tabs/dumb-tabs.js +24 -18
  304. package/components/tabs/smart-tabs.d.ts +2 -2
  305. package/components/tabs/smart-tabs.js +8 -4
  306. package/components/tabs/tab-link.d.ts +3 -3
  307. package/components/tabs/tab-link.js +1 -0
  308. package/components/tabs/tab.d.ts +2 -2
  309. package/components/tabs/tab.js +7 -5
  310. package/components/tabs/tabs.js +2 -0
  311. package/components/tag/tag.d.ts +2 -1
  312. package/components/tag/tag.js +31 -28
  313. package/components/tags-input/tags-input.d.ts +3 -2
  314. package/components/tags-input/tags-input.js +52 -47
  315. package/components/tags-list/tags-list.d.ts +2 -1
  316. package/components/tags-list/tags-list.js +8 -5
  317. package/components/text/text.d.ts +2 -2
  318. package/components/text/text.js +7 -4
  319. package/components/toggle/toggle.d.ts +2 -2
  320. package/components/toggle/toggle.js +25 -20
  321. package/components/tooltip/tooltip.d.ts +2 -1
  322. package/components/tooltip/tooltip.js +26 -21
  323. package/components/user-agreement/service.js +20 -12
  324. package/components/user-agreement/user-agreement.d.ts +2 -2
  325. package/components/user-agreement/user-agreement.js +56 -39
  326. package/components/user-card/card.d.ts +2 -1
  327. package/components/user-card/card.js +1 -0
  328. package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
  329. package/components/user-card/smart-user-card-tooltip.js +11 -7
  330. package/components/user-card/tooltip.d.ts +3 -3
  331. package/components/user-card/tooltip.js +15 -11
  332. package/components/user-card/user-card.js +1 -0
  333. package/package.json +5 -5
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Pager
3
3
  */
4
- import React, { PureComponent, ReactNode } from 'react';
4
+ import { PureComponent, ReactNode } from 'react';
5
+ import * as React from 'react';
5
6
  import { SelectItem } from '../select/select';
6
7
  export interface PagerTranslations {
7
8
  perPage: string;
@@ -1,9 +1,9 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createClass, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.array.find.js';
4
4
  import 'core-js/modules/es.array.map.js';
5
5
  import 'core-js/modules/es.object.to-string.js';
6
- import React, { PureComponent } from 'react';
6
+ import { PureComponent } from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import classNames from 'classnames';
9
9
  import chevronLeftIcon from '@jetbrains/icons/chevron-left';
@@ -16,6 +16,7 @@ import memoize from '../global/memoize.js';
16
16
  import Link from '../link/link.js';
17
17
  import Icon from '../icon/icon.js';
18
18
  import { I18nContext } from '../i18n/i18n-context.js';
19
+ import { jsx, jsxs } from 'react/jsx-runtime';
19
20
  import '@jetbrains/icons/chevron-10px';
20
21
  import '../link/clickableLink.js';
21
22
  import '../global/controls-height.js';
@@ -34,6 +35,8 @@ import 'core-js/modules/es.string.split.js';
34
35
  import '../global/data-tests.js';
35
36
  import 'core-js/modules/es.array.reduce.js';
36
37
  import 'core-js/modules/es.object.entries.js';
38
+ import '../control-label/control-label.js';
39
+ import '../control-help/control-help.js';
37
40
  import '../_helpers/caption.js';
38
41
  import 'core-js/modules/es.array.filter.js';
39
42
  import 'core-js/modules/es.array.index-of.js';
@@ -99,7 +102,6 @@ import '../list/list__separator.js';
99
102
  import '../list/list__hint.js';
100
103
  import '../list/consts.js';
101
104
  import '../_helpers/input.js';
102
- import '../control-label/control-label.js';
103
105
  import '../global/rerender-hoc.js';
104
106
  import '../global/fuzzy-highlight.js';
105
107
  import '../select/select__popup.js';
@@ -197,13 +199,14 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
197
199
  }, {
198
200
  key: "getButton",
199
201
  value: function getButton(page, content, key, active) {
200
- return /*#__PURE__*/React.createElement(Button, _extends({
202
+ return /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
201
203
  href: this.generateHref(page),
202
- key: key,
203
204
  active: active,
204
205
  disabled: this.props.loader && !active && !this.props.loaderNavigation,
205
206
  loader: this.props.loader && active
206
- }, this.getClickProps(this.handlePageChange(page))), content);
207
+ }, this.getClickProps(this.handlePageChange(page))), {}, {
208
+ children: content
209
+ }), key);
207
210
  }
208
211
  }, {
209
212
  key: "getClickProps",
@@ -227,18 +230,19 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
227
230
  key: "getPageSizeSelector",
228
231
  value: function getPageSizeSelector() {
229
232
  var selectOptions = this.getSelectOptions();
230
- return !this.props.disablePageSizeSelector && /*#__PURE__*/React.createElement("div", {
233
+ return !this.props.disablePageSizeSelector && /*#__PURE__*/jsx("div", {
231
234
  "data-test": "ring-pager-page-size-selector",
232
235
  style: {
233
236
  float: 'right'
234
- }
235
- }, /*#__PURE__*/React.createElement(Select, {
236
- data: selectOptions.data,
237
- selected: selectOptions.selected,
238
- onSelect: this.handlePageSizeChange,
239
- type: Select.Type.INLINE,
240
- disabled: this.props.loader
241
- }));
237
+ },
238
+ children: /*#__PURE__*/jsx(Select, {
239
+ data: selectOptions.data,
240
+ selected: selectOptions.selected,
241
+ onSelect: this.handlePageSizeChange,
242
+ type: Select.Type.INLINE,
243
+ disabled: this.props.loader
244
+ })
245
+ });
242
246
  }
243
247
  }, {
244
248
  key: "getPagerLinks",
@@ -247,45 +251,50 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
247
251
  var translate = this.context.translate;
248
252
  var prevLinkAvailable = this.props.currentPage !== 1;
249
253
  var nextLinkAvailable = this.props.openTotal || this.props.currentPage !== this.getTotalPages();
250
- var nextIcon = /*#__PURE__*/React.createElement(Icon, {
251
- glyph: chevronRightIcon,
252
- key: "icon"
253
- });
254
- var prevIcon = /*#__PURE__*/React.createElement(Icon, {
255
- glyph: chevronLeftIcon,
256
- key: "icon"
257
- });
254
+ var nextIcon = /*#__PURE__*/jsx(Icon, {
255
+ glyph: chevronRightIcon
256
+ }, "icon");
257
+ var prevIcon = /*#__PURE__*/jsx(Icon, {
258
+ glyph: chevronLeftIcon
259
+ }, "icon");
258
260
  var prevText = (_this$props$translati = (_this$props$translati2 = this.props.translations) === null || _this$props$translati2 === void 0 ? void 0 : _this$props$translati2.previousPage) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('previousPage');
259
261
  var nextText = (_this$props$translati3 = (_this$props$translati4 = this.props.translations) === null || _this$props$translati4 === void 0 ? void 0 : _this$props$translati4.nextPage) !== null && _this$props$translati3 !== void 0 ? _this$props$translati3 : translate('nextPage');
260
- var nextLinkContent = [/*#__PURE__*/React.createElement("span", {
261
- key: "text"
262
- }, nextText), nextIcon];
263
- var prevLinkContent = [prevIcon, /*#__PURE__*/React.createElement("span", {
264
- key: "text"
265
- }, prevText)];
262
+ var nextLinkContent = [/*#__PURE__*/jsx("span", {
263
+ children: nextText
264
+ }, "text"), nextIcon];
265
+ var prevLinkContent = [prevIcon, /*#__PURE__*/jsx("span", {
266
+ children: prevText
267
+ }, "text")];
266
268
  var prevLinkHref = this.generateHref(this.props.currentPage - 1);
267
269
  var nextLinkHref = this.generateHref(this.props.currentPage + 1);
268
270
  var disabledLinkClasses = classNames({
269
271
  [modules_1a5f0d42.link]: true,
270
272
  [modules_1a5f0d42.linkDisabled]: true
271
273
  });
272
- return /*#__PURE__*/React.createElement("div", {
273
- className: modules_1a5f0d42.links
274
- }, prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/React.createElement(Link, _extends({
275
- href: prevLinkHref,
276
- className: modules_1a5f0d42.link
277
- }, this.getClickProps(this.handlePrevClick)), prevLinkContent) : /*#__PURE__*/React.createElement("span", {
278
- className: disabledLinkClasses
279
- }, prevIcon, /*#__PURE__*/React.createElement("span", {
280
- key: "text"
281
- }, prevText)), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/React.createElement(Link, _extends({
282
- href: nextLinkHref,
283
- className: modules_1a5f0d42.link
284
- }, this.getClickProps(this.handleNextClick)), nextLinkContent) : /*#__PURE__*/React.createElement("span", {
285
- className: disabledLinkClasses
286
- }, /*#__PURE__*/React.createElement("span", {
287
- key: "text"
288
- }, nextText), nextIcon));
274
+ return /*#__PURE__*/jsxs("div", {
275
+ className: modules_1a5f0d42.links,
276
+ children: [prevLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, _objectSpread2(_objectSpread2({
277
+ href: prevLinkHref,
278
+ className: modules_1a5f0d42.link
279
+ }, this.getClickProps(this.handlePrevClick)), {}, {
280
+ children: prevLinkContent
281
+ })) : /*#__PURE__*/jsxs("span", {
282
+ className: disabledLinkClasses,
283
+ children: [prevIcon, /*#__PURE__*/jsx("span", {
284
+ children: prevText
285
+ }, "text")]
286
+ }), nextLinkAvailable && (!this.props.loader || this.props.loaderNavigation) ? /*#__PURE__*/jsx(Link, _objectSpread2(_objectSpread2({
287
+ href: nextLinkHref,
288
+ className: modules_1a5f0d42.link
289
+ }, this.getClickProps(this.handleNextClick)), {}, {
290
+ children: nextLinkContent
291
+ })) : /*#__PURE__*/jsxs("span", {
292
+ className: disabledLinkClasses,
293
+ children: [/*#__PURE__*/jsx("span", {
294
+ children: nextText
295
+ }, "text"), nextIcon]
296
+ })]
297
+ });
289
298
  }
290
299
  }, {
291
300
  key: "generateHref",
@@ -335,19 +344,28 @@ var Pager = /*#__PURE__*/function (_PureComponent) {
335
344
  buttons.push(this.getButton(i, i, i, i === currentPage));
336
345
  }
337
346
  var lastPageButtonAvailable = end < totalPages && !this.props.openTotal || this.props.openTotal && this.props.canLoadLastPageWithOpenTotal;
338
- return /*#__PURE__*/React.createElement("div", null, this.getPagerLinks(), /*#__PURE__*/React.createElement(ButtonToolbar, null, start > 1 && this.getButton(1, (_this$props$translati5 = (_this$props$translati6 = this.props.translations) === null || _this$props$translati6 === void 0 ? void 0 : _this$props$translati6.firstPage) !== null && _this$props$translati5 !== void 0 ? _this$props$translati5 : translate('firstPage')), /*#__PURE__*/React.createElement(ButtonGroup, null, start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && /*#__PURE__*/React.createElement(Button, _extends({
339
- href: this.generateHref(end + 1),
340
- disabled: this.props.loader
341
- }, this.getClickProps(this.handleLoadMore(end + 1))), '...')), lastPageButtonAvailable && this.getButton(this.props.openTotal ? -1 : totalPages, (_this$props$translati7 = (_this$props$translati8 = this.props.translations) === null || _this$props$translati8 === void 0 ? void 0 : _this$props$translati8.lastPage) !== null && _this$props$translati7 !== void 0 ? _this$props$translati7 : translate('lastPage'))), this.getPageSizeSelector());
347
+ return /*#__PURE__*/jsxs("div", {
348
+ children: [this.getPagerLinks(), /*#__PURE__*/jsxs(ButtonToolbar, {
349
+ children: [start > 1 && this.getButton(1, (_this$props$translati5 = (_this$props$translati6 = this.props.translations) === null || _this$props$translati6 === void 0 ? void 0 : _this$props$translati6.firstPage) !== null && _this$props$translati5 !== void 0 ? _this$props$translati5 : translate('firstPage')), /*#__PURE__*/jsxs(ButtonGroup, {
350
+ children: [start > 1 && this.getButton(start - 1, '...'), buttons, end < totalPages && this.getButton(end + 1, '...'), end === totalPages && this.props.openTotal && /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
351
+ href: this.generateHref(end + 1),
352
+ disabled: this.props.loader
353
+ }, this.getClickProps(this.handleLoadMore(end + 1))), {}, {
354
+ children: '...'
355
+ }))]
356
+ }), lastPageButtonAvailable && this.getButton(this.props.openTotal ? -1 : totalPages, (_this$props$translati7 = (_this$props$translati8 = this.props.translations) === null || _this$props$translati8 === void 0 ? void 0 : _this$props$translati8.lastPage) !== null && _this$props$translati7 !== void 0 ? _this$props$translati7 : translate('lastPage'))]
357
+ }), this.getPageSizeSelector()]
358
+ });
342
359
  }
343
360
  }, {
344
361
  key: "render",
345
362
  value: function render() {
346
363
  var classes = classNames(modules_1a5f0d42.pager, this.props.className);
347
- return /*#__PURE__*/React.createElement("div", {
364
+ return /*#__PURE__*/jsx("div", {
348
365
  "data-test": "ring-pager",
349
- className: classes
350
- }, this.getTotalPages() > 1 || this.props.openTotal ? this.getPagerContent() : this.getPageSizeSelector());
366
+ className: classes,
367
+ children: this.getTotalPages() > 1 || this.props.openTotal ? this.getPagerContent() : this.getPageSizeSelector()
368
+ });
351
369
  }
352
370
  }]);
353
371
  }(PureComponent);
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  /**
4
4
  * @name Panel
@@ -8,5 +8,5 @@ export default class Panel extends PureComponent<HTMLAttributes<HTMLElement>> {
8
8
  className: PropTypes.Requireable<string>;
9
9
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
10
10
  };
11
- render(): React.JSX.Element;
11
+ render(): import("react").JSX.Element;
12
12
  }
@@ -1,14 +1,12 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import React, { PureComponent } from 'react';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  var modules_cf670408 = {"light":"light_rui_2ac4","panel":"panel_rui_e32c panel_rui_027b"};
7
8
 
8
9
  var _excluded = ["className", "children"];
9
- /**
10
- * @name Panel
11
- */
12
10
  var Panel = /*#__PURE__*/function (_PureComponent) {
13
11
  function Panel() {
14
12
  _classCallCheck(this, Panel);
@@ -23,9 +21,10 @@ var Panel = /*#__PURE__*/function (_PureComponent) {
23
21
  children = _this$props.children,
24
22
  props = _objectWithoutProperties(_this$props, _excluded);
25
23
  var classes = classNames(modules_cf670408.panel, className);
26
- return /*#__PURE__*/React.createElement("div", _extends({}, props, {
27
- className: classes
28
- }), children);
24
+ return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
25
+ className: classes,
26
+ children: children
27
+ }));
29
28
  }
30
29
  }]);
31
30
  }(PureComponent);
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, b as _createClass, f as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, b as _createClass, e as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.index-of.js';
3
3
  import 'core-js/modules/es.array.map.js';
4
4
  import 'core-js/modules/es.object.to-string.js';
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, b as _createClass, f as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, b as _createClass, e as _classCallCheck } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.reduce.js';
3
3
  import 'core-js/modules/es.object.to-string.js';
4
4
 
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @name Popup
3
3
  */
4
- import React, { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
4
+ import { PureComponent, ReactNode, CSSProperties, SyntheticEvent } from 'react';
5
+ import * as React from 'react';
5
6
  import { Listeners } from '../global/dom';
6
7
  import { PositionStyles } from './position';
7
8
  import { Dimension, Directions, Display, MaxHeight, MinWidth } from './popup.consts';
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper, d as _objectSpread2, j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper, d as _objectSpread2, i as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.object.entries.js';
4
4
  import 'core-js/modules/es.object.to-string.js';
@@ -6,7 +6,7 @@ import 'core-js/modules/es.regexp.exec.js';
6
6
  import 'core-js/modules/es.regexp.to-string.js';
7
7
  import 'core-js/modules/es.string.replace.js';
8
8
  import 'core-js/modules/web.dom-collections.for-each.js';
9
- import React, { PureComponent } from 'react';
9
+ import { PureComponent } from 'react';
10
10
  import { createPortal } from 'react-dom';
11
11
  import PropTypes from 'prop-types';
12
12
  import classNames from 'classnames';
@@ -17,8 +17,9 @@ import Shortcuts from '../shortcuts/shortcuts.js';
17
17
  import joinDataTestAttributes from '../global/data-tests.js';
18
18
  import TabTrap from '../tab-trap/tab-trap.js';
19
19
  import position from './position.js';
20
- import { Display, DEFAULT_DIRECTIONS, Directions, Dimension, MinWidth, MaxHeight } from './popup.consts.js';
20
+ import { DEFAULT_DIRECTIONS, Directions, Dimension, MinWidth, MaxHeight, Display } from './popup.consts.js';
21
21
  import { PopupTargetContext, PopupTarget } from './popup.target.js';
22
+ import { jsx, jsxs } from 'react/jsx-runtime';
22
23
  import 'core-js/modules/es.array.filter.js';
23
24
  import 'core-js/modules/es.array.iterator.js';
24
25
  import 'core-js/modules/es.object.assign.js';
@@ -313,10 +314,11 @@ var Popup = /*#__PURE__*/function (_PureComponent) {
313
314
  trapFocus = _this$props3.trapFocus,
314
315
  autoFocusFirst = _this$props3.autoFocusFirst,
315
316
  children = _this$props3.children;
316
- return trapFocus ? /*#__PURE__*/React.createElement(TabTrap, {
317
+ return trapFocus ? /*#__PURE__*/jsx(TabTrap, {
317
318
  autoFocusFirst: autoFocusFirst,
318
- focusBackOnExit: true
319
- }, children) : children;
319
+ focusBackOnExit: true,
320
+ children: children
321
+ }) : children;
320
322
  }
321
323
  }, {
322
324
  key: "render",
@@ -342,39 +344,44 @@ var Popup = /*#__PURE__*/function (_PureComponent) {
342
344
  [modules_2f69e2e2.showing]: showing
343
345
  });
344
346
  var direction = (this.state.direction || '').toLowerCase().replace(/[_]/g, '-');
345
- return /*#__PURE__*/React.createElement(PopupTargetContext.Consumer, null, function (value) {
346
- _this3.ringPopupTarget = value;
347
- return /*#__PURE__*/React.createElement("span", {
348
- // prevent bubbling through portal
349
- onClick: stop
350
- // This handler only blocks bubbling through React portal
351
- ,
352
- role: "presentation",
353
- ref: _this3.portalRef
354
- }, _this3.shouldUseShortcuts() && /*#__PURE__*/React.createElement(Shortcuts, {
355
- map: _this3.shortcutsMap,
356
- scope: _this3.shortcutsScope
357
- }), (client || _this3.state.client) && (keepMounted || !hidden) && /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(PopupTarget, {
358
- id: _this3.uid,
359
- ref: _this3.containerRef,
360
- onMouseOver: onMouseOver,
361
- onFocus: onMouseOver,
362
- onMouseOut: onMouseOut,
363
- onBlur: onMouseOut,
364
- onContextMenu: onContextMenu
365
- }, /*#__PURE__*/React.createElement("div", {
366
- "data-test": joinDataTestAttributes('ring-popup', dataTest),
367
- "data-test-shown": !hidden && !showing,
368
- "data-test-direction": direction,
369
- ref: _this3.popupRef,
370
- className: classes,
371
- style: style,
372
- onMouseDown: onMouseDown,
373
- onMouseUp: onMouseUp
374
- // mouse handlers are used to track clicking on inner elements
375
- ,
376
- role: "presentation"
377
- }, _this3.getInternalContent())), _this3.getContainer() || document.body));
347
+ return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
348
+ children: function children(value) {
349
+ _this3.ringPopupTarget = value;
350
+ return /*#__PURE__*/jsxs("span", {
351
+ // prevent bubbling through portal
352
+ onClick: stop
353
+ // This handler only blocks bubbling through React portal
354
+ ,
355
+ role: "presentation",
356
+ ref: _this3.portalRef,
357
+ children: [_this3.shouldUseShortcuts() && /*#__PURE__*/jsx(Shortcuts, {
358
+ map: _this3.shortcutsMap,
359
+ scope: _this3.shortcutsScope
360
+ }), (client || _this3.state.client) && (keepMounted || !hidden) && /*#__PURE__*/createPortal( /*#__PURE__*/jsx(PopupTarget, {
361
+ id: _this3.uid,
362
+ ref: _this3.containerRef,
363
+ onMouseOver: onMouseOver,
364
+ onFocus: onMouseOver,
365
+ onMouseOut: onMouseOut,
366
+ onBlur: onMouseOut,
367
+ onContextMenu: onContextMenu,
368
+ children: /*#__PURE__*/jsx("div", {
369
+ "data-test": joinDataTestAttributes('ring-popup', dataTest),
370
+ "data-test-shown": !hidden && !showing,
371
+ "data-test-direction": direction,
372
+ ref: _this3.popupRef,
373
+ className: classes,
374
+ style: style,
375
+ onMouseDown: onMouseDown,
376
+ onMouseUp: onMouseUp
377
+ // mouse handlers are used to track clicking on inner elements
378
+ ,
379
+ role: "presentation",
380
+ children: _this3.getInternalContent()
381
+ })
382
+ }), _this3.getContainer() || document.body)]
383
+ });
384
+ }
378
385
  });
379
386
  }
380
387
  }]);
@@ -1,7 +1,7 @@
1
- import React, { HTMLAttributes, ReactNode } from 'react';
2
- export declare const PopupTargetContext: React.Context<string | Element | undefined>;
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export declare const PopupTargetContext: import("react").Context<string | Element | undefined>;
3
3
  export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
4
  id: string;
5
5
  children: ReactNode | ((target: ReactNode) => ReactNode);
6
6
  }
7
- export declare const PopupTarget: React.ForwardRefExoticComponent<PopupTargetProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const PopupTarget: import("react").ForwardRefExoticComponent<PopupTargetProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,7 @@
1
- import { c as _objectWithoutProperties, e as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import React, { createContext, forwardRef } from 'react';
1
+ import { c as _objectWithoutProperties, d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import { createContext, forwardRef } from 'react';
3
3
  import PropTypes from 'prop-types';
4
+ import { jsx } from 'react/jsx-runtime';
4
5
 
5
6
  var _excluded = ["id", "children"];
6
7
  var PopupTargetContext = /*#__PURE__*/createContext(undefined);
@@ -8,13 +9,15 @@ var PopupTarget = /*#__PURE__*/forwardRef(function PopupTarget(_ref, ref) {
8
9
  var id = _ref.id,
9
10
  children = _ref.children,
10
11
  restProps = _objectWithoutProperties(_ref, _excluded);
11
- var target = /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
12
+ var target = /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
12
13
  "data-portaltarget": id,
13
- ref: ref
14
- }), typeof children !== 'function' && children);
15
- return /*#__PURE__*/React.createElement(PopupTargetContext.Provider, {
16
- value: id
17
- }, typeof children === 'function' ? children(target) : target);
14
+ ref: ref,
15
+ children: typeof children !== 'function' && children
16
+ }));
17
+ return /*#__PURE__*/jsx(PopupTargetContext.Provider, {
18
+ value: id,
19
+ children: typeof children === 'function' ? children(target) : target
20
+ });
18
21
  });
19
22
  PopupTarget.propTypes = {
20
23
  id: PropTypes.string.isRequired,
@@ -1,4 +1,4 @@
1
- import React, { SyntheticEvent } from 'react';
1
+ import { SyntheticEvent } from 'react';
2
2
  import Popup, { BasePopupProps } from '../popup/popup';
3
3
  import List, { ListProps as ListPropsType } from '../list/list';
4
4
  import { ListDataItem } from '../list/consts';
@@ -61,7 +61,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
61
61
  list?: List<T> | null;
62
62
  listRef: (el: List<T> | null) => void;
63
63
  /** @override */
64
- getInternalContent(): React.JSX.Element;
64
+ getInternalContent(): import("react").JSX.Element;
65
65
  }
66
66
  export type PopupMenuAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof PopupMenu, PopupMenuProps<T>>;
67
67
  export declare const ListProps: {
@@ -1,15 +1,16 @@
1
- import { c as _objectWithoutProperties, _ as _defineProperty, d as _objectSpread2, a as _inherits, b as _createClass, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { c as _objectWithoutProperties, _ as _defineProperty, d as _objectSpread2, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import React from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import Popup from '../popup/popup.js';
6
5
  import List from '../list/list.js';
6
+ import { jsx } from 'react/jsx-runtime';
7
7
  import 'core-js/modules/es.object.entries.js';
8
8
  import 'core-js/modules/es.object.to-string.js';
9
9
  import 'core-js/modules/es.regexp.exec.js';
10
10
  import 'core-js/modules/es.regexp.to-string.js';
11
11
  import 'core-js/modules/es.string.replace.js';
12
12
  import 'core-js/modules/web.dom-collections.for-each.js';
13
+ import 'react';
13
14
  import 'react-dom';
14
15
  import 'classnames';
15
16
  import '../global/get-uid.js';
@@ -73,6 +74,7 @@ import '../_helpers/icon__svg.js';
73
74
  import 'core-js/modules/es.string.starts-with.js';
74
75
  import '../global/prop-types.js';
75
76
  import '../global/composeRefs.js';
77
+ import '../control-help/control-help.js';
76
78
  import '../list/list__custom.js';
77
79
  import '../global/get-event-key.js';
78
80
  import '../list/list__title.js';
@@ -115,13 +117,15 @@ var PopupMenu = /*#__PURE__*/function (_Popup) {
115
117
  var _this$props = this.props;
116
118
  _this$props.className;
117
119
  var props = _objectWithoutProperties(_this$props, _excluded);
118
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(List, _extends({
119
- ref: this.listRef
120
- }, props, {
121
- maxHeight: this.popup && parseFloat(this.popup.style.maxHeight),
122
- shortcuts: this.shouldUseShortcuts(),
123
- onSelect: this.onSelect
124
- })));
120
+ return /*#__PURE__*/jsx("div", {
121
+ children: /*#__PURE__*/jsx(List, _objectSpread2(_objectSpread2({
122
+ ref: this.listRef
123
+ }, props), {}, {
124
+ maxHeight: this.popup && parseFloat(this.popup.style.maxHeight),
125
+ shortcuts: this.shouldUseShortcuts(),
126
+ onSelect: this.onSelect
127
+ }))
128
+ });
125
129
  }
126
130
  }]);
127
131
  }(Popup);
@@ -1,4 +1,4 @@
1
- import React, { HTMLAttributes, PureComponent } from 'react';
1
+ import { HTMLAttributes, PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface ProgressBarProps extends HTMLAttributes<HTMLElement> {
4
4
  max: number;
@@ -59,6 +59,6 @@ export default class ProgressBar extends PureComponent<ProgressBarProps> {
59
59
  progressbarWrapperRef: (el: HTMLElement | null) => void;
60
60
  progressbar?: (HTMLElement | null);
61
61
  progressbarRef: (el: HTMLElement | null) => void;
62
- render(): React.JSX.Element;
62
+ render(): import("react").JSX.Element;
63
63
  }
64
64
  export type ProgressBarAttrs = JSX.LibraryManagedAttributes<typeof ProgressBar, ProgressBarProps>;
@@ -1,15 +1,13 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
- import React, { PureComponent } from 'react';
3
+ import { PureComponent } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import classNames from 'classnames';
6
+ import { jsx } from 'react/jsx-runtime';
6
7
 
7
8
  var modules_fb7af416 = {"dark":"dark_rui_f090","light":"light_rui_2ac4","progressBar":"progressBar_rui_7662","globalMode":"globalMode_rui_7662","line":"line_rui_7662","progress-bar":"progress-bar_rui_7662","staticLineColor":"staticLineColor_rui_7662"};
8
9
 
9
10
  var _excluded = ["className", "global", "max", "value", "label", "staticColor"];
10
- /**
11
- * @name Progress Bar
12
- */
13
11
  var ProgressBar = /*#__PURE__*/function (_PureComponent) {
14
12
  function ProgressBar() {
15
13
  var _this;
@@ -45,20 +43,21 @@ var ProgressBar = /*#__PURE__*/function (_PureComponent) {
45
43
  [modules_fb7af416.globalMode]: global,
46
44
  [modules_fb7af416.staticLineColor]: staticColor
47
45
  });
48
- return /*#__PURE__*/React.createElement("div", _extends({}, otherProps, {
46
+ return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, otherProps), {}, {
49
47
  className: classes,
50
- ref: this.progressbarWrapperRef
51
- }), /*#__PURE__*/React.createElement("div", {
52
- className: modules_fb7af416.line,
53
- ref: this.progressbarRef,
54
- role: "progressbar",
55
- "aria-label": label,
56
- "aria-valuenow": value,
57
- "aria-valuemin": 0,
58
- "aria-valuemax": max,
59
- style: {
60
- width
61
- }
48
+ ref: this.progressbarWrapperRef,
49
+ children: /*#__PURE__*/jsx("div", {
50
+ className: modules_fb7af416.line,
51
+ ref: this.progressbarRef,
52
+ role: "progressbar",
53
+ "aria-label": label,
54
+ "aria-valuenow": value,
55
+ "aria-valuemin": 0,
56
+ "aria-valuemax": max,
57
+ style: {
58
+ width
59
+ }
60
+ })
62
61
  }));
63
62
  }
64
63
  }], [{
@@ -1,4 +1,5 @@
1
- import React, { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
1
+ import { Component, ComponentRef, ReactNode, SyntheticEvent } from 'react';
2
+ import * as React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import Caret, { Position } from '../caret/caret';
4
5
  import PopupMenu from '../popup-menu/popup-menu';
@@ -298,7 +299,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
298
299
  shortcutsScope: string;
299
300
  shortcutsMap: ShortcutsMap;
300
301
  listShortcutsMap: ShortcutsMap;
301
- renderActions(): React.ReactNode[];
302
+ renderActions(): ReactNode[];
302
303
  render(): React.JSX.Element;
303
304
  }
304
305
  export type QueryAssistAttrs = JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;