@jetbrains/ring-ui-built 7.0.62 → 7.0.64

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 (347) hide show
  1. package/components/_helpers/card.js +4 -3
  2. package/components/_helpers/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +4 -4
  3. package/components/_helpers/input.js +8 -8
  4. package/components/_helpers/{select__filter.js → select-filter.js} +1 -1
  5. package/components/_helpers/services-link.js +3 -3
  6. package/components/_helpers/theme.js +2 -2
  7. package/components/alert/alert.d.ts +1 -1
  8. package/components/alert/alert.js +9 -8
  9. package/components/alert/container.d.ts +1 -1
  10. package/components/alert/container.js +2 -2
  11. package/components/alert-service/alert-service.d.ts +2 -2
  12. package/components/alert-service/alert-service.js +4 -4
  13. package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
  14. package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
  15. package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
  16. package/components/auth/{auth__core.js → auth-core.js} +18 -22
  17. package/components/auth/auth.d.ts +2 -2
  18. package/components/auth/auth.js +8 -8
  19. package/components/auth/background-flow.d.ts +2 -2
  20. package/components/auth/background-flow.js +1 -3
  21. package/components/auth/down-notification.js +6 -6
  22. package/components/auth/iframe-flow.d.ts +3 -3
  23. package/components/auth/iframe-flow.js +9 -11
  24. package/components/auth/request-builder.d.ts +2 -1
  25. package/components/auth/request-builder.js +1 -2
  26. package/components/auth/storage.d.ts +3 -3
  27. package/components/auth/storage.js +9 -11
  28. package/components/auth/token-validator.d.ts +2 -1
  29. package/components/auth/token-validator.js +12 -3
  30. package/components/auth/window-flow.d.ts +3 -3
  31. package/components/auth/window-flow.js +5 -7
  32. package/components/auth-dialog/auth-dialog.js +9 -9
  33. package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
  34. package/components/auth-dialog-service/auth-dialog-service.js +5 -5
  35. package/components/avatar/avatar-info.d.ts +1 -1
  36. package/components/avatar/avatar.d.ts +1 -1
  37. package/components/avatar/avatar.figma.js +1 -2
  38. package/components/avatar/avatar.js +16 -17
  39. package/components/avatar/fallback-avatar.js +17 -18
  40. package/components/avatar-stack/avatar-stack.d.ts +3 -3
  41. package/components/avatar-stack/avatar-stack.figma.js +1 -2
  42. package/components/avatar-stack/avatar-stack.js +12 -12
  43. package/components/banner/banner.js +4 -4
  44. package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  45. package/components/breadcrumbs/breadcrumbs.figma.js +1 -2
  46. package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
  47. package/components/button/button.classes.js +2 -0
  48. package/components/button/button.d.ts +4 -4
  49. package/components/button/button.figma.js +1 -2
  50. package/components/button/button.js +9 -9
  51. package/components/button-group/button-group.d.ts +1 -1
  52. package/components/button-group/button-group.js +1 -1
  53. package/components/button-group/caption.d.ts +1 -1
  54. package/components/button-set/button-set.d.ts +1 -1
  55. package/components/button-toolbar/button-toolbar.d.ts +1 -1
  56. package/components/caret/caret.js +24 -17
  57. package/components/checkbox/checkbox-group.figma.js +1 -2
  58. package/components/checkbox/checkbox.d.ts +1 -1
  59. package/components/checkbox/checkbox.figma.js +1 -2
  60. package/components/checkbox/checkbox.js +8 -8
  61. package/components/clipboard/clipboard.js +8 -8
  62. package/components/code/code.d.ts +1 -1
  63. package/components/code/code.js +3 -3
  64. package/components/collapse/collapse-content.d.ts +3 -3
  65. package/components/collapse/collapse-control.d.ts +2 -2
  66. package/components/collapse/collapse.d.ts +3 -3
  67. package/components/confirm/confirm.d.ts +1 -1
  68. package/components/confirm/confirm.js +8 -8
  69. package/components/confirm-service/confirm-service.d.ts +3 -3
  70. package/components/confirm-service/confirm-service.js +5 -5
  71. package/components/content-layout/content-layout.d.ts +1 -1
  72. package/components/content-layout/content-layout.js +2 -2
  73. package/components/content-layout/sidebar.d.ts +1 -1
  74. package/components/contenteditable/contenteditable.d.ts +1 -1
  75. package/components/contenteditable/contenteditable.js +2 -1
  76. package/components/control-help/control-help.d.ts +1 -1
  77. package/components/control-label/control-label.d.ts +1 -1
  78. package/components/data-list/data-list.d.ts +5 -5
  79. package/components/data-list/data-list.js +8 -8
  80. package/components/data-list/data-list.mock.d.ts +2 -2
  81. package/components/data-list/data-list.mock.js +24 -24
  82. package/components/data-list/item.d.ts +3 -3
  83. package/components/data-list/item.js +9 -9
  84. package/components/data-list/selection.d.ts +1 -1
  85. package/components/data-list/selection.js +8 -1
  86. package/components/data-list/title.d.ts +2 -2
  87. package/components/data-list/title.js +3 -3
  88. package/components/date-picker/consts.d.ts +1 -1
  89. package/components/date-picker/date-input.d.ts +1 -1
  90. package/components/date-picker/date-input.js +7 -7
  91. package/components/date-picker/date-picker.d.ts +5 -5
  92. package/components/date-picker/date-picker.js +27 -22
  93. package/components/date-picker/date-popup.d.ts +1 -1
  94. package/components/date-picker/date-popup.js +9 -8
  95. package/components/date-picker/day.d.ts +2 -2
  96. package/components/date-picker/day.js +4 -4
  97. package/components/date-picker/formats.js +1 -0
  98. package/components/date-picker/month-names.d.ts +1 -1
  99. package/components/date-picker/month-names.js +1 -1
  100. package/components/date-picker/month-slider.d.ts +2 -2
  101. package/components/date-picker/month-slider.js +1 -1
  102. package/components/date-picker/month.d.ts +1 -1
  103. package/components/date-picker/months.d.ts +1 -1
  104. package/components/date-picker/months.js +2 -2
  105. package/components/date-picker/years.d.ts +1 -1
  106. package/components/date-picker/years.js +2 -2
  107. package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +1 -1
  108. package/components/dialog/dialog.d.ts +1 -1
  109. package/components/dialog/dialog.js +15 -15
  110. package/components/dropdown/anchor.d.ts +1 -1
  111. package/components/dropdown/anchor.js +4 -4
  112. package/components/dropdown/dropdown.d.ts +2 -2
  113. package/components/dropdown/dropdown.js +6 -6
  114. package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
  115. package/components/dropdown-menu/dropdown-menu.js +11 -11
  116. package/components/editable-heading/editable-heading.d.ts +1 -1
  117. package/components/editable-heading/editable-heading.js +8 -7
  118. package/components/error-bubble/error-bubble.d.ts +1 -1
  119. package/components/error-bubble/error-bubble.figma.js +1 -2
  120. package/components/error-bubble/error-bubble.js +2 -2
  121. package/components/error-message/error-message.d.ts +2 -2
  122. package/components/error-message/error-message.js +3 -3
  123. package/components/footer/footer.d.ts +1 -1
  124. package/components/footer/footer.js +2 -2
  125. package/components/global/compose-refs.d.ts +2 -0
  126. package/components/global/compose-refs.js +19 -0
  127. package/components/global/composeRefs.d.ts +6 -2
  128. package/components/global/composeRefs.js +6 -16
  129. package/components/global/create-stateful-context.d.ts +1 -1
  130. package/components/global/dom.d.ts +1 -1
  131. package/components/global/dom.js +2 -3
  132. package/components/global/focus-sensor-hoc.d.ts +1 -1
  133. package/components/global/focus-sensor-hoc.js +2 -2
  134. package/components/global/fuzzy-highlight.d.ts +2 -2
  135. package/components/global/get-event-key.d.ts +1 -1
  136. package/components/global/memoize.js +1 -1
  137. package/components/global/rerender-hoc.d.ts +1 -1
  138. package/components/global/rerender-hoc.js +2 -2
  139. package/components/global/theme.d.ts +1 -1
  140. package/components/global/url.js +3 -3
  141. package/components/global/use-event-callback.js +1 -1
  142. package/components/grid/col.d.ts +1 -1
  143. package/components/grid/col.js +1 -1
  144. package/components/grid/grid.d.ts +1 -1
  145. package/components/grid/grid.js +1 -1
  146. package/components/grid/row.d.ts +1 -1
  147. package/components/grid/row.js +1 -1
  148. package/components/group/group.d.ts +1 -1
  149. package/components/group/group.js +1 -1
  150. package/components/header/header-icon.d.ts +2 -2
  151. package/components/header/header-icon.js +4 -4
  152. package/components/header/header.d.ts +1 -1
  153. package/components/header/header.js +17 -17
  154. package/components/header/links.d.ts +1 -1
  155. package/components/header/logo.d.ts +1 -1
  156. package/components/header/logo.js +2 -2
  157. package/components/header/profile.d.ts +5 -5
  158. package/components/header/profile.js +14 -14
  159. package/components/header/services-link.d.ts +1 -1
  160. package/components/header/services-link.js +1 -1
  161. package/components/header/services.d.ts +2 -2
  162. package/components/header/services.js +7 -7
  163. package/components/header/smart-profile.d.ts +3 -3
  164. package/components/header/smart-profile.js +25 -25
  165. package/components/header/smart-services.d.ts +3 -3
  166. package/components/header/smart-services.js +4 -4
  167. package/components/header/tray.d.ts +1 -1
  168. package/components/heading/heading.d.ts +1 -1
  169. package/components/http/http.mock.d.ts +1 -1
  170. package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
  171. package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
  172. package/components/hub-source/hub-source.d.ts +2 -2
  173. package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
  174. package/components/icon/{icon__svg.js → icon-svg.js} +1 -1
  175. package/components/icon/icon.d.ts +2 -2
  176. package/components/icon/icon.js +3 -3
  177. package/components/icon/index.js +2 -2
  178. package/components/input/input.d.ts +3 -3
  179. package/components/input/input.figma.js +1 -2
  180. package/components/input/input.js +5 -5
  181. package/components/island/adaptive-island-hoc.d.ts +1 -1
  182. package/components/island/content.d.ts +1 -1
  183. package/components/island/content.js +2 -2
  184. package/components/island/header.d.ts +1 -1
  185. package/components/island/header.js +4 -4
  186. package/components/island/island.d.ts +1 -1
  187. package/components/link/clickable-link.d.ts +12 -0
  188. package/components/link/clickable-link.js +51 -0
  189. package/components/link/clickableLink.d.ts +11 -12
  190. package/components/link/clickableLink.js +5 -50
  191. package/components/link/link.d.ts +2 -2
  192. package/components/link/link.js +3 -3
  193. package/components/list/consts.d.ts +4 -5
  194. package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
  195. package/components/list/{list__custom.js → list-custom.js} +1 -1
  196. package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
  197. package/components/list/{list__hint.js → list-hint.js} +1 -1
  198. package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
  199. package/components/list/{list__item.js → list-item.js} +10 -9
  200. package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
  201. package/components/list/{list__separator.js → list-separator.js} +1 -1
  202. package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
  203. package/components/list/{list__title.js → list-title.js} +3 -3
  204. package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
  205. package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +11 -11
  206. package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
  207. package/components/list/list.d.ts +7 -7
  208. package/components/list/list.js +36 -35
  209. package/components/loader/{loader__core.js → loader-core.js} +3 -2
  210. package/components/loader/loader.d.ts +2 -2
  211. package/components/loader/loader.js +1 -1
  212. package/components/loader-inline/loader-inline.d.ts +1 -1
  213. package/components/loader-screen/loader-screen.d.ts +1 -1
  214. package/components/loader-screen/loader-screen.js +1 -1
  215. package/components/login-dialog/login-dialog.d.ts +1 -1
  216. package/components/login-dialog/login-dialog.js +9 -9
  217. package/components/login-dialog/service.d.ts +1 -1
  218. package/components/login-dialog/service.js +6 -6
  219. package/components/markdown/markdown.d.ts +1 -1
  220. package/components/markdown/markdown.js +1 -1
  221. package/components/message/message.d.ts +4 -4
  222. package/components/message/message.js +7 -7
  223. package/components/old-browsers-message/old-browsers-message.js +1 -1
  224. package/components/pager/pager.d.ts +2 -2
  225. package/components/pager/pager.js +28 -27
  226. package/components/panel/panel.d.ts +1 -1
  227. package/components/panel/panel.js +1 -1
  228. package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -4
  229. package/components/permissions/permissions.d.ts +2 -2
  230. package/components/permissions/permissions.js +2 -3
  231. package/components/popup/popup.d.ts +2 -2
  232. package/components/popup/popup.js +4 -4
  233. package/components/popup/popup.target.d.ts +1 -1
  234. package/components/popup/position-css.js +2 -4
  235. package/components/popup/position.js +10 -9
  236. package/components/popup-menu/popup-menu.d.ts +4 -4
  237. package/components/popup-menu/popup-menu.js +10 -10
  238. package/components/progress-bar/progress-bar.d.ts +1 -1
  239. package/components/progress-bar/progress-bar.js +1 -1
  240. package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
  241. package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +11 -11
  242. package/components/query-assist/query-assist.d.ts +4 -4
  243. package/components/query-assist/query-assist.js +30 -30
  244. package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
  245. package/components/radio/{radio__item.js → radio-item.js} +3 -3
  246. package/components/radio/radio.d.ts +2 -2
  247. package/components/radio/radio.js +1 -1
  248. package/components/scrollable-section/scrollable-section.d.ts +1 -1
  249. package/components/scrollable-section/scrollable-section.js +1 -1
  250. package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
  251. package/components/select/{select__filter.js → select-filter.js} +12 -12
  252. package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
  253. package/components/select/{select__popup.js → select-popup.js} +21 -19
  254. package/components/select/select.d.ts +6 -6
  255. package/components/select/select.js +44 -42
  256. package/components/shortcuts/core.js +4 -4
  257. package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
  258. package/components/shortcuts/shortcuts.d.ts +1 -1
  259. package/components/slider/slider.d.ts +5 -5
  260. package/components/slider/slider.js +7 -6
  261. package/components/slider/slider.utils.d.ts +1 -1
  262. package/components/slider/slider.utils.js +2 -3
  263. package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
  264. package/components/storage/{storage__local.js → storage-local.js} +11 -11
  265. package/components/storage/storage.d.ts +1 -1
  266. package/components/storage/storage.js +5 -5
  267. package/components/style.css +1 -1
  268. package/components/tab-trap/tab-trap.d.ts +1 -1
  269. package/components/tab-trap/tab-trap.js +1 -1
  270. package/components/table/cell.d.ts +1 -1
  271. package/components/table/disable-hover-hoc.d.ts +1 -1
  272. package/components/table/header-cell.d.ts +1 -1
  273. package/components/table/header-cell.js +3 -3
  274. package/components/table/header.d.ts +2 -2
  275. package/components/table/header.js +7 -7
  276. package/components/table/multitable.d.ts +3 -3
  277. package/components/table/multitable.js +1 -1
  278. package/components/table/row-with-focus-sensor.d.ts +3 -3
  279. package/components/table/row-with-focus-sensor.js +5 -5
  280. package/components/table/row.d.ts +4 -4
  281. package/components/table/row.js +5 -5
  282. package/components/table/selection-adapter.d.ts +2 -1
  283. package/components/table/selection-shortcuts-hoc.d.ts +4 -3
  284. package/components/table/selection-shortcuts-hoc.js +1 -2
  285. package/components/table/selection.js +5 -6
  286. package/components/table/simple-table.d.ts +2 -2
  287. package/components/table/simple-table.js +6 -6
  288. package/components/table/smart-table.d.ts +2 -2
  289. package/components/table/smart-table.js +6 -6
  290. package/components/table/table.d.ts +7 -7
  291. package/components/table/table.js +11 -11
  292. package/components/tabs/collapsible-more.d.ts +3 -3
  293. package/components/tabs/collapsible-more.js +12 -12
  294. package/components/tabs/collapsible-tab.d.ts +2 -2
  295. package/components/tabs/collapsible-tab.js +2 -2
  296. package/components/tabs/collapsible-tabs.d.ts +2 -2
  297. package/components/tabs/collapsible-tabs.js +18 -18
  298. package/components/tabs/custom-item.d.ts +2 -2
  299. package/components/tabs/dumb-tabs.d.ts +3 -3
  300. package/components/tabs/dumb-tabs.js +14 -14
  301. package/components/tabs/smart-tabs.d.ts +1 -1
  302. package/components/tabs/smart-tabs.js +11 -11
  303. package/components/tabs/tab-link.d.ts +2 -2
  304. package/components/tabs/tab-link.js +1 -1
  305. package/components/tabs/tab.d.ts +2 -2
  306. package/components/tabs/tabs.js +11 -11
  307. package/components/tag/tag.d.ts +5 -3
  308. package/components/tag/tag.js +14 -12
  309. package/components/tags-input/tags-input.d.ts +8 -8
  310. package/components/tags-input/tags-input.js +26 -20
  311. package/components/tags-list/tags-list.d.ts +2 -2
  312. package/components/tags-list/tags-list.js +5 -5
  313. package/components/text/text.d.ts +1 -1
  314. package/components/toggle/toggle.d.ts +1 -1
  315. package/components/toggle/toggle.js +2 -2
  316. package/components/tooltip/tooltip.d.ts +2 -2
  317. package/components/tooltip/tooltip.js +1 -1
  318. package/components/upload/upload.d.ts +3 -3
  319. package/components/upload/upload.js +7 -7
  320. package/components/user-agreement/service.d.ts +2 -2
  321. package/components/user-agreement/service.js +10 -11
  322. package/components/user-agreement/user-agreement.d.ts +1 -1
  323. package/components/user-agreement/user-agreement.js +10 -10
  324. package/components/user-card/card.d.ts +1 -1
  325. package/components/user-card/card.js +4 -4
  326. package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
  327. package/components/user-card/smart-user-card-tooltip.js +4 -4
  328. package/components/user-card/tooltip.d.ts +3 -3
  329. package/components/user-card/tooltip.js +4 -4
  330. package/components/user-card/user-card.js +4 -4
  331. package/package.json +1 -1
  332. package/components/button/button__classes.js +0 -2
  333. /package/components/_helpers/{button__classes.js → button.classes.js} +0 -0
  334. /package/components/_helpers/{icon__svg.js → icon-svg.js} +0 -0
  335. /package/components/_helpers/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
  336. /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
  337. /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
  338. /package/components/global/{variables.js → variables.interface.js} +0 -0
  339. /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
  340. /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
  341. /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
  342. /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
  343. /package/components/list/{list__classes.js → list.classes.js} +0 -0
  344. /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
  345. /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
  346. /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
  347. /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
