@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
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import { MonthsProps } from './consts';
2
+ import { type MonthsProps } from './consts';
3
3
  export interface DayProps extends MonthsProps {
4
4
  day: Date;
5
5
  empty: boolean;
@@ -11,7 +11,7 @@ export default class Day extends Component<DayProps> {
11
11
  isDay: (date: Date) => boolean;
12
12
  is: (name: "date" | "from" | "to" | "activeDate") => boolean;
13
13
  inRange: (range: [Date, Date] | null) => boolean | null;
14
- isDisabled: (date: Date) => boolean;
14
+ isDisabled: (date: Date) => boolean | null;
15
15
  parse(text: string | null | undefined): Date | null;
16
16
  render(): import("react/jsx-runtime").JSX.Element;
17
17
  }
@@ -35,13 +35,13 @@ class Day extends Component {
35
35
  _defineProperty(this, "isDay", date => isSameDay(this.props.day, date));
36
36
  _defineProperty(this, "is", name => {
37
37
  const value = this.props[name];
38
- return value != null && this.isDay(value);
38
+ return !!value && this.isDay(value);
39
39
  });
40
40
  _defineProperty(this, "inRange", range => range && isAfter(startOfDay(this.props.day), startOfDay(range[0])) && isBefore(startOfDay(this.props.day), startOfDay(range[1])));
41
41
  _defineProperty(this, "isDisabled", date => {
42
42
  const min = this.parse(this.props.minDate);
43
43
  const max = this.parse(this.props.maxDate);
44
- return min != null && isBefore(startOfDay(date), startOfDay(min)) || max != null && isAfter(startOfDay(date), startOfDay(max));
44
+ return min && isBefore(startOfDay(date), startOfDay(min)) || max && isAfter(startOfDay(date), startOfDay(max));
45
45
  });
46
46
  }
47
47
  parse(text) {
@@ -62,12 +62,12 @@ class Day extends Component {
62
62
  return range && [range[0], addDays(range[1], 1)];
63
63
  }
64
64
  const spreadRange = makeSpreadRange(currentRange);
65
- const disabled = this.isDisabled(day);
65
+ const disabled = !!this.isDisabled(day);
66
66
  const activeSpreadRange = makeSpreadRange(activeRange);
67
67
  return (
68
68
  // TODO make keyboard navigation actually work
69
69
  jsx("button", {
70
- type: "button",
70
+ type: 'button',
71
71
  className: classNames(styles.day, styles["Day".concat(dayInWeek)], {
72
72
  [styles.current]: ['date', 'from', 'to'].some(this.is),
73
73
  [styles.active]: !disabled && this.is('activeDate'),
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-lines */
1
2
  var formats = ['d M', 'dd M', 'dd MM', 'd-M', 'dd-M', 'dd-MM', 'd.M', 'dd.M', 'dd.MM', 'd\\M', 'dd\\M', 'dd\\MM', 'd/M', 'dd/M', 'dd/MM', 'd M yy', 'dd M yy', 'dd MM yy', 'd M yyyy', 'dd M yyyy', 'dd MM yyyy', 'd-M-yy', 'dd-M-yy', 'dd-MM-yy', 'd-M-yyyy', 'dd-M-yyyy', 'dd-MM-yyyy', 'd.M.yy', 'dd.M.yy', 'dd.MM.yy', 'd.M.yyyy', 'dd.M.yyyy', 'dd.MM.yyyy', 'd\\M\\yy', 'dd\\M\\yy', 'dd\\MM\\yy', 'd\\M\\yyyy', 'dd\\M\\yyyy', 'dd\\MM\\yyyy', 'd/M/yy', 'dd/M/yy', 'dd/MM/yy', 'd/M/yyyy', 'dd/M/yyyy', 'dd/MM/yyyy', 'd M yy', 'dd M yy', 'dd MM yy', 'd M yyyy', 'dd M yyyy', 'dd MM yyyy', 'd-M-yy', 'dd-M-yy', 'dd-MM-yy', 'd-M-yyyy', 'dd-M-yyyy', 'dd-MM-yyyy', 'd.M.yy', 'dd.M.yy', 'dd.MM.yy', 'd.M.yyyy', 'dd.M.yyyy', 'dd.MM.yyyy', 'd\\M\\yy', 'dd\\M\\yy', 'dd\\MM\\yy', 'd\\M\\yyyy', 'dd\\M\\yyyy', 'dd\\MM\\yyyy', 'd/M/yy', 'dd/M/yy', 'dd/MM/yy', 'd/M/yyyy', 'dd/M/yyyy', 'dd/MM/yyyy', 'yy M d', 'yy M dd', 'yy MM dd', 'yyyy M d', 'yyyy M dd', 'yyyy MM dd', 'yy-M-d', 'yy-M-dd', 'yy-MM-dd', 'yyyy-M-d', 'yyyy-M-dd', 'yyyy-MM-dd', 'yy.M.d', 'yy.M.dd', 'yy.MM.dd', 'yyyy.M.d', 'yyyy.M.dd', 'yyyy.MM.dd', 'yy\\M\\d', 'yy\\M\\dd', 'yy\\MM\\dd', 'yyyy\\M\\d', 'yyyy\\M\\dd', 'yyyy\\MM\\dd', 'yy/M/d', 'yy/M/dd', 'yy/MM/dd', 'yyyy/M/d', 'yyyy/M/dd', 'yyyy/MM/dd', 'yy d M', 'yy dd M', 'yy dd MM', 'yyyy d M', 'yyyy dd MM', 'yyyy dd MM', 'yy-d-M', 'yy-dd-M', 'yy-dd-MM', 'yyyy-d-M', 'yyyy-dd-MM', 'yyyy-dd-MM', 'yy.d.M', 'yy.dd.M', 'yy.dd.MM', 'yyyy.d.M', 'yyyy.dd.MM', 'yyyy.dd.MM', 'yy\\d\\M', 'yy\\dd\\M', 'yy\\dd\\MM', 'yyyy\\d\\M', 'yyyy\\dd\\MM', 'yyyy\\dd\\MM', 'yy/d/M', 'yy/dd/M', 'yy/dd/MM', 'yyyy/d/M', 'yyyy/dd/MM', 'yyyy/dd/MM', 'd MMM', 'd MMMM', 'dd MMM', 'dd MMMM', 'd M HH:mm', 'd M, HH:mm', 'dd M HH:mm', 'dd M, HH:mm', 'dd MM HH:mm', 'dd MM, HH:mm', 'd-M HH:mm', 'd-M, HH:mm', 'dd-M HH:mm', 'dd-M, HH:mm', 'dd-MM HH:mm', 'dd-MM, HH:mm', 'd.M HH:mm', 'd.M, HH:mm', 'dd.M HH:mm', 'dd.M, HH:mm', 'dd.MM HH:mm', 'dd.MM, HH:mm', 'd\\M HH:mm', 'd\\M, HH:mm', 'dd\\M HH:mm', 'dd\\M, HH:mm', 'dd\\MM HH:mm', 'dd\\MM, HH:mm', 'd/M HH:mm', 'd/M, HH:mm', 'dd/M HH:mm', 'dd/M, HH:mm', 'dd/MM HH:mm', 'dd/MM, HH:mm', 'd M yy HH:mm', 'd M yy, HH:mm', 'dd M yy HH:mm', 'dd M yy, HH:mm', 'dd MM yy HH:mm', 'dd MM yy, HH:mm', 'd M yyyy HH:mm', 'd M yyyy, HH:mm', 'dd M yyyy HH:mm', 'dd M yyyy, HH:mm', 'dd MM yyyy HH:mm', 'dd MM yyyy, HH:mm', 'd-M-yy HH:mm', 'd-M-yy, HH:mm', 'dd-M-yy HH:mm', 'dd-M-yy, HH:mm', 'dd-MM-yy HH:mm', 'dd-MM-yy, HH:mm', 'd-M-yyyy HH:mm', 'd-M-yyyy, HH:mm', 'dd-M-yyyy HH:mm', 'dd-M-yyyy, HH:mm', 'dd-MM-yyyy HH:mm', 'dd-MM-yyyy, HH:mm', 'd.M.yy HH:mm', 'd.M.yy, HH:mm', 'dd.M.yy HH:mm', 'dd.M.yy, HH:mm', 'dd.MM.yy HH:mm', 'dd.MM.yy, HH:mm', 'd.M.yyyy HH:mm', 'd.M.yyyy, HH:mm', 'dd.M.yyyy HH:mm', 'dd.M.yyyy, HH:mm', 'dd.MM.yyyy HH:mm', 'dd.MM.yyyy, HH:mm', 'd\\M\\yy HH:mm', 'd\\M\\yy, HH:mm', 'dd\\M\\yy HH:mm', 'dd\\M\\yy, HH:mm', 'dd\\MM\\yy HH:mm', 'dd\\MM\\yy, HH:mm', 'd\\M\\yyyy HH:mm', 'd\\M\\yyyy, HH:mm', 'dd\\M\\yyyy HH:mm', 'dd\\M\\yyyy, HH:mm', 'dd\\MM\\yyyy HH:mm', 'dd\\MM\\yyyy, HH:mm', 'd/M/yy HH:mm', 'd/M/yy, HH:mm', 'dd/M/yy HH:mm', 'dd/M/yy, HH:mm', 'dd/MM/yy HH:mm', 'dd/MM/yy, HH:mm', 'd/M/yyyy HH:mm', 'd/M/yyyy, HH:mm', 'dd/M/yyyy HH:mm', 'dd/M/yyyy, HH:mm', 'dd/MM/yyyy HH:mm', 'dd/MM/yyyy, HH:mm', 'd M yy HH:mm', 'd M yy, HH:mm', 'dd M yy HH:mm', 'dd M yy, HH:mm', 'dd MM yy HH:mm', 'dd MM yy, HH:mm', 'd M yyyy HH:mm', 'd M yyyy, HH:mm', 'dd M yyyy HH:mm', 'dd M yyyy, HH:mm', 'dd MM yyyy HH:mm', 'dd MM yyyy, HH:mm', 'd-M-yy HH:mm', 'd-M-yy, HH:mm', 'dd-M-yy HH:mm', 'dd-M-yy, HH:mm', 'dd-MM-yy HH:mm', 'dd-MM-yy, HH:mm', 'd-M-yyyy HH:mm', 'd-M-yyyy, HH:mm', 'dd-M-yyyy HH:mm', 'dd-M-yyyy, HH:mm', 'dd-MM-yyyy HH:mm', 'dd-MM-yyyy, HH:mm', 'd.M.yy HH:mm', 'd.M.yy, HH:mm', 'dd.M.yy HH:mm', 'dd.M.yy, HH:mm', 'dd.MM.yy HH:mm', 'dd.MM.yy, HH:mm', 'd.M.yyyy HH:mm', 'd.M.yyyy, HH:mm', 'dd.M.yyyy HH:mm', 'dd.M.yyyy, HH:mm', 'dd.MM.yyyy HH:mm', 'dd.MM.yyyy, HH:mm', 'd\\M\\yy HH:mm', 'd\\M\\yy, HH:mm', 'dd\\M\\yy HH:mm', 'dd\\M\\yy, HH:mm', 'dd\\MM\\yy HH:mm', 'dd\\MM\\yy, HH:mm', 'd\\M\\yyyy HH:mm', 'd\\M\\yyyy, HH:mm', 'dd\\M\\yyyy HH:mm', 'dd\\M\\yyyy, HH:mm', 'dd\\MM\\yyyy HH:mm', 'dd\\MM\\yyyy, HH:mm', 'd/M/yy HH:mm', 'd/M/yy, HH:mm', 'dd/M/yy HH:mm', 'dd/M/yy, HH:mm', 'dd/MM/yy HH:mm', 'dd/MM/yy, HH:mm', 'd/M/yyyy HH:mm', 'd/M/yyyy, HH:mm', 'dd/M/yyyy HH:mm', 'dd/M/yyyy, HH:mm', 'dd/MM/yyyy HH:mm', 'dd/MM/yyyy, HH:mm', 'yy M d HH:mm', 'yy M d, HH:mm', 'yy M dd HH:mm', 'yy M dd, HH:mm', 'yy MM dd HH:mm', 'yy MM dd, HH:mm', 'yyyy M d HH:mm', 'yyyy M d, HH:mm', 'yyyy M dd HH:mm', 'yyyy M dd, HH:mm', 'yyyy MM dd HH:mm', 'yyyy MM dd, HH:mm', 'yy-M-d HH:mm', 'yy-M-d, HH:mm', 'yy-M-dd HH:mm', 'yy-M-dd, HH:mm', 'yy-MM-dd HH:mm', 'yy-MM-dd, HH:mm', 'yyyy-M-d HH:mm', 'yyyy-M-d, HH:mm', 'yyyy-M-dd HH:mm', 'yyyy-M-dd, HH:mm', 'yyyy-MM-dd HH:mm', 'yyyy-MM-dd, HH:mm', 'yy.M.d HH:mm', 'yy.M.d, HH:mm', 'yy.M.dd HH:mm', 'yy.M.dd, HH:mm', 'yy.MM.dd HH:mm', 'yy.MM.dd, HH:mm', 'yyyy.M.d HH:mm', 'yyyy.M.d, HH:mm', 'yyyy.M.dd HH:mm', 'yyyy.M.dd, HH:mm', 'yyyy.MM.dd HH:mm', 'yyyy.MM.dd, HH:mm', 'yy\\M\\d HH:mm', 'yy\\M\\d, HH:mm', 'yy\\M\\dd HH:mm', 'yy\\M\\dd, HH:mm', 'yy\\MM\\dd HH:mm', 'yy\\MM\\dd, HH:mm', 'yyyy\\M\\d HH:mm', 'yyyy\\M\\d, HH:mm', 'yyyy\\M\\dd HH:mm', 'yyyy\\M\\dd, HH:mm', 'yyyy\\MM\\dd HH:mm', 'yyyy\\MM\\dd, HH:mm', 'yy/M/d HH:mm', 'yy/M/d, HH:mm', 'yy/M/dd HH:mm', 'yy/M/dd, HH:mm', 'yy/MM/dd HH:mm', 'yy/MM/dd, HH:mm', 'yyyy/M/d HH:mm', 'yyyy/M/d, HH:mm', 'yyyy/M/dd HH:mm', 'yyyy/M/dd, HH:mm', 'yyyy/MM/dd HH:mm', 'yyyy/MM/dd, HH:mm', 'yy d M HH:mm', 'yy d M, HH:mm', 'yy dd M HH:mm', 'yy dd M, HH:mm', 'yy dd MM HH:mm', 'yy dd MM, HH:mm', 'yyyy d M HH:mm', 'yyyy d M, HH:mm', 'yyyy dd MM HH:mm', 'yyyy dd MM, HH:mm', 'yyyy dd MM HH:mm', 'yyyy dd MM, HH:mm', 'yy-d-M HH:mm', 'yy-d-M, HH:mm', 'yy-dd-M HH:mm', 'yy-dd-M, HH:mm', 'yy-dd-MM HH:mm', 'yy-dd-MM, HH:mm', 'yyyy-d-M HH:mm', 'yyyy-d-M, HH:mm', 'yyyy-dd-MM HH:mm', 'yyyy-dd-MM, HH:mm', 'yyyy-dd-MM HH:mm', 'yyyy-dd-MM, HH:mm', 'yy.d.M HH:mm', 'yy.d.M, HH:mm', 'yy.dd.M HH:mm', 'yy.dd.M, HH:mm', 'yy.dd.MM HH:mm', 'yy.dd.MM, HH:mm', 'yyyy.d.M HH:mm', 'yyyy.d.M, HH:mm', 'yyyy.dd.MM HH:mm', 'yyyy.dd.MM, HH:mm', 'yyyy.dd.MM HH:mm', 'yyyy.dd.MM, HH:mm', 'yy\\d\\M HH:mm', 'yy\\d\\M, HH:mm', 'yy\\dd\\M HH:mm', 'yy\\dd\\M, HH:mm', 'yy\\dd\\MM HH:mm', 'yy\\dd\\MM, HH:mm', 'yyyy\\d\\M HH:mm', 'yyyy\\d\\M, HH:mm', 'yyyy\\dd\\MM HH:mm', 'yyyy\\dd\\MM, HH:mm', 'yyyy\\dd\\MM HH:mm', 'yyyy\\dd\\MM, HH:mm', 'yy/d/M HH:mm', 'yy/d/M, HH:mm', 'yy/dd/M HH:mm', 'yy/dd/M, HH:mm', 'yy/dd/MM HH:mm', 'yy/dd/MM, HH:mm', 'yyyy/d/M HH:mm', 'yyyy/d/M, HH:mm', 'yyyy/dd/MM HH:mm', 'yyyy/dd/MM, HH:mm', 'yyyy/dd/MM HH:mm', 'yyyy/dd/MM, HH:mm', 'd MMM HH:mm', 'd MMM, HH:mm', 'd MMMM HH:mm', 'd MMMM, HH:mm', 'dd MMM HH:mm', 'dd MMM, HH:mm', 'dd MMMM HH:mm', 'dd MMMM, HH:mm', 'yyyy MMM d', 'yyyy MMMM d', 'yyyy MMM dd', 'yyyy MMMM dd', 'yyyy d MMM', 'yyyy d MMMM', 'yyyy dd MMM', 'yyyy dd MMMM', 'd MMM yy', 'd MMMM yy', 'dd MMM yy', 'dd MMMM yy', 'd MMM yyyy', 'd MMMM yyyy', 'dd MMM yyyy', 'dd MMMM yyyy', 'd MMM yy', 'd MMMM yy', 'dd MMM yy', 'dd MMMM yy', 'd MMM yyyy', 'd MMMM yyyy', 'dd MMM yyyy', 'dd MMMM yyyy', 'MMM d yyyy', 'MMMM d yyyy', 'MMM dd yyyy', 'MMMM dd yyyy', 'yy MMM d', 'yy MMMM d', 'yy MMM dd', 'yy MMMM dd', 'yy d MMM', 'yy d MMMM', 'yy dd MMM', 'yy dd MMMM', 'd MMM', 'd MMMM', 'dd MMM', 'dd MMMM', 'yyyy MMM d HH:mm', 'yyyy MMM d, HH:mm', 'yyyy MMMM d HH:mm', 'yyyy MMMM d, HH:mm', 'yyyy MMM dd HH:mm', 'yyyy MMM dd, HH:mm', 'yyyy MMMM dd HH:mm', 'yyyy MMMM dd, HH:mm', 'yyyy d MMM HH:mm', 'yyyy d MMM, HH:mm', 'yyyy d MMMM HH:mm', 'yyyy d MMMM, HH:mm', 'yyyy dd MMM HH:mm', 'yyyy dd MMM, HH:mm', 'yyyy dd MMMM HH:mm', 'yyyy dd MMMM, HH:mm', 'd MMM yy HH:mm', 'd MMM yy, HH:mm', 'd MMMM yy HH:mm', 'd MMMM yy, HH:mm', 'dd MMM yy HH:mm', 'dd MMM yy, HH:mm', 'dd MMMM yy HH:mm', 'dd MMMM yy, HH:mm', 'd MMM yyyy HH:mm', 'd MMM yyyy, HH:mm', 'd MMMM yyyy HH:mm', 'd MMMM yyyy, HH:mm', 'dd MMM yyyy HH:mm', 'dd MMM yyyy, HH:mm', 'dd MMMM yyyy HH:mm', 'dd MMMM yyyy, HH:mm', 'd MMM yy HH:mm', 'd MMM yy, HH:mm', 'd MMMM yy HH:mm', 'd MMMM yy, HH:mm', 'dd MMM yy HH:mm', 'dd MMM yy, HH:mm', 'dd MMMM yy HH:mm', 'dd MMMM yy, HH:mm', 'd MMM yyyy HH:mm', 'd MMM yyyy, HH:mm', 'd MMMM yyyy HH:mm', 'd MMMM yyyy, HH:mm', 'dd MMM yyyy HH:mm', 'dd MMM yyyy, HH:mm', 'dd MMMM yyyy HH:mm', 'dd MMMM yyyy, HH:mm', 'MMM d yyyy HH:mm', 'MMM d yyyy, HH:mm', 'MMMM d yyyy HH:mm', 'MMMM d yyyy, HH:mm', 'MMM dd yyyy HH:mm', 'MMM dd yyyy, HH:mm', 'MMMM dd yyyy HH:mm', 'MMMM dd yyyy, HH:mm', 'yy MMM d HH:mm', 'yy MMM d, HH:mm', 'yy MMMM d HH:mm', 'yy MMMM d, HH:mm', 'yy MMM dd HH:mm', 'yy MMM dd, HH:mm', 'yy MMMM dd HH:mm', 'yy MMMM dd, HH:mm', 'yy d MMM HH:mm', 'yy d MMM, HH:mm', 'yy d MMMM HH:mm', 'yy d MMMM, HH:mm', 'yy dd MMM HH:mm', 'yy dd MMM, HH:mm', 'yy dd MMMM HH:mm', 'yy dd MMMM, HH:mm', 'd MMM HH:mm', 'd MMM, HH:mm', 'd MMMM HH:mm', 'd MMMM, HH:mm', 'dd MMM HH:mm', 'dd MMM, HH:mm', 'dd MMMM HH:mm', 'dd MMMM, HH:mm', 'yyyy MMM d', 'yyyy MMMM d', 'yyyy MMM dd', 'yyyy MMMM dd', 'yyyy d MMM', 'yyyy d MMMM', 'yyyy dd MMM', 'yyyy dd MMMM', 'd MMM yy', 'd MMMM yy', 'dd MMM yy', 'dd MMMM yy', 'd MMM yyyy', 'd MMMM yyyy', 'dd MMM yyyy', 'dd MMMM yyyy', 'd MMM yy', 'd MMMM yy', 'dd MMM yy', 'dd MMMM yy', 'd MMM yyyy', 'd MMMM yyyy', 'dd MMM yyyy', 'dd MMMM yyyy', 'MMM d yyyy', 'MMMM d yyyy', 'MMM dd yyyy', 'MMMM dd yyyy', 'yy MMM d', 'yy MMMM d', 'yy MMM dd', 'yy MMMM dd', 'yy d MMM', 'yy d MMMM', 'yy dd MMM', 'yy dd MMMM', 'yyyy MMM d HH:mm', 'yyyy MMM d, HH:mm', 'yyyy MMMM d HH:mm', 'yyyy MMMM d, HH:mm', 'yyyy MMM dd HH:mm', 'yyyy MMM dd, HH:mm', 'yyyy MMMM dd HH:mm', 'yyyy MMMM dd, HH:mm', 'yyyy d MMM HH:mm', 'yyyy d MMM, HH:mm', 'yyyy d MMMM HH:mm', 'yyyy d MMMM, HH:mm', 'yyyy dd MMM HH:mm', 'yyyy dd MMM, HH:mm', 'yyyy dd MMMM HH:mm', 'yyyy dd MMMM, HH:mm', 'd MMM yy HH:mm', 'd MMM yy, HH:mm', 'd MMMM yy HH:mm', 'd MMMM yy, HH:mm', 'dd MMM yy HH:mm', 'dd MMM yy, HH:mm', 'dd MMMM yy HH:mm', 'dd MMMM yy, HH:mm', 'd MMM yyyy HH:mm', 'd MMM yyyy, HH:mm', 'd MMMM yyyy HH:mm', 'd MMMM yyyy, HH:mm', 'dd MMM yyyy HH:mm', 'dd MMM yyyy, HH:mm', 'dd MMMM yyyy HH:mm', 'dd MMMM yyyy, HH:mm', 'd MMM yy HH:mm', 'd MMM yy, HH:mm', 'd MMMM yy HH:mm', 'd MMMM yy, HH:mm', 'dd MMM yy HH:mm', 'dd MMM yy, HH:mm', 'dd MMMM yy HH:mm', 'dd MMMM yy, HH:mm', 'd MMM yyyy HH:mm', 'd MMM yyyy, HH:mm', 'd MMMM yyyy HH:mm', 'd MMMM yyyy, HH:mm', 'dd MMM yyyy HH:mm', 'dd MMM yyyy, HH:mm', 'dd MMMM yyyy HH:mm', 'dd MMMM yyyy, HH:mm', 'MMM d yyyy HH:mm', 'MMM d yyyy, HH:mm', 'MMMM d yyyy HH:mm', 'MMMM d yyyy, HH:mm', 'MMM dd yyyy HH:mm', 'MMM dd yyyy, HH:mm', 'MMMM dd yyyy HH:mm', 'MMMM dd yyyy, HH:mm', 'yy MMM d HH:mm', 'yy MMM d, HH:mm', 'yy MMMM d HH:mm', 'yy MMMM d, HH:mm', 'yy MMM dd HH:mm', 'yy MMM dd, HH:mm', 'yy MMMM dd HH:mm', 'yy MMMM dd, HH:mm', 'yy d MMM HH:mm', 'yy d MMM, HH:mm', 'yy d MMMM HH:mm', 'yy d MMMM, HH:mm', 'yy dd MMM HH:mm', 'yy dd MMM, HH:mm', 'yy dd MMMM HH:mm', 'yy dd MMMM, HH:mm'];
2
3
 
3
4
  export { formats as default };
@@ -1,2 +1,2 @@
1
- import { MonthsProps } from './consts';
1
+ import { type MonthsProps } from './consts';
2
2
  export default function MonthNames(props: MonthsProps): import("react/jsx-runtime").JSX.Element;
@@ -32,7 +32,7 @@ class MonthName extends PureComponent {
32
32
  locale
33
33
  } = this.props;
34
34
  return jsx("button", {
35
- type: "button",
35
+ type: 'button',
36
36
  className: classNames(styles.monthName, {
37
37
  [styles.today]: isThisMonth(month)
38
38
  }),
@@ -1,6 +1,6 @@
1
1
  import { PureComponent } from 'react';
2
- import { LinearFunction } from '../global/linear-function';
3
- import { MonthsProps } from './consts';
2
+ import { type LinearFunction } from '../global/linear-function';
3
+ import { type MonthsProps } from './consts';
4
4
  export interface MonthSliderProps extends MonthsProps {
5
5
  pxToDate: LinearFunction;
6
6
  }
@@ -54,7 +54,7 @@ class MonthSlider extends PureComponent {
54
54
  });
55
55
  return jsx("div", {
56
56
  children: years.map(date => jsx("button", {
57
- type: "button",
57
+ type: 'button',
58
58
  className: classes,
59
59
  style: {
60
60
  top: Math.floor(this.props.pxToDate.x(Number(date)) - units.cellSize)
@@ -1,4 +1,4 @@
1
- import { MonthsProps } from './consts';
1
+ import { type MonthsProps } from './consts';
2
2
  export interface MonthProps extends MonthsProps {
3
3
  month: Date;
4
4
  }
@@ -1,2 +1,2 @@
1
- import { MonthsProps } from './consts';
1
+ import { type MonthsProps } from './consts';
2
2
  export default function Months(props: MonthsProps): import("react/jsx-runtime").JSX.Element;
@@ -99,13 +99,13 @@ function Months(props) {
99
99
  });
100
100
  useEffect(() => {
101
101
  const current = componentRef.current;
102
- if (current !== null) {
102
+ if (current) {
103
103
  current.addEventListener('wheel', handleWheel, {
104
104
  passive: false
105
105
  });
106
106
  }
107
107
  return () => {
108
- if (current !== null) {
108
+ if (current) {
109
109
  current.removeEventListener('wheel', handleWheel);
110
110
  }
111
111
  };
@@ -1,5 +1,5 @@
1
1
  import { PureComponent } from 'react';
2
- import { CalendarProps } from './consts';
2
+ import { type CalendarProps } from './consts';
3
3
  interface YearsState {
4
4
  scrollDate: Date | null;
5
5
  }
@@ -54,7 +54,7 @@ class Years extends PureComponent {
54
54
  }
55
55
  }
56
56
  componentDidUpdate(prevProps, prevState) {
57
- this.stoppedScrolling = prevState.scrollDate != null && !this.state.scrollDate;
57
+ this.stoppedScrolling = !!prevState.scrollDate && !this.state.scrollDate;
58
58
  }
59
59
  componentWillUnmount() {
60
60
  if (this.componentRef.current) {
@@ -93,7 +93,7 @@ class Years extends PureComponent {
93
93
  top: Math.floor(calHeight * HALF - pxToDate.x(Number(date)))
94
94
  },
95
95
  children: years.map(item => jsx("button", {
96
- type: "button",
96
+ type: 'button',
97
97
  className: classNames(styles.year, {
98
98
  [styles.currentYear]: isSameYear(item, date),
99
99
  [styles.today]: isThisYear(item)
@@ -1,3 +1,3 @@
1
1
  import 'core-js/modules/web.dom-collections.iterator.js';
2
2
  import 'scrollbar-width';
3
- export { d as default, p as preventerFactory } from '../_helpers/dialog__body-scroll-preventer.js';
3
+ export { d as default, p as preventerFactory } from '../_helpers/dialog-body-scroll-preventer.js';
@@ -1,6 +1,6 @@
1
1
  import { PureComponent } from 'react';
2
2
  import * as React from 'react';
3
- import TabTrap, { TabTrapProps } from '../tab-trap/tab-trap';
3
+ import TabTrap, { type TabTrapProps } from '../tab-trap/tab-trap';
4
4
  import type { ShortcutsScopeOptions } from '../shortcuts/core';
5
5
  export interface DialogProps extends Partial<TabTrapProps> {
6
6
  show: boolean;
@@ -13,7 +13,7 @@ import TabTrap from '../tab-trap/tab-trap.js';
13
13
  import { Button } from '../button/button.js';
14
14
  import { PopupTarget, PopupTargetContext } from '../popup/popup.target.js';
15
15
  import { getPopupContainer } from '../popup/popup.js';
16
- import { p as preventerFactory, s as styles } from '../_helpers/dialog__body-scroll-preventer.js';
16
+ import { p as preventerFactory, s as styles } from '../_helpers/dialog-body-scroll-preventer.js';
17
17
  import '../island/adaptive-island-hoc.js';
18
18
  import '../global/linear-function.js';
19
19
  import '../_helpers/island.js';
@@ -31,14 +31,14 @@ import '@jetbrains/icons/chevron-down';
31
31
  import '@jetbrains/icons/chevron-12px-down';
32
32
  import 'util-deprecate';
33
33
  import '../icon/icon.js';
34
- import '../icon/icon__constants.js';
35
- import '../_helpers/icon__svg.js';
34
+ import '../icon/icon.constants.js';
35
+ import '../_helpers/icon-svg.js';
36
36
  import 'core-js/modules/es.string.replace.js';
37
37
  import '../global/memoize.js';
38
- import '../link/clickableLink.js';
38
+ import '../link/clickable-link.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 '../popup/position.js';
43
43
  import 'core-js/modules/es.array.sort.js';
44
44
  import '../popup/popup.consts.js';
@@ -113,7 +113,7 @@ class Dialog extends PureComponent {
113
113
  show,
114
114
  modal
115
115
  } = this.props;
116
- if (this.nativeDialog.current != null) {
116
+ if (this.nativeDialog.current) {
117
117
  if (show) {
118
118
  this.nativeDialog.current.removeAttribute('open');
119
119
  if (modal) {
@@ -170,22 +170,22 @@ class Dialog extends PureComponent {
170
170
  options: this.props.shortcutOptions
171
171
  }), (onOverlayClick !== noop || onCloseAttempt !== noop) && jsx("div", {
172
172
  // click handler is duplicated in close button
173
- role: "presentation",
173
+ role: 'presentation',
174
174
  className: styles.clickableOverlay,
175
175
  onClick: this.handleClick,
176
- "data-test": "ring-dialog-overlay"
176
+ "data-test": 'ring-dialog-overlay'
177
177
  }), jsx("div", {
178
178
  className: styles.innerContainer,
179
179
  children: jsxs(AdaptiveIsland, {
180
180
  className: classNames(styles.content, contentClassName, {
181
181
  [styles.dense]: dense
182
182
  }),
183
- "data-test": "ring-dialog",
184
- role: "dialog",
183
+ "data-test": 'ring-dialog',
184
+ role: 'dialog',
185
185
  "aria-label": label,
186
186
  children: [children, showCloseButton && jsx(Button, {
187
187
  icon: closeIcon,
188
- "data-test": "ring-dialog-close-button",
188
+ "data-test": 'ring-dialog-close-button',
189
189
  className: classNames(styles.closeButton, {
190
190
  [styles.closeButtonOutside]: !closeButtonInside,
191
191
  [styles.closeButtonInside]: closeButtonInside
@@ -220,9 +220,9 @@ class Dialog extends PureComponent {
220
220
  let targetElement = document.body;
221
221
  if (portalTarget instanceof HTMLElement) {
222
222
  targetElement = portalTarget;
223
- } else if (contextTarget != null) {
223
+ } else if (contextTarget) {
224
224
  const container = getPopupContainer(contextTarget);
225
- if (container != null) {
225
+ if (container) {
226
226
  targetElement = container;
227
227
  }
228
228
  }
@@ -232,10 +232,10 @@ class Dialog extends PureComponent {
232
232
  children: target => jsxs(TabTrap, _objectSpread2(_objectSpread2({
233
233
  trapDisabled: !trapFocus,
234
234
  "data-test": joinDataTestAttributes('ring-dialog-container', dataTest),
235
- "data-rg-modal-dialog-container": "",
235
+ "data-rg-modal-dialog-container": '',
236
236
  ref: this.dialogRef,
237
237
  className: classes,
238
- role: "presentation"
238
+ role: 'presentation'
239
239
  }, restProps), {}, {
240
240
  children: [content, target]
241
241
  }))
@@ -1,3 +1,3 @@
1
- import { ButtonAttrs } from '../button/button';
1
+ import { type ButtonAttrs } from '../button/button';
2
2
  declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react/jsx-runtime").JSX.Element>;
3
3
  export default _default;
@@ -9,12 +9,12 @@ import '@jetbrains/icons/chevron-down';
9
9
  import '@jetbrains/icons/chevron-12px-down';
10
10
  import 'util-deprecate';
11
11
  import '../icon/icon.js';
12
- import '../icon/icon__constants.js';
13
- import '../_helpers/icon__svg.js';
12
+ import '../icon/icon.constants.js';
13
+ import '../_helpers/icon-svg.js';
14
14
  import 'core-js/modules/es.regexp.exec.js';
15
15
  import 'core-js/modules/es.string.replace.js';
16
16
  import '../global/memoize.js';
17
- import '../link/clickableLink.js';
17
+ import '../link/clickable-link.js';
18
18
  import '../global/controls-height.js';
19
19
  import '../global/configuration.js';
20
- import '../_helpers/button__classes.js';
20
+ import '../_helpers/button.classes.js';
@@ -1,6 +1,6 @@
1
- import { Component, HTMLAttributes, ReactNode, ReactElement } from 'react';
1
+ import { Component, type HTMLAttributes, type ReactNode, type ReactElement } from 'react';
2
2
  import * as React from 'react';
3
- import { PopupAttrs } from '../popup/popup';
3
+ import { type PopupAttrs } from '../popup/popup';
4
4
  import Anchor from './anchor';
5
5
  export interface AnchorProps {
6
6
  active: boolean;
@@ -11,15 +11,15 @@ import '@jetbrains/icons/chevron-down';
11
11
  import '@jetbrains/icons/chevron-12px-down';
12
12
  import 'util-deprecate';
13
13
  import '../icon/icon.js';
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';
19
- import '../link/clickableLink.js';
19
+ import '../link/clickable-link.js';
20
20
  import '../global/controls-height.js';
21
21
  import '../global/configuration.js';
22
- import '../_helpers/button__classes.js';
22
+ import '../_helpers/button.classes.js';
23
23
 
24
24
  const _excluded = ["initShown", "onShow", "onHide", "hoverShowTimeOut", "hoverHideTimeOut", "children", "anchor", "className", "activeClassName", "hoverMode", "clickMode", "data-test", "disabled"];
25
25
  /**
@@ -144,7 +144,7 @@ class Dropdown extends Component {
144
144
  } = _this$props3,
145
145
  restProps = _objectWithoutProperties(_this$props3, _excluded);
146
146
  const classes = classNames(styles.dropdown, className, {
147
- [activeClassName !== null && activeClassName !== void 0 ? activeClassName : '']: activeClassName != null && show
147
+ [activeClassName !== null && activeClassName !== void 0 ? activeClassName : '']: activeClassName && show
148
148
  });
149
149
  let anchorElement;
150
150
  const active = hoverMode ? pinned : show;
@@ -182,7 +182,7 @@ class Dropdown extends Component {
182
182
  }, restProps), {}, {
183
183
  onClick: clickMode ? this.onClick : undefined,
184
184
  // anchorElement should be a `button` or an `a`
185
- role: "presentation",
185
+ role: 'presentation',
186
186
  onMouseEnter: hoverMode ? this.onMouseEnter : undefined,
187
187
  onMouseLeave: hoverMode ? this.onMouseLeave : undefined,
188
188
  className: classes,
@@ -1,8 +1,8 @@
1
- import { ReactElement, HTMLAttributes, SyntheticEvent, Ref, ReactNode } from 'react';
2
- import { SelectHandlerParams } from '../list/list';
3
- import { AnchorProps, DropdownAttrs, DropdownChildrenFunction } from '../dropdown/dropdown';
4
- import PopupMenu, { PopupMenuAttrs } from '../popup-menu/popup-menu';
5
- import { ListDataItem } from '../list/consts';
1
+ import { type ReactElement, type HTMLAttributes, type SyntheticEvent, type Ref, type ReactNode } from 'react';
2
+ import { type SelectHandlerParams } from '../list/list';
3
+ import { type AnchorProps, type DropdownAttrs, type DropdownChildrenFunction } from '../dropdown/dropdown';
4
+ import PopupMenu, { type PopupMenuAttrs } from '../popup-menu/popup-menu';
5
+ import { type ListDataItem } from '../list/consts';
6
6
  export interface DropdownAnchorWrapperProps extends AnchorProps {
7
7
  anchor: ReactElement | ReactNode[] | string | ((props: AnchorProps, ariaProps: HTMLAttributes<HTMLElement>) => ReactElement | null);
8
8
  activeListItemId?: string | null | undefined;
@@ -28,7 +28,7 @@ import 'combokeys';
28
28
  import '../global/sniffer.js';
29
29
  import 'sniffr';
30
30
  import '../global/create-stateful-context.js';
31
- import '../list/list__item.js';
31
+ import '../list/list-item.js';
32
32
  import '../avatar/avatar.js';
33
33
  import '../global/url.js';
34
34
  import 'core-js/modules/es.string.replace.js';
@@ -39,27 +39,27 @@ import '../checkbox/checkbox.js';
39
39
  import '@jetbrains/icons/checkmark-12px';
40
40
  import '@jetbrains/icons/remove-12px';
41
41
  import '../icon/icon.js';
42
- import '../icon/icon__constants.js';
43
- import '../_helpers/icon__svg.js';
44
- import '../global/composeRefs.js';
42
+ import '../icon/icon.constants.js';
43
+ import '../_helpers/icon-svg.js';
44
+ import '../global/compose-refs.js';
45
45
  import '../control-help/control-help.js';
46
46
  import '../link/link.js';
47
- import '../link/clickableLink.js';
47
+ import '../link/clickable-link.js';
48
48
  import '../_helpers/link.js';
49
49
  import '../_helpers/list.js';
50
50
  import '../list/consts.js';
51
- import '../list/list__classes.js';
52
- import '../list/list__custom.js';
51
+ import '../list/list.classes.js';
52
+ import '../list/list-custom.js';
53
53
  import '../global/get-event-key.js';
54
- import '../list/list__title.js';
55
- import '../list/list__separator.js';
56
- import '../list/list__hint.js';
54
+ import '../list/list-title.js';
55
+ import '../list/list-separator.js';
56
+ import '../list/list-hint.js';
57
57
  import '../button/button.js';
58
58
  import '@jetbrains/icons/chevron-down';
59
59
  import '@jetbrains/icons/chevron-12px-down';
60
60
  import '../global/controls-height.js';
61
61
  import '../global/configuration.js';
62
- import '../_helpers/button__classes.js';
62
+ import '../_helpers/button.classes.js';
63
63
  import '../popup/popup.js';
64
64
  import 'react-dom';
65
65
  import '../tab-trap/tab-trap.js';
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { type InputHTMLAttributes } from 'react';
2
2
  import * as React from 'react';
3
3
  import { Levels } from '../heading/heading';
4
4
  import { Size } from '../input/input';
@@ -15,19 +15,19 @@ import '../_helpers/heading.js';
15
15
  import '@jetbrains/icons/chevron-down';
16
16
  import '@jetbrains/icons/chevron-12px-down';
17
17
  import '../icon/icon.js';
18
- import '../icon/icon__constants.js';
19
- import '../_helpers/icon__svg.js';
18
+ import '../icon/icon.constants.js';
19
+ import '../_helpers/icon-svg.js';
20
20
  import 'core-js/modules/es.regexp.exec.js';
21
21
  import 'core-js/modules/es.string.replace.js';
22
22
  import '../global/memoize.js';
23
- import '../link/clickableLink.js';
23
+ import '../link/clickable-link.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 '@jetbrains/icons/close-12px';
28
28
  import '../i18n/i18n-context.js';
29
29
  import '../i18n/i18n.js';
30
- import '../global/composeRefs.js';
30
+ import '../global/compose-refs.js';
31
31
  import 'memoize-one';
32
32
  import '../control-label/control-label.js';
33
33
  import '../control-help/control-help.js';
@@ -40,6 +40,7 @@ var styles = {"editableHeading":"ring-editable-heading-editableHeading","fullSiz
40
40
 
41
41
  const _excluded = ["level", "className", "headingClassName", "inputClassName", "children", "isEditing", "isSavingPossible", "isSaving", "embedded", "size", "onEdit", "onSave", "onCancel", "autoFocus", "data-test", "error", "disabled", "multiline", "renderMenu", "onFocus", "onBlur", "onChange", "onScroll", "maxInputRows", "translations"];
42
42
  function noop() {}
43
+ // eslint-disable-next-line complexity
43
44
  const EditableHeading = props => {
44
45
  const {
45
46
  level = Levels.H1,
@@ -117,7 +118,7 @@ const EditableHeading = props => {
117
118
  el.style.height = "".concat(el.scrollHeight - parseFloat(paddingTop) - parseFloat(paddingBottom), "px");
118
119
  }, []);
119
120
  const checkValue = useCallback(el => {
120
- if (multiline && el != null && el.scrollHeight >= el.clientHeight) {
121
+ if (multiline && el && el.scrollHeight >= el.clientHeight) {
121
122
  stretch(el);
122
123
  }
123
124
  }, [stretch, multiline]);
@@ -211,7 +212,7 @@ const EditableHeading = props => {
211
212
  })]
212
213
  })]
213
214
  }) : jsx("button", {
214
- type: "button",
215
+ type: 'button',
215
216
  className: styles.headingWrapperButton,
216
217
  onMouseDown: onHeadingMouseDown,
217
218
  children: jsx(Heading, {
@@ -1,4 +1,4 @@
1
- import { PureComponent, ReactElement } from 'react';
1
+ import { PureComponent, type ReactElement } from 'react';
2
2
  export type ErrorBubbleProps<P> = Partial<P> & {
3
3
  className?: string | null | undefined;
4
4
  children?: ReactElement<P> | ReactElement<P>[];
@@ -1,8 +1,7 @@
1
1
  import { c as _taggedTemplateLiteral } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import figma from '@figma/code-connect';
2
3
 
3
4
  var _templateObject;
4
- // url=https://www.figma.com/design/HY6d4uE1xxaQXCMG9fe6Y2/RingUI-(Internal)?node-id=1228-2869
5
- const figma = require('figma');
6
5
  const instance = figma.selectedInstance;
7
6
  const error = instance.findLayers(() => true)[0].textContent;
8
7
  const imports = ["import ErrorBubble from '@jetbrains/ring-ui/components/error-bubble/error-bubble'"];
@@ -41,7 +41,7 @@ class ErrorBubble extends PureComponent {
41
41
  const errorBubbleClasses = classNames(styles.errorBubble, className);
42
42
  return jsxs("div", {
43
43
  className: styles.errorBubbleWrapper,
44
- "data-test": "ring-error-bubble-wrapper",
44
+ "data-test": 'ring-error-bubble-wrapper',
45
45
  children: [children && Children.map(children, child => /*#__PURE__*/cloneElement(child, _objectSpread2(_objectSpread2({}, child.props), restProps))), restProps.error && jsx(Popup, {
46
46
  trapFocus: false,
47
47
  className: styles.errorBubblePopup,
@@ -50,7 +50,7 @@ class ErrorBubble extends PureComponent {
50
50
  directions: [Directions.RIGHT_CENTER, Directions.RIGHT_BOTTOM, Directions.RIGHT_TOP],
51
51
  children: jsx("div", {
52
52
  className: errorBubbleClasses,
53
- "data-test": "ring-error-bubble",
53
+ "data-test": 'ring-error-bubble',
54
54
  children: restProps.error
55
55
  })
56
56
  })]
@@ -1,5 +1,5 @@
1
- import { Component, ReactNode } from 'react';
2
- import { IconType } from '../icon/icon';
1
+ import { Component, type ReactNode } from 'react';
2
+ import { type IconType } from '../icon/icon';
3
3
  export interface ErrorMessageProps {
4
4
  children?: ReactNode;
5
5
  icon?: string | IconType | null | undefined;
@@ -3,11 +3,11 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { Component } from 'react';
4
4
  import classNames from 'classnames';
5
5
  import Icon from '../icon/icon.js';
6
- import { Size } from '../icon/icon__constants.js';
6
+ import { Size } from '../icon/icon.constants.js';
7
7
  import joinDataTestAttributes from '../global/data-tests.js';
8
8
  import '../_helpers/_rollupPluginBabelHelpers.js';
9
9
  import 'util-deprecate';
10
- import '../_helpers/icon__svg.js';
10
+ import '../_helpers/icon-svg.js';
11
11
  import 'core-js/modules/es.regexp.exec.js';
12
12
  import 'core-js/modules/es.string.replace.js';
13
13
  import '../global/memoize.js';
@@ -42,7 +42,7 @@ class ErrorMessage extends Component {
42
42
  className: styles.content,
43
43
  children: [jsxs("div", {
44
44
  className: styles.title,
45
- "data-test": "ring-error-message-title",
45
+ "data-test": 'ring-error-message-title',
46
46
  children: [code && "".concat(code, ":"), " ", message]
47
47
  }), description && jsx("div", {
48
48
  className: styles.description,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name Footer
3
3
  */
4
- import { HTMLAttributeAnchorTarget, ReactElement } from 'react';
4
+ import { type HTMLAttributeAnchorTarget, type ReactElement } from 'react';
5
5
  /**
6
6
  * Return copyright string
7
7
  * @param year {int}
@@ -5,7 +5,7 @@ import Link from '../link/link.js';
5
5
  import '../_helpers/_rollupPluginBabelHelpers.js';
6
6
  import '../global/data-tests.js';
7
7
  import 'core-js/modules/web.dom-collections.iterator.js';
8
- import '../link/clickableLink.js';
8
+ import '../link/clickable-link.js';
9
9
  import '../_helpers/link.js';
10
10
 
11
11
  var styles = {"footer":"ring-footer-footer ring-global-font","footerFloating":"ring-footer-footerFloating ring-footer-footer ring-global-font","column":"ring-footer-column","columnItem":"ring-footer-columnItem","columnLeft":"ring-footer-columnLeft ring-footer-column","columnCenter":"ring-footer-columnCenter ring-footer-column","line":"ring-footer-line","columnRight":"ring-footer-columnRight ring-footer-column","lineCenter":"ring-footer-lineCenter"};
@@ -97,7 +97,7 @@ const Footer = /*#__PURE__*/memo(function Footer(_ref2) {
97
97
  });
98
98
  return jsx("footer", {
99
99
  className: classes,
100
- "data-test": "ring-footer",
100
+ "data-test": 'ring-footer',
101
101
  children: [content(left, 'left'), content(center, 'center'), content(right, 'right')]
102
102
  });
103
103
  });
@@ -0,0 +1,2 @@
1
+ import { type Ref } from 'react';
2
+ export declare function createComposedRef<T>(): import("memoize-one").MemoizedFn<(...refs: (Ref<T> | undefined)[]) => (value: T | null) => void>;
@@ -0,0 +1,19 @@
1
+ import memoizeOne from 'memoize-one';
2
+
3
+ function composeRefs() {
4
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
5
+ refs[_key] = arguments[_key];
6
+ }
7
+ return value => refs.forEach(ref => {
8
+ if (typeof ref === 'function') {
9
+ ref(value);
10
+ } else if (ref) {
11
+ ref.current = value;
12
+ }
13
+ });
14
+ }
15
+ function createComposedRef() {
16
+ return memoizeOne(composeRefs);
17
+ }
18
+
19
+ export { createComposedRef };
@@ -1,2 +1,6 @@
1
- import { Ref } from 'react';
2
- export declare function createComposedRef<T>(): import("memoize-one").MemoizedFn<(...refs: (Ref<T> | undefined)[]) => (value: T | null) => void>;
1
+ import { createComposedRef as _createComposedRef } from './compose-refs';
2
+ /**
3
+ * @deprecated Use createComposedRef from './compose-refs' instead
4
+ */
5
+ declare const createComposedRef: typeof _createComposedRef;
6
+ export { createComposedRef };