@@ -11,20 +11,20 @@ import Shortcuts from '../shortcuts/shortcuts.js';
11
11
  import Loader from '../loader/loader.js';
12
12
  import Item, { moreLessButtonStates } from './item.js';
13
13
  import { s as styles } from '../_helpers/title.js';
14
- import '../global/composeRefs.js';
14
+ import '../global/compose-refs.js';
15
15
  import 'memoize-one';
16
16
  import '../shortcuts/core.js';
17
17
  import 'core-js/modules/es.regexp.exec.js';
18
18
  import 'combokeys';
19
19
  import '../global/sniffer.js';
20
20
  import 'sniffr';
21
- import '../loader/loader__core.js';
21
+ import '../loader/loader-core.js';
22
22
  import '../global/dom.js';
23
23
  import '@jetbrains/icons/chevron-right';
24
24
  import '@jetbrains/icons/chevron-down';
25
25
  import '../link/link.js';
26
26
  import '../global/data-tests.js';
27
- import '../link/clickableLink.js';
27
+ import '../link/clickable-link.js';
28
28
  import '../_helpers/link.js';
29
29
  import '../text/text.js';
30
30
  import '../loader-inline/loader-inline.js';
@@ -32,13 +32,13 @@ import '../button/button.js';
32
32
  import '@jetbrains/icons/chevron-12px-down';
33
33
  import 'util-deprecate';
34
34
  import '../icon/icon.js';
35
- import '../icon/icon__constants.js';
36
- import '../_helpers/icon__svg.js';
35
+ import '../icon/icon.constants.js';
36
+ import '../_helpers/icon-svg.js';
37
37
  import 'core-js/modules/es.string.replace.js';
38
38
  import '../global/memoize.js';
39
39
  import '../global/controls-height.js';
40
40
  import '../global/configuration.js';
41
- import '../_helpers/button__classes.js';
41
+ import '../_helpers/button.classes.js';
42
42
  import '../checkbox/checkbox.js';
43
43
  import '@jetbrains/icons/checkmark-12px';
44
44
  import '@jetbrains/icons/remove-12px';
@@ -72,7 +72,7 @@ class DataList extends PureComponent {
72
72
  itemFormatter
73
73
  } = this.props;
74
74
  const focused = selection.getFocused();
75
- if (focused == null) {
75
+ if (!focused) {
76
76
  throw new Error('No focused item');
77
77
  }
78
78
  const item = itemFormatter(focused);
@@ -123,7 +123,7 @@ class DataList extends PureComponent {
123
123
  });
124
124
  return jsxs("div", {
125
125
  className: styles.dataListWrapper,
126
- "data-test": "ring-data-list",
126
+ "data-test": 'ring-data-list',
127
127
  ref: innerRef,
128
128
  children: [focused && jsx(Shortcuts, {
129
129
  map: shortcutsMap,
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { SelectionItem } from '../table/selection';
1
+ import { type ReactNode } from 'react';
2
+ import { type SelectionItem } from '../table/selection';
3
3
  export interface Item extends SelectionItem {
4
4
  title: ReactNode;
5
5
  collapsible?: boolean;
@@ -6,13 +6,13 @@ import 'react';
6
6
  import 'classnames';
7
7
  import '../global/data-tests.js';
8
8
  import 'core-js/modules/web.dom-collections.iterator.js';
9
- import '../link/clickableLink.js';
9
+ import '../link/clickable-link.js';
10
10
  import '../_helpers/link.js';
11
11
  import '@jetbrains/icons/close-12px';
12
12
  import '../icon/icon.js';
13
13
  import 'util-deprecate';
14
- import '../icon/icon__constants.js';
15
- import '../_helpers/icon__svg.js';
14
+ import '../icon/icon.constants.js';
15
+ import '../_helpers/icon-svg.js';
16
16
  import 'core-js/modules/es.regexp.exec.js';
17
17
  import 'core-js/modules/es.string.replace.js';
18
18
  import '../global/memoize.js';
@@ -21,7 +21,7 @@ import '@jetbrains/icons/chevron-down';
21
21
  import '@jetbrains/icons/chevron-12px-down';
22
22
  import '../global/controls-height.js';
23
23
  import '../global/configuration.js';
24
- import '../_helpers/button__classes.js';
24
+ import '../_helpers/button.classes.js';
25
25
 
26
26
  const items = [{
27
27
  id: 1,
@@ -41,35 +41,35 @@ const items = [{
41
41
  id: 111,
42
42
  selectable: true,
43
43
  title: jsx(Link, {
44
- href: "#",
44
+ href: '#',
45
45
  children: "TeamCity"
46
46
  })
47
47
  }, {
48
48
  id: 112,
49
49
  selectable: true,
50
50
  title: jsx(Link, {
51
- href: "#",
51
+ href: '#',
52
52
  children: "YouTrack"
53
53
  })
54
54
  }, {
55
55
  id: 113,
56
56
  selectable: true,
57
57
  title: jsx(Link, {
58
- href: "#",
58
+ href: '#',
59
59
  children: "Sandbox"
60
60
  })
61
61
  }, {
62
62
  id: 114,
63
63
  selectable: true,
64
64
  title: jsx(Link, {
65
- href: "#",
65
+ href: '#',
66
66
  children: "Exception Analyzer"
67
67
  })
68
68
  }, {
69
69
  id: 115,
70
70
  selectable: true,
71
71
  title: jsx(Link, {
72
- href: "#",
72
+ href: '#',
73
73
  children: "MPS"
74
74
  })
75
75
  }]
@@ -88,7 +88,7 @@ const items = [{
88
88
  selectable: true,
89
89
  title: jsxs("span", {
90
90
  children: [jsx(Link, {
91
- href: "#",
91
+ href: '#',
92
92
  children: "JetProfile"
93
93
  }), jsx("span", {
94
94
  children: " "
@@ -104,35 +104,35 @@ const items = [{
104
104
  id: 221,
105
105
  collapsible: true,
106
106
  title: jsx(Link, {
107
- href: "#",
107
+ href: '#',
108
108
  children: "TeamCity"
109
109
  })
110
110
  }, {
111
111
  id: 222,
112
112
  collapsible: true,
113
113
  title: jsx(Link, {
114
- href: "#",
114
+ href: '#',
115
115
  children: "YouTrack"
116
116
  })
117
117
  }, {
118
118
  id: 223,
119
119
  collapsible: true,
120
120
  title: jsx(Link, {
121
- href: "#",
121
+ href: '#',
122
122
  children: "Sandbox"
123
123
  })
124
124
  }, {
125
125
  id: 224,
126
126
  collapsible: true,
127
127
  title: jsx(Link, {
128
- href: "#",
128
+ href: '#',
129
129
  children: "Exception Analyzer"
130
130
  })
131
131
  }, {
132
132
  id: 225,
133
133
  collapsible: true,
134
134
  title: jsx(Link, {
135
- href: "#",
135
+ href: '#',
136
136
  children: "MPS"
137
137
  })
138
138
  }]
@@ -141,7 +141,7 @@ const items = [{
141
141
  collapsible: true,
142
142
  title: jsxs("span", {
143
143
  children: [jsx(Link, {
144
- href: "#",
144
+ href: '#',
145
145
  children: "CustomJDK"
146
146
  }), jsx("span", {
147
147
  children: ": as a member of ide-developers"
@@ -162,7 +162,7 @@ const items = [{
162
162
  collapsible: true,
163
163
  title: jsxs("span", {
164
164
  children: [jsx(Link, {
165
- href: "#",
165
+ href: '#',
166
166
  children: "ide-frontend"
167
167
  }), jsx("span", {
168
168
  children: ": as a member of ide-developers"
@@ -173,7 +173,7 @@ const items = [{
173
173
  collapsible: true,
174
174
  title: jsxs("span", {
175
175
  children: [jsx(Link, {
176
- href: "#",
176
+ href: '#',
177
177
  children: "ide-frontend"
178
178
  }), jsx("span", {
179
179
  children: ": as a member of ide-frontend Code Viewers"
@@ -193,7 +193,7 @@ const items = [{
193
193
  collapsible: true,
194
194
  title: jsxs("span", {
195
195
  children: [jsx(Link, {
196
- href: "#",
196
+ href: '#',
197
197
  children: "Intellij IDEA"
198
198
  }), jsx("span", {
199
199
  children: ": as a member of Registered Users"
@@ -204,7 +204,7 @@ const items = [{
204
204
  collapsible: true,
205
205
  title: jsxs("span", {
206
206
  children: [jsx(Link, {
207
- href: "#",
207
+ href: '#',
208
208
  children: "YouTrack Backlog"
209
209
  }), jsx("span", {
210
210
  children: ": as a member of jetbrains-team"
@@ -228,7 +228,7 @@ const items = [{
228
228
  selectable: true,
229
229
  collapsible: true,
230
230
  title: jsx(Link, {
231
- href: "#",
231
+ href: '#',
232
232
  children: "Wasabi"
233
233
  })
234
234
  }]
@@ -241,7 +241,7 @@ const items = [{
241
241
  }), jsx("span", {
242
242
  children: " in project "
243
243
  }), jsx(Link, {
244
- href: "#",
244
+ href: '#',
245
245
  children: "Hackathon 2016"
246
246
  }), jsx("span", {
247
247
  children: ": as a member of jetbrains-team"
@@ -263,7 +263,7 @@ const moreItems = [{
263
263
  collapsible: true,
264
264
  title: jsxs("span", {
265
265
  children: [jsx(Link, {
266
- href: "#",
266
+ href: '#',
267
267
  children: "More item 1"
268
268
  }), jsx("span", {
269
269
  children: " "
@@ -277,7 +277,7 @@ const moreItems = [{
277
277
  collapsible: true,
278
278
  title: jsxs("span", {
279
279
  children: [jsx(Link, {
280
- href: "#",
280
+ href: '#',
281
281
  children: "More item 2"
282
282
  }), jsx("span", {
283
283
  children: " "
@@ -1,6 +1,6 @@
1
- import { PureComponent, ReactNode } from 'react';
2
- import { SelectionItem } from '../table/selection';
3
- import Selection from './selection';
1
+ import { PureComponent, type ReactNode } from 'react';
2
+ import { type SelectionItem } from '../table/selection';
3
+ import type Selection from './selection';
4
4
  export declare enum moreLessButtonStates {
5
5
  UNUSED = 0,
6
6
  MORE = 1,
@@ -11,21 +11,21 @@ import { Button } from '../button/button.js';
11
11
  import { s as styles, T as Title } from '../_helpers/title.js';
12
12
  import 'classnames';
13
13
  import '../global/data-tests.js';
14
- import '../link/clickableLink.js';
14
+ import '../link/clickable-link.js';
15
15
  import '../_helpers/link.js';
16
16
  import '@jetbrains/icons/chevron-12px-down';
17
17
  import 'util-deprecate';
18
18
  import '../icon/icon.js';
19
- import '../icon/icon__constants.js';
20
- import '../_helpers/icon__svg.js';
19
+ import '../icon/icon.constants.js';
20
+ import '../_helpers/icon-svg.js';
21
21
  import 'core-js/modules/es.regexp.exec.js';
22
22
  import 'core-js/modules/es.string.replace.js';
23
23
  import '../global/memoize.js';
24
24
  import '../global/controls-height.js';
25
25
  import '../global/configuration.js';
26
- import '../_helpers/button__classes.js';
26
+ import '../_helpers/button.classes.js';
27
27
  import '../global/focus-sensor-hoc.js';
28
- import '../global/composeRefs.js';
28
+ import '../global/compose-refs.js';
29
29
  import 'memoize-one';
30
30
  import '../checkbox/checkbox.js';
31
31
  import '@jetbrains/icons/checkmark-12px';
@@ -149,21 +149,21 @@ class Item extends PureComponent {
149
149
  if (collapsible) {
150
150
  if (collapsed) {
151
151
  collapserExpander = jsx(Button, {
152
- title: "Expand",
152
+ title: 'Expand',
153
153
  onClick: onExpand,
154
154
  icon: chevronRightIcon,
155
155
  className: styles.collapseButton,
156
156
  iconClassName: styles.collapseIcon,
157
- "data-test": "ring-data-list-expand"
157
+ "data-test": 'ring-data-list-expand'
158
158
  });
159
159
  } else {
160
160
  collapserExpander = jsx(Button, {
161
- title: "Collapse",
161
+ title: 'Collapse',
162
162
  onClick: onCollapse,
163
163
  icon: chevronDownIcon,
164
164
  className: styles.collapseButton,
165
165
  iconClassName: styles.collapseIcon,
166
- "data-test": "ring-data-list-collapse"
166
+ "data-test": 'ring-data-list-collapse'
167
167
  });
168
168
  }
169
169
  }
@@ -1,4 +1,4 @@
1
- import TableSelection, { CloneWithConfig, SelectionItem, TableSelectionConfig } from '../table/selection';
1
+ import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../table/selection';
2
2
  interface DataListSelectionConfig<T extends SelectionItem> extends TableSelectionConfig<T> {
3
3
  partialSelected?: Set<T> | undefined;
4
4
  }
@@ -18,6 +18,7 @@ class Selection extends Selection$1 {
18
18
  return new Set(this._getDescendants(data));
19
19
  }
20
20
  _buildSelected(data, selected) {
21
+ // eslint-disable-next-line no-underscore-dangle
21
22
  const _selected = new Set(selected);
22
23
  [...data].forEach(item => {
23
24
  if (_selected.has(item)) {
@@ -94,7 +95,7 @@ class Selection extends Selection$1 {
94
95
  });
95
96
  }
96
97
  isPartialSelected(value) {
97
- return value != null && this._partialSelected.has(value);
98
+ return value !== null && value !== undefined && this._partialSelected.has(value);
98
99
  }
99
100
  focus(value) {
100
101
  return super.focus(value);
@@ -109,11 +110,17 @@ class Selection extends Selection$1 {
109
110
  rest = _objectWithoutProperties(_ref2, _excluded2);
110
111
  const parentClone = super.cloneWith(rest);
111
112
  return new this.constructor({
113
+ // eslint-disable-next-line no-underscore-dangle
112
114
  data: parentClone._rawData,
115
+ // eslint-disable-next-line no-underscore-dangle
113
116
  selected: parentClone._selected,
117
+ // eslint-disable-next-line no-underscore-dangle
114
118
  focused: parentClone._focused,
119
+ // eslint-disable-next-line no-underscore-dangle
115
120
  getKey: parentClone._getKey,
121
+ // eslint-disable-next-line no-underscore-dangle
116
122
  getChildren: parentClone._getChildren,
123
+ // eslint-disable-next-line no-underscore-dangle
117
124
  isItemSelectable: parentClone._isItemSelectable,
118
125
  partialSelected
119
126
  });
@@ -1,5 +1,5 @@
1
- import { PureComponent, ReactNode } from 'react';
2
- import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
1
+ import { PureComponent, type ReactNode } from 'react';
2
+ import { type FocusSensorAddProps } from '../global/focus-sensor-hoc';
3
3
  export interface TitleProps extends FocusSensorAddProps<HTMLDivElement> {
4
4
  onSelect: (selected: boolean) => void;
5
5
  selectable?: boolean | undefined;
@@ -7,14 +7,14 @@ import '../global/focus-sensor-hoc.js';
7
7
  import '../checkbox/checkbox.js';
8
8
  import '../global/get-uid.js';
9
9
  export { T as default } from '../_helpers/title.js';
10
- import '../global/composeRefs.js';
10
+ import '../global/compose-refs.js';
11
11
  import 'memoize-one';
12
12
  import '@jetbrains/icons/checkmark-12px';
13
13
  import '@jetbrains/icons/remove-12px';
14
14
  import '../icon/icon.js';
15
15
  import 'util-deprecate';
16
- import '../icon/icon__constants.js';
17
- import '../_helpers/icon__svg.js';
16
+ import '../icon/icon.constants.js';
17
+ import '../_helpers/icon-svg.js';
18
18
  import 'core-js/modules/es.regexp.exec.js';
19
19
  import 'core-js/modules/es.string.replace.js';
20
20
  import '../global/memoize.js';
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import type { Locale } from 'date-fns';
3
3
  declare const units: {
4
4
  unit: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DatePopupBaseProps, Field } from './consts';
2
+ import { type DatePopupBaseProps, type Field } from './consts';
3
3
  export interface UpdateInputConfig {
4
4
  active: boolean;
5
5
  text: string | null;
@@ -16,13 +16,13 @@ import '@jetbrains/icons/chevron-down';
16
16
  import '@jetbrains/icons/chevron-12px-down';
17
17
  import 'util-deprecate';
18
18
  import '../icon/icon.js';
19
- import '../icon/icon__constants.js';
20
- import '../_helpers/icon__svg.js';
19
+ import '../icon/icon.constants.js';
20
+ import '../_helpers/icon-svg.js';
21
21
  import '../global/memoize.js';
22
- import '../link/clickableLink.js';
23
- import '../_helpers/button__classes.js';
22
+ import '../link/clickable-link.js';
23
+ import '../_helpers/button.classes.js';
24
24
  import '../global/get-uid.js';
25
- import '../global/composeRefs.js';
25
+ import '../global/compose-refs.js';
26
26
  import 'memoize-one';
27
27
  import '../control-label/control-label.js';
28
28
  import '../control-help/control-help.js';
@@ -104,7 +104,7 @@ class DateInput extends React.PureComponent {
104
104
  let displayText = '';
105
105
  if (active && hoverDate) {
106
106
  displayText = displayFormat(hoverDate, locale);
107
- } else if (active && text != null) {
107
+ } else if (active && text !== null && text !== undefined) {
108
108
  displayText = text;
109
109
  } else if (date) {
110
110
  displayText = displayFormat(date, locale);
@@ -125,7 +125,7 @@ class DateInput extends React.PureComponent {
125
125
  })();
126
126
  const classes = classNames(styles.filter, styles["".concat(name, "Input")], divider && styles["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
127
127
  return jsx(Input, {
128
- autoComplete: "off",
128
+ autoComplete: 'off',
129
129
  borderless: true,
130
130
  height: ControlsHeight.L,
131
131
  "data-name": name,
@@ -1,11 +1,11 @@
1
- import { PureComponent, ButtonHTMLAttributes } from 'react';
1
+ import { PureComponent, type ButtonHTMLAttributes } from 'react';
2
2
  import * as React from 'react';
3
- import type { Locale } from 'date-fns';
4
3
  import Popup from '../popup/popup';
5
- import { DropdownAttrs } from '../dropdown/dropdown';
4
+ import { type DropdownAttrs } from '../dropdown/dropdown';
6
5
  import { Size } from '../input/input';
7
- import { DatePopupProps } from './date-popup';
8
- import { DateInputTranslations, DatePickerChange } from './consts';
6
+ import { type DatePopupProps } from './date-popup';
7
+ import { type DateInputTranslations, type DatePickerChange } from './consts';
8
+ import type { Locale } from 'date-fns';
9
9
  export interface DatePickerTranslations extends Partial<DateInputTranslations> {
10
10
  setDate: string;
11
11
  setDateTime: string;
@@ -46,14 +46,14 @@ import '../global/typescript-utils.js';
46
46
  import '../_helpers/anchor.js';
47
47
  import '@jetbrains/icons/chevron-12px-down';
48
48
  import 'util-deprecate';
49
- import '../icon/icon__constants.js';
50
- import '../_helpers/icon__svg.js';
51
- import '../link/clickableLink.js';
49
+ import '../icon/icon.constants.js';
50
+ import '../_helpers/icon-svg.js';
51
+ import '../link/clickable-link.js';
52
52
  import '../global/controls-height.js';
53
- import '../_helpers/button__classes.js';
53
+ import '../_helpers/button.classes.js';
54
54
  import '../_helpers/link.js';
55
55
  import '@jetbrains/icons/close-12px';
56
- import '../global/composeRefs.js';
56
+ import '../global/compose-refs.js';
57
57
  import 'memoize-one';
58
58
  import '../control-label/control-label.js';
59
59
  import '../control-help/control-help.js';
@@ -130,7 +130,7 @@ class DatePicker extends PureComponent {
130
130
  withTime,
131
131
  applyTimeInput
132
132
  } = this.props;
133
- const adjustedChange = withTime && !(change instanceof Date) && (change === null || change === void 0 ? void 0 : change.date) != null ? applyTimeInput(change.date, change.time) : change;
133
+ const adjustedChange = withTime && !(change instanceof Date) && (change === null || change === void 0 ? void 0 : change.date) !== null && (change === null || change === void 0 ? void 0 : change.date) !== undefined ? applyTimeInput(change.date, change.time) : change;
134
134
  onChange(adjustedChange);
135
135
  });
136
136
  _defineProperty(this, "clear", () => {
@@ -149,6 +149,7 @@ class DatePicker extends PureComponent {
149
149
  });
150
150
  _defineProperty(this, "closePopup", () => {
151
151
  var _this$popup;
152
+ // eslint-disable-next-line no-underscore-dangle
152
153
  (_this$popup = this.popup) === null || _this$popup === void 0 || _this$popup._onCloseAttempt();
153
154
  });
154
155
  _defineProperty(this, "parse", memoize(date => {
@@ -163,7 +164,9 @@ class DatePicker extends PureComponent {
163
164
  }
164
165
  return parseDateInput(date);
165
166
  }));
167
+ // eslint-disable-next-line complexity
166
168
  _defineProperty(this, "getAnchorText", () => {
169
+ var _ref4;
167
170
  const {
168
171
  range,
169
172
  datePlaceholder,
@@ -186,31 +189,33 @@ class DatePicker extends PureComponent {
186
189
  if (!range && !withTime) {
187
190
  var _ref2;
188
191
  return date ? displayFormat(date, locale) : (_ref2 = datePlaceholder !== null && datePlaceholder !== void 0 ? datePlaceholder : translations === null || translations === void 0 ? void 0 : translations.setDate) !== null && _ref2 !== void 0 ? _ref2 : translate('setDate');
189
- } else if (!range && withTime) {
192
+ }
193
+ if (!range && withTime) {
190
194
  if (!date && !time) {
191
195
  var _ref3;
192
196
  return (_ref3 = dateTimePlaceholder !== null && dateTimePlaceholder !== void 0 ? dateTimePlaceholder : translations === null || translations === void 0 ? void 0 : translations.setDateTime) !== null && _ref3 !== void 0 ? _ref3 : translate('setDateTime');
193
- } else {
194
- return "".concat(date && displayFormat(date, locale) || '—', ", ").concat(time || '—');
195
197
  }
196
- } else if (from && to) {
198
+ return "".concat(date && displayFormat(date, locale) || '—', ", ").concat(time || '—');
199
+ }
200
+ if (from && to) {
197
201
  if (!isSameYear(from, to)) {
198
202
  return "".concat(displayFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
199
- } else if (!isSameMonth(from, to)) {
203
+ }
204
+ if (!isSameMonth(from, to)) {
200
205
  return "".concat(displayMonthFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
201
- } else if (!isSameDay(from, to)) {
206
+ }
207
+ if (!isSameDay(from, to)) {
202
208
  return "".concat(displayDayFormat(from, locale), " \u2014 ").concat(displayFormat(to, locale));
203
- } else {
204
- return "".concat(displayFormat(to, locale));
205
209
  }
206
- } else if (from) {
210
+ return "".concat(displayFormat(to, locale));
211
+ }
212
+ if (from) {
207
213
  return "".concat(displayFormat(from, locale), " \u2014");
208
- } else if (to) {
214
+ }
215
+ if (to) {
209
216
  return "\u2014 ".concat(displayFormat(to, locale));
210
- } else {
211
- var _ref4;
212
- return (_ref4 = rangePlaceholder !== null && rangePlaceholder !== void 0 ? rangePlaceholder : translations === null || translations === void 0 ? void 0 : translations.setPeriod) !== null && _ref4 !== void 0 ? _ref4 : translate('setPeriod');
213
217
  }
218
+ return (_ref4 = rangePlaceholder !== null && rangePlaceholder !== void 0 ? rangePlaceholder : translations === null || translations === void 0 ? void 0 : translations.setPeriod) !== null && _ref4 !== void 0 ? _ref4 : translate('setPeriod');
214
219
  });
215
220
  }
216
221
  formatTime() {
@@ -219,7 +224,7 @@ class DatePicker extends PureComponent {
219
224
  locale
220
225
  } = this.props;
221
226
  const date = this.parse(this.props.date);
222
- if (date != null) {
227
+ if (date !== null && date !== undefined) {
223
228
  return displayTimeFormat(date, locale);
224
229
  }
225
230
  return null;
@@ -252,7 +257,7 @@ class DatePicker extends PureComponent {
252
257
  return jsx(Dropdown, _objectSpread2(_objectSpread2({
253
258
  className: classes,
254
259
  disabled: this.props.disabled,
255
- "data-test": "ring-date-picker",
260
+ "data-test": 'ring-date-picker',
256
261
  anchor: inline ? jsx(Link, {
257
262
  "data-test-ring-dropdown-anchor": true,
258
263
  className: styles.anchor,
@@ -311,7 +316,7 @@ _defineProperty(DatePicker, "defaultProps", {
311
316
  applyTimeInput(date, timeString) {
312
317
  var _timeString$split$map;
313
318
  const [hours, minutes] = (_timeString$split$map = timeString === null || timeString === void 0 ? void 0 : timeString.split(':').map(Number)) !== null && _timeString$split$map !== void 0 ? _timeString$split$map : [];
314
- return minutes != null ? set(date, {
319
+ return minutes !== null && minutes !== undefined ? set(date, {
315
320
  hours,
316
321
  minutes
317
322
  }) : date;
@@ -1,6 +1,6 @@
1
1
  import { Component } from 'react';
2
2
  import * as React from 'react';
3
- import { DatePickerChange, DatePopupBaseProps, DateSpecificPopupProps, DatePopupState, RangeSpecificPopupProps, TimeSpecificPopupProps, Field } from './consts';
3
+ import { type DatePickerChange, type DatePopupBaseProps, type DateSpecificPopupProps, type DatePopupState, type RangeSpecificPopupProps, type TimeSpecificPopupProps, type Field } from './consts';
4
4
  export type DatePopupProps = DatePopupBaseProps & (DateSpecificPopupProps | TimeSpecificPopupProps | RangeSpecificPopupProps);
5
5
  export default class DatePopup extends Component<DatePopupProps, DatePopupState> {
6
6
  static sameDay(next: Date | number | null, prev: Date | number | null): boolean;
@@ -25,16 +25,16 @@ import '@jetbrains/icons/chevron-down';
25
25
  import '@jetbrains/icons/chevron-12px-down';
26
26
  import 'util-deprecate';
27
27
  import '../icon/icon.js';
28
- import '../icon/icon__constants.js';
29
- import '../_helpers/icon__svg.js';
30
- import '../link/clickableLink.js';
28
+ import '../icon/icon.constants.js';
29
+ import '../_helpers/icon-svg.js';
30
+ import '../link/clickable-link.js';
31
31
  import '../global/controls-height.js';
32
32
  import '../global/configuration.js';
33
- import '../_helpers/button__classes.js';
33
+ import '../_helpers/button.classes.js';
34
34
  import '../global/get-uid.js';
35
35
  import '../i18n/i18n-context.js';
36
36
  import '../i18n/i18n.js';
37
- import '../global/composeRefs.js';
37
+ import '../global/compose-refs.js';
38
38
  import 'memoize-one';
39
39
  import '../control-label/control-label.js';
40
40
  import '../control-help/control-help.js';
@@ -313,6 +313,7 @@ class DatePopup extends Component {
313
313
  [name]: result
314
314
  });
315
315
  }
316
+ // eslint-disable-next-line complexity
316
317
  render() {
317
318
  const {
318
319
  range,
@@ -336,7 +337,7 @@ class DatePopup extends Component {
336
337
  [key]: this.parse(value, key)
337
338
  });
338
339
  }, {});
339
- const activeDate = this.state.active !== 'time' ? this.state.hoverDate || (this.state.text != null ? this.parse(this.state.text, 'date') : null) : this.state.hoverDate || null;
340
+ const activeDate = this.state.active !== 'time' ? this.state.hoverDate || (this.state.text ? this.parse(this.state.text, 'date') : null) : this.state.hoverDate || null;
340
341
  const currentRange = range && dates.from && dates.to && [dates.from, dates.to] || null;
341
342
  let activeRange = null;
342
343
  if (range && activeDate) {
@@ -370,7 +371,7 @@ class DatePopup extends Component {
370
371
  const clearable = Boolean(this.props.onClear);
371
372
  return jsxs("div", {
372
373
  className: styles.datePopup,
373
- "data-test": "ring-date-popup",
374
+ "data-test": 'ring-date-popup',
374
375
  ref: this.componentRef,
375
376
  children: [jsxs("div", {
376
377
  className: styles.filterWrapper,
@@ -380,7 +381,7 @@ class DatePopup extends Component {
380
381
  onClear = this.onClear.bind(this);
381
382
  }
382
383
  return /*#__PURE__*/createElement(DateInput, _objectSpread2(_objectSpread2(_objectSpread2({}, this.props), this.state), {}, {
383
- divider: name === 'from' && (dates[name] != null || parsedTo != null),
384
+ divider: name === 'from' && (!!dates[name] || !!parsedTo),
384
385
  name: name,
385
386
  key: name,
386
387
  date: dates[name],