@hazelcast/ui 2.0.5-canary.0 → 3.0.0-canary.0

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 (523) hide show
  1. package/lib/components/Alert.js +116 -50
  2. package/lib/components/Alert.js.map +1 -1
  3. package/lib/components/Alert.module.scss.js +8 -0
  4. package/lib/components/Alert.module.scss.js.map +1 -0
  5. package/lib/components/AppHeader/AppHeader.js +39 -17
  6. package/lib/components/AppHeader/AppHeader.js.map +1 -1
  7. package/lib/components/AppHeader/AppHeader.module.scss.js +8 -0
  8. package/lib/components/AppHeader/AppHeader.module.scss.js.map +1 -0
  9. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +24 -7
  10. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -1
  11. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss.js +8 -0
  12. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss.js.map +1 -0
  13. package/lib/components/AppHeader/AppHeaderLogo/index.js +8 -2
  14. package/lib/components/AppHeader/AppHeaderLogo/index.js.map +1 -1
  15. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +46 -14
  16. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -1
  17. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss.js +8 -0
  18. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss.js.map +1 -0
  19. package/lib/components/AppHeader/AppHeaderMenu/index.js +8 -2
  20. package/lib/components/AppHeader/AppHeaderMenu/index.js.map +1 -1
  21. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +19 -9
  22. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -1
  23. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss.js +8 -0
  24. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss.js.map +1 -0
  25. package/lib/components/AppHeader/EnvironmentBadge/index.js +8 -2
  26. package/lib/components/AppHeader/EnvironmentBadge/index.js.map +1 -1
  27. package/lib/components/AppHeader/SelectCluster/SelectCluster.js +72 -32
  28. package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -1
  29. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss.js +8 -0
  30. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss.js.map +1 -0
  31. package/lib/components/AppHeader/SelectCluster/index.js +8 -2
  32. package/lib/components/AppHeader/SelectCluster/index.js.map +1 -1
  33. package/lib/components/AppHeader/index.js +8 -2
  34. package/lib/components/AppHeader/index.js.map +1 -1
  35. package/lib/components/AppSidebar/AppSidebar.js +56 -30
  36. package/lib/components/AppSidebar/AppSidebar.js.map +1 -1
  37. package/lib/components/AppSidebar/AppSidebar.module.scss.js +8 -0
  38. package/lib/components/AppSidebar/AppSidebar.module.scss.js.map +1 -0
  39. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +37 -21
  40. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -1
  41. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss.js +8 -0
  42. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss.js.map +1 -0
  43. package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js +8 -2
  44. package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js.map +1 -1
  45. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +31 -10
  46. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -1
  47. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss.js +8 -0
  48. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss.js.map +1 -0
  49. package/lib/components/AppSidebar/AppSidebarFavorites/index.js +8 -2
  50. package/lib/components/AppSidebar/AppSidebarFavorites/index.js.map +1 -1
  51. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +77 -22
  52. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -1
  53. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss.js +8 -0
  54. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss.js.map +1 -0
  55. package/lib/components/AppSidebar/AppSidebarItem/index.js +8 -2
  56. package/lib/components/AppSidebar/AppSidebarItem/index.js.map +1 -1
  57. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +17 -6
  58. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -1
  59. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss.js +8 -0
  60. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss.js.map +1 -0
  61. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js +8 -2
  62. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js.map +1 -1
  63. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +39 -14
  64. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -1
  65. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss.js +8 -0
  66. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss.js.map +1 -0
  67. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +94 -53
  68. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -1
  69. package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js +8 -3
  70. package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js.map +1 -1
  71. package/lib/components/AppSidebar/AppSidebarSection/index.js +8 -2
  72. package/lib/components/AppSidebar/AppSidebarSection/index.js.map +1 -1
  73. package/lib/components/AppSidebar/appSidebarContext.js +14 -9
  74. package/lib/components/AppSidebar/appSidebarContext.js.map +1 -1
  75. package/lib/components/AppSidebar/index.js +16 -6
  76. package/lib/components/AppSidebar/index.js.map +1 -1
  77. package/lib/components/AutocompleteField.js +229 -154
  78. package/lib/components/AutocompleteField.js.map +1 -1
  79. package/lib/components/AutocompleteField.module.scss.js +8 -0
  80. package/lib/components/AutocompleteField.module.scss.js.map +1 -0
  81. package/lib/components/AutocompleteFieldFormik.js +41 -18
  82. package/lib/components/AutocompleteFieldFormik.js.map +1 -1
  83. package/lib/components/Badge.js +66 -42
  84. package/lib/components/Badge.js.map +1 -1
  85. package/lib/components/Badge.module.scss.js +8 -0
  86. package/lib/components/Badge.module.scss.js.map +1 -0
  87. package/lib/components/Button.js +115 -42
  88. package/lib/components/Button.js.map +1 -1
  89. package/lib/components/Button.module.scss.js +8 -0
  90. package/lib/components/Button.module.scss.js.map +1 -0
  91. package/lib/components/Calendar/Calendar.js +77 -23
  92. package/lib/components/Calendar/Calendar.js.map +1 -1
  93. package/lib/components/Calendar/Calendar.module.scss.js +8 -0
  94. package/lib/components/Calendar/Calendar.module.scss.js.map +1 -0
  95. package/lib/components/Calendar/CalendarRange.js +60 -12
  96. package/lib/components/Calendar/CalendarRange.js.map +1 -1
  97. package/lib/components/Calendar/CalendarRange.module.scss.js +8 -0
  98. package/lib/components/Calendar/CalendarRange.module.scss.js.map +1 -0
  99. package/lib/components/Calendar/components/CalendarHeader.js +35 -12
  100. package/lib/components/Calendar/components/CalendarHeader.js.map +1 -1
  101. package/lib/components/Calendar/components/CalendarInput.js +39 -9
  102. package/lib/components/Calendar/components/CalendarInput.js.map +1 -1
  103. package/lib/components/Calendar/components/CalendarTime.js +104 -66
  104. package/lib/components/Calendar/components/CalendarTime.js.map +1 -1
  105. package/lib/components/Calendar/components/CalendarTime.module.scss.js +8 -0
  106. package/lib/components/Calendar/components/CalendarTime.module.scss.js.map +1 -0
  107. package/lib/components/Calendar/helpers/consts.js +8 -100
  108. package/lib/components/Calendar/helpers/consts.js.map +1 -1
  109. package/lib/components/Card.js +60 -14
  110. package/lib/components/Card.js.map +1 -1
  111. package/lib/components/Card.module.scss.js +8 -0
  112. package/lib/components/Card.module.scss.js.map +1 -0
  113. package/lib/components/Carousel.js +60 -27
  114. package/lib/components/Carousel.js.map +1 -1
  115. package/lib/components/Carousel.module.scss.js +8 -0
  116. package/lib/components/Carousel.module.scss.js.map +1 -0
  117. package/lib/components/CenteredLoader.js +18 -6
  118. package/lib/components/CenteredLoader.js.map +1 -1
  119. package/lib/components/CenteredLoader.module.scss.js +8 -0
  120. package/lib/components/CenteredLoader.module.scss.js.map +1 -0
  121. package/lib/components/Checkbox.js +87 -26
  122. package/lib/components/Checkbox.js.map +1 -1
  123. package/lib/components/Checkbox.module.scss.js +8 -0
  124. package/lib/components/Checkbox.module.scss.js.map +1 -0
  125. package/lib/components/CheckboxFormik.js +37 -16
  126. package/lib/components/CheckboxFormik.js.map +1 -1
  127. package/lib/components/CircularProgressBar.js +78 -27
  128. package/lib/components/CircularProgressBar.js.map +1 -1
  129. package/lib/components/CircularProgressBar.module.scss.js +8 -0
  130. package/lib/components/CircularProgressBar.module.scss.js.map +1 -0
  131. package/lib/components/ContextMenu.js +86 -60
  132. package/lib/components/ContextMenu.js.map +1 -1
  133. package/lib/components/ContextMenu.module.scss.js +8 -0
  134. package/lib/components/ContextMenu.module.scss.js.map +1 -0
  135. package/lib/components/Dialog.js +50 -30
  136. package/lib/components/Dialog.js.map +1 -1
  137. package/lib/components/Dialog.module.scss.js +8 -0
  138. package/lib/components/Dialog.module.scss.js.map +1 -0
  139. package/lib/components/EmptyState.js +66 -20
  140. package/lib/components/EmptyState.js.map +1 -1
  141. package/lib/components/EmptyState.module.scss.js +8 -0
  142. package/lib/components/EmptyState.module.scss.js.map +1 -0
  143. package/lib/components/Error.js +28 -7
  144. package/lib/components/Error.js.map +1 -1
  145. package/lib/components/Error.module.scss.js +8 -0
  146. package/lib/components/Error.module.scss.js.map +1 -0
  147. package/lib/components/FieldHeader.js +43 -14
  148. package/lib/components/FieldHeader.js.map +1 -1
  149. package/lib/components/FieldHeader.module.scss.js +8 -0
  150. package/lib/components/FieldHeader.module.scss.js.map +1 -0
  151. package/lib/components/Help.js +42 -13
  152. package/lib/components/Help.js.map +1 -1
  153. package/lib/components/Help.module.scss.js +8 -0
  154. package/lib/components/Help.module.scss.js.map +1 -0
  155. package/lib/components/Icon.js +48 -25
  156. package/lib/components/Icon.js.map +1 -1
  157. package/lib/components/Icon.module.scss.js +8 -0
  158. package/lib/components/Icon.module.scss.js.map +1 -0
  159. package/lib/components/IconButton.js +81 -23
  160. package/lib/components/IconButton.js.map +1 -1
  161. package/lib/components/IconButton.module.scss.js +8 -0
  162. package/lib/components/IconButton.module.scss.js.map +1 -0
  163. package/lib/components/InteractiveList.js +115 -41
  164. package/lib/components/InteractiveList.js.map +1 -1
  165. package/lib/components/InteractiveList.module.scss.js +8 -0
  166. package/lib/components/InteractiveList.module.scss.js.map +1 -0
  167. package/lib/components/InteractiveListFormik.js +110 -81
  168. package/lib/components/InteractiveListFormik.js.map +1 -1
  169. package/lib/components/Label.js +20 -5
  170. package/lib/components/Label.js.map +1 -1
  171. package/lib/components/Label.module.scss.js +8 -0
  172. package/lib/components/Label.module.scss.js.map +1 -0
  173. package/lib/components/Link.js +59 -31
  174. package/lib/components/Link.js.map +1 -1
  175. package/lib/components/Link.module.scss.js +8 -0
  176. package/lib/components/Link.module.scss.js.map +1 -0
  177. package/lib/components/Loader.js +82 -23
  178. package/lib/components/Loader.js.map +1 -1
  179. package/lib/components/Loader.module.scss.js +8 -0
  180. package/lib/components/Loader.module.scss.js.map +1 -0
  181. package/lib/components/Modal.js +93 -26
  182. package/lib/components/Modal.js.map +1 -1
  183. package/lib/components/Modal.module.scss.js +8 -0
  184. package/lib/components/Modal.module.scss.js.map +1 -0
  185. package/lib/components/Notification.js +75 -37
  186. package/lib/components/Notification.js.map +1 -1
  187. package/lib/components/Notification.module.scss.js +8 -0
  188. package/lib/components/Notification.module.scss.js.map +1 -0
  189. package/lib/components/NumberBadge.js +18 -7
  190. package/lib/components/NumberBadge.js.map +1 -1
  191. package/lib/components/NumberBadge.module.scss.js +8 -0
  192. package/lib/components/NumberBadge.module.scss.js.map +1 -0
  193. package/lib/components/NumberField.js +181 -140
  194. package/lib/components/NumberField.js.map +1 -1
  195. package/lib/components/NumberField.module.scss.js +8 -0
  196. package/lib/components/NumberField.module.scss.js.map +1 -0
  197. package/lib/components/NumberFieldFormik.js +69 -49
  198. package/lib/components/NumberFieldFormik.js.map +1 -1
  199. package/lib/components/Overlay.js +92 -29
  200. package/lib/components/Overlay.js.map +1 -1
  201. package/lib/components/Overlay.module.scss.js +8 -0
  202. package/lib/components/Overlay.module.scss.js.map +1 -0
  203. package/lib/components/Pagination.js +198 -91
  204. package/lib/components/Pagination.js.map +1 -1
  205. package/lib/components/Pagination.module.scss.js +8 -0
  206. package/lib/components/Pagination.module.scss.js.map +1 -0
  207. package/lib/components/PasswordField.js +61 -25
  208. package/lib/components/PasswordField.js.map +1 -1
  209. package/lib/components/PasswordField.module.scss.js +8 -0
  210. package/lib/components/PasswordField.module.scss.js.map +1 -0
  211. package/lib/components/PasswordFieldFormik.js +37 -16
  212. package/lib/components/PasswordFieldFormik.js.map +1 -1
  213. package/lib/components/Popover.js +85 -67
  214. package/lib/components/Popover.js.map +1 -1
  215. package/lib/components/Popover.module.scss.js +8 -0
  216. package/lib/components/Popover.module.scss.js.map +1 -0
  217. package/lib/components/Radio.js +67 -26
  218. package/lib/components/Radio.js.map +1 -1
  219. package/lib/components/Radio.module.scss.js +8 -0
  220. package/lib/components/Radio.module.scss.js.map +1 -0
  221. package/lib/components/RadioFormik.js +26 -11
  222. package/lib/components/RadioFormik.js.map +1 -1
  223. package/lib/components/RadioGroup.js +51 -18
  224. package/lib/components/RadioGroup.js.map +1 -1
  225. package/lib/components/RadioGroup.module.scss.js +8 -0
  226. package/lib/components/RadioGroup.module.scss.js.map +1 -0
  227. package/lib/components/RadioGroupContext.js +10 -3
  228. package/lib/components/RadioGroupContext.js.map +1 -1
  229. package/lib/components/RadioGroupFormik.js +34 -16
  230. package/lib/components/RadioGroupFormik.js.map +1 -1
  231. package/lib/components/SegmentedControl.js +43 -9
  232. package/lib/components/SegmentedControl.js.map +1 -1
  233. package/lib/components/SegmentedControl.module.scss.js +8 -0
  234. package/lib/components/SegmentedControl.module.scss.js.map +1 -0
  235. package/lib/components/SegmentedControlFormik.js +30 -12
  236. package/lib/components/SegmentedControlFormik.js.map +1 -1
  237. package/lib/components/Select/CheckableSelectField.js +178 -74
  238. package/lib/components/Select/CheckableSelectField.js.map +1 -1
  239. package/lib/components/Select/CheckableSelectField.module.scss.js +8 -0
  240. package/lib/components/Select/CheckableSelectField.module.scss.js.map +1 -0
  241. package/lib/components/Select/CheckableSelectFieldFormik.js +41 -18
  242. package/lib/components/Select/CheckableSelectFieldFormik.js.map +1 -1
  243. package/lib/components/Select/Common.js +87 -44
  244. package/lib/components/Select/Common.js.map +1 -1
  245. package/lib/components/Select/Common.module.scss.js +8 -0
  246. package/lib/components/Select/Common.module.scss.js.map +1 -0
  247. package/lib/components/Select/MultiSelectField.js +187 -107
  248. package/lib/components/Select/MultiSelectField.js.map +1 -1
  249. package/lib/components/Select/MultiSelectField.module.scss.js +8 -0
  250. package/lib/components/Select/MultiSelectField.module.scss.js.map +1 -0
  251. package/lib/components/Select/MultiSelectFieldFormik.js +41 -18
  252. package/lib/components/Select/MultiSelectFieldFormik.js.map +1 -1
  253. package/lib/components/Select/SelectField.js +169 -100
  254. package/lib/components/Select/SelectField.js.map +1 -1
  255. package/lib/components/Select/SelectField.module.scss.js +8 -0
  256. package/lib/components/Select/SelectField.module.scss.js.map +1 -0
  257. package/lib/components/Select/SelectFieldFormik.js +38 -18
  258. package/lib/components/Select/SelectFieldFormik.js.map +1 -1
  259. package/lib/components/Select/helpers.js +30 -25
  260. package/lib/components/Select/helpers.js.map +1 -1
  261. package/lib/components/Select/index.js +21 -8
  262. package/lib/components/Select/index.js.map +1 -1
  263. package/lib/components/SimpleTable.js +36 -13
  264. package/lib/components/SimpleTable.js.map +1 -1
  265. package/lib/components/SimpleTable.module.scss.js +8 -0
  266. package/lib/components/SimpleTable.module.scss.js.map +1 -0
  267. package/lib/components/Slider.js +294 -173
  268. package/lib/components/Slider.js.map +1 -1
  269. package/lib/components/Slider.module.scss.js +8 -0
  270. package/lib/components/Slider.module.scss.js.map +1 -0
  271. package/lib/components/SliderFormik.js +30 -13
  272. package/lib/components/SliderFormik.js.map +1 -1
  273. package/lib/components/Table/Cell.js +111 -58
  274. package/lib/components/Table/Cell.js.map +1 -1
  275. package/lib/components/Table/Cell.module.scss.js +8 -0
  276. package/lib/components/Table/Cell.module.scss.js.map +1 -0
  277. package/lib/components/Table/CellWrapper.js +44 -27
  278. package/lib/components/Table/CellWrapper.js.map +1 -1
  279. package/lib/components/Table/EnhancedRenderers.js +31 -12
  280. package/lib/components/Table/EnhancedRenderers.js.map +1 -1
  281. package/lib/components/Table/Header.js +141 -92
  282. package/lib/components/Table/Header.js.map +1 -1
  283. package/lib/components/Table/Header.module.scss.js +8 -0
  284. package/lib/components/Table/Header.module.scss.js.map +1 -0
  285. package/lib/components/Table/Row.js +77 -22
  286. package/lib/components/Table/Row.js.map +1 -1
  287. package/lib/components/Table/Row.module.scss.js +8 -0
  288. package/lib/components/Table/Row.module.scss.js.map +1 -0
  289. package/lib/components/Table/Table.js +456 -245
  290. package/lib/components/Table/Table.js.map +1 -1
  291. package/lib/components/Table/Table.module.scss.js +8 -0
  292. package/lib/components/Table/Table.module.scss.js.map +1 -0
  293. package/lib/components/Table/TableContent.js +129 -57
  294. package/lib/components/Table/TableContent.js.map +1 -1
  295. package/lib/components/Table/TableContent.module.scss.js +8 -0
  296. package/lib/components/Table/TableContent.module.scss.js.map +1 -0
  297. package/lib/components/Table/constants.js +8 -3
  298. package/lib/components/Table/constants.js.map +1 -1
  299. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js +39 -12
  300. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -1
  301. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss.js +8 -0
  302. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss.js.map +1 -0
  303. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js +23 -16
  304. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -1
  305. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss.js +8 -0
  306. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss.js.map +1 -0
  307. package/lib/components/Table/features/columnsSelection/ContextMenu/index.js +8 -2
  308. package/lib/components/Table/features/columnsSelection/ContextMenu/index.js.map +1 -1
  309. package/lib/components/Table/features/columnsSelection/columnsSelection.js +76 -68
  310. package/lib/components/Table/features/columnsSelection/columnsSelection.js.map +1 -1
  311. package/lib/components/Table/features/columnsSelection/helpers.js +28 -22
  312. package/lib/components/Table/features/columnsSelection/helpers.js.map +1 -1
  313. package/lib/components/Table/features/columnsSelection/index.js +16 -5
  314. package/lib/components/Table/features/columnsSelection/index.js.map +1 -1
  315. package/lib/components/Table/helpers.js +17 -9
  316. package/lib/components/Table/helpers.js.map +1 -1
  317. package/lib/components/Table/tableTypes.js +3 -2
  318. package/lib/components/Table/tableTypes.js.map +1 -1
  319. package/lib/components/Table/useTrackTableState.js +43 -29
  320. package/lib/components/Table/useTrackTableState.js.map +1 -1
  321. package/lib/components/Table/utils.js +176 -111
  322. package/lib/components/Table/utils.js.map +1 -1
  323. package/lib/components/Tabs/Tab.js +61 -27
  324. package/lib/components/Tabs/Tab.js.map +1 -1
  325. package/lib/components/Tabs/Tab.module.scss.js +8 -0
  326. package/lib/components/Tabs/Tab.module.scss.js.map +1 -0
  327. package/lib/components/Tabs/TabContext.js +51 -26
  328. package/lib/components/Tabs/TabContext.js.map +1 -1
  329. package/lib/components/Tabs/TabList.js +62 -49
  330. package/lib/components/Tabs/TabList.js.map +1 -1
  331. package/lib/components/Tabs/TabList.module.scss.js +8 -0
  332. package/lib/components/Tabs/TabList.module.scss.js.map +1 -0
  333. package/lib/components/Tabs/TabPanel.js +29 -9
  334. package/lib/components/Tabs/TabPanel.js.map +1 -1
  335. package/lib/components/Tabs/TabPanel.module.scss.js +8 -0
  336. package/lib/components/Tabs/TabPanel.module.scss.js.map +1 -0
  337. package/lib/components/Tabs/index.js +20 -5
  338. package/lib/components/Tabs/index.js.map +1 -1
  339. package/lib/components/Terminal.js +179 -108
  340. package/lib/components/Terminal.js.map +1 -1
  341. package/lib/components/Terminal.module.scss.js +8 -0
  342. package/lib/components/Terminal.module.scss.js.map +1 -0
  343. package/lib/components/TextArea.js +79 -24
  344. package/lib/components/TextArea.js.map +1 -1
  345. package/lib/components/TextArea.module.scss.js +8 -0
  346. package/lib/components/TextArea.module.scss.js.map +1 -0
  347. package/lib/components/TextAreaFormik.js +26 -10
  348. package/lib/components/TextAreaFormik.js.map +1 -1
  349. package/lib/components/TextField.js +154 -48
  350. package/lib/components/TextField.js.map +1 -1
  351. package/lib/components/TextField.module.scss.js +8 -0
  352. package/lib/components/TextField.module.scss.js.map +1 -0
  353. package/lib/components/TextFieldFormik.js +46 -22
  354. package/lib/components/TextFieldFormik.js.map +1 -1
  355. package/lib/components/TimeField.js +62 -14
  356. package/lib/components/TimeField.js.map +1 -1
  357. package/lib/components/TimeField.module.scss.js +8 -0
  358. package/lib/components/TimeField.module.scss.js.map +1 -0
  359. package/lib/components/TimeFieldFormik.js +26 -10
  360. package/lib/components/TimeFieldFormik.js.map +1 -1
  361. package/lib/components/Toast.js +79 -44
  362. package/lib/components/Toast.js.map +1 -1
  363. package/lib/components/Toast.module.scss.js +8 -0
  364. package/lib/components/Toast.module.scss.js.map +1 -0
  365. package/lib/components/Toggle.js +71 -21
  366. package/lib/components/Toggle.js.map +1 -1
  367. package/lib/components/Toggle.module.scss.js +8 -0
  368. package/lib/components/Toggle.module.scss.js.map +1 -0
  369. package/lib/components/ToggleFormik.js +27 -11
  370. package/lib/components/ToggleFormik.js.map +1 -1
  371. package/lib/components/Tooltip.js +79 -39
  372. package/lib/components/Tooltip.js.map +1 -1
  373. package/lib/components/Tooltip.module.scss.js +8 -0
  374. package/lib/components/Tooltip.module.scss.js.map +1 -0
  375. package/lib/components/TruncatedText.js +49 -22
  376. package/lib/components/TruncatedText.js.map +1 -1
  377. package/lib/components/TruncatedText.module.scss.js +8 -0
  378. package/lib/components/TruncatedText.module.scss.js.map +1 -0
  379. package/lib/helpers/array.js +26 -17
  380. package/lib/helpers/array.js.map +1 -1
  381. package/lib/helpers/escapeHtml.js +10 -6
  382. package/lib/helpers/escapeHtml.js.map +1 -1
  383. package/lib/helpers/forms.js +20 -14
  384. package/lib/helpers/forms.js.map +1 -1
  385. package/lib/helpers/math.js +10 -6
  386. package/lib/helpers/math.js.map +1 -1
  387. package/lib/helpers/types.js +6 -2
  388. package/lib/helpers/types.js.map +1 -1
  389. package/lib/hooks/index.js +17 -7
  390. package/lib/hooks/index.js.map +1 -1
  391. package/lib/hooks/useCloseOnResize.js +17 -12
  392. package/lib/hooks/useCloseOnResize.js.map +1 -1
  393. package/lib/hooks/useDeepCompareMemo.js +12 -7
  394. package/lib/hooks/useDeepCompareMemo.js.map +1 -1
  395. package/lib/hooks/useDeepEqual.js +14 -9
  396. package/lib/hooks/useDeepEqual.js.map +1 -1
  397. package/lib/hooks/useDimensions.js +26 -15
  398. package/lib/hooks/useDimensions.js.map +1 -1
  399. package/lib/hooks/useIsMounted.js +16 -11
  400. package/lib/hooks/useIsMounted.js.map +1 -1
  401. package/lib/hooks/useOnClickOutside.js +41 -32
  402. package/lib/hooks/useOnClickOutside.js.map +1 -1
  403. package/lib/hooks/useOpenCloseState.js +18 -13
  404. package/lib/hooks/useOpenCloseState.js.map +1 -1
  405. package/lib/hooks/usePagination.js +64 -60
  406. package/lib/hooks/usePagination.js.map +1 -1
  407. package/lib/hooks/usePersistedState.js +35 -33
  408. package/lib/hooks/usePersistedState.js.map +1 -1
  409. package/lib/hooks/usePrevious.js +13 -8
  410. package/lib/hooks/usePrevious.js.map +1 -1
  411. package/lib/hooks/useRefValue.js +13 -8
  412. package/lib/hooks/useRefValue.js.map +1 -1
  413. package/lib/icons/Cluster.js +44 -7
  414. package/lib/icons/Cluster.js.map +1 -1
  415. package/lib/icons/Compare.js +46 -7
  416. package/lib/icons/Compare.js.map +1 -1
  417. package/lib/icons/Compute.js +43 -7
  418. package/lib/icons/Compute.js.map +1 -1
  419. package/lib/icons/Folder.js +25 -4
  420. package/lib/icons/Folder.js.map +1 -1
  421. package/lib/icons/PlusCircle.js +37 -6
  422. package/lib/icons/PlusCircle.js.map +1 -1
  423. package/lib/icons/Streaming.js +45 -8
  424. package/lib/icons/Streaming.js.map +1 -1
  425. package/lib/index.d.ts +3 -2
  426. package/lib/index.js +185 -75
  427. package/lib/index.js.map +1 -1
  428. package/lib/services/logger.js +85 -75
  429. package/lib/services/logger.js.map +1 -1
  430. package/lib/services/time.js +18 -14
  431. package/lib/services/time.js.map +1 -1
  432. package/lib/styles/constants/export.module.scss.js +8 -0
  433. package/lib/styles/constants/export.module.scss.js.map +1 -0
  434. package/lib/styles.css +1 -0
  435. package/lib/test-helpers/render.js +32 -20
  436. package/lib/test-helpers/render.js.map +1 -1
  437. package/lib/test-helpers/time.js +9 -2
  438. package/lib/test-helpers/time.js.map +1 -1
  439. package/lib/test-helpers/utils.js +13 -9
  440. package/lib/test-helpers/utils.js.map +1 -1
  441. package/lib/types.js +3 -2
  442. package/lib/types.js.map +1 -1
  443. package/lib/utils/formik.js +12 -7
  444. package/lib/utils/formik.js.map +1 -1
  445. package/lib/utils/keyboard.js +8 -3
  446. package/lib/utils/keyboard.js.map +1 -1
  447. package/lib/utils/portal.js +19 -14
  448. package/lib/utils/portal.js.map +1 -1
  449. package/lib/utils/ssr.js +6 -2
  450. package/lib/utils/ssr.js.map +1 -1
  451. package/lib/utils/types.js +3 -2
  452. package/lib/utils/types.js.map +1 -1
  453. package/package.json +11 -3
  454. package/lib/components/Alert.module.scss +0 -141
  455. package/lib/components/AppHeader/AppHeader.module.scss +0 -29
  456. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss +0 -29
  457. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +0 -20
  458. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +0 -13
  459. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +0 -101
  460. package/lib/components/AppSidebar/AppSidebar.module.scss +0 -66
  461. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +0 -16
  462. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +0 -13
  463. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss +0 -92
  464. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss +0 -24
  465. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +0 -58
  466. package/lib/components/AutocompleteField.module.scss +0 -164
  467. package/lib/components/Badge.module.scss +0 -55
  468. package/lib/components/Button.module.scss +0 -329
  469. package/lib/components/Calendar/Calendar.module.scss +0 -185
  470. package/lib/components/Calendar/CalendarRange.module.scss +0 -21
  471. package/lib/components/Calendar/components/CalendarTime.module.scss +0 -72
  472. package/lib/components/Card.module.scss +0 -92
  473. package/lib/components/Carousel.module.scss +0 -43
  474. package/lib/components/CenteredLoader.module.scss +0 -11
  475. package/lib/components/Checkbox.module.scss +0 -106
  476. package/lib/components/CircularProgressBar.module.scss +0 -37
  477. package/lib/components/ContextMenu.module.scss +0 -37
  478. package/lib/components/Dialog.module.scss +0 -62
  479. package/lib/components/EmptyState.module.scss +0 -87
  480. package/lib/components/Error.module.scss +0 -12
  481. package/lib/components/FieldHeader.module.scss +0 -20
  482. package/lib/components/Help.module.scss +0 -9
  483. package/lib/components/Icon.module.scss +0 -33
  484. package/lib/components/IconButton.module.scss +0 -59
  485. package/lib/components/InteractiveList.module.scss +0 -72
  486. package/lib/components/Label.module.scss +0 -12
  487. package/lib/components/Link.module.scss +0 -64
  488. package/lib/components/Loader.module.scss +0 -74
  489. package/lib/components/Modal.module.scss +0 -109
  490. package/lib/components/Notification.module.scss +0 -97
  491. package/lib/components/NumberBadge.module.scss +0 -13
  492. package/lib/components/NumberField.module.scss +0 -76
  493. package/lib/components/Overlay.module.scss +0 -108
  494. package/lib/components/Pagination.module.scss +0 -117
  495. package/lib/components/PasswordField.module.scss +0 -26
  496. package/lib/components/Popover.module.scss +0 -12
  497. package/lib/components/Radio.module.scss +0 -112
  498. package/lib/components/RadioGroup.module.scss +0 -21
  499. package/lib/components/SegmentedControl.module.scss +0 -81
  500. package/lib/components/Select/CheckableSelectField.module.scss +0 -100
  501. package/lib/components/Select/Common.module.scss +0 -69
  502. package/lib/components/Select/MultiSelectField.module.scss +0 -72
  503. package/lib/components/Select/SelectField.module.scss +0 -194
  504. package/lib/components/SimpleTable.module.scss +0 -28
  505. package/lib/components/Slider.module.scss +0 -277
  506. package/lib/components/Table/Cell.module.scss +0 -61
  507. package/lib/components/Table/Header.module.scss +0 -128
  508. package/lib/components/Table/Row.module.scss +0 -59
  509. package/lib/components/Table/Table.module.scss +0 -31
  510. package/lib/components/Table/TableContent.module.scss +0 -21
  511. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss +0 -12
  512. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss +0 -6
  513. package/lib/components/Tabs/Tab.module.scss +0 -58
  514. package/lib/components/Tabs/TabList.module.scss +0 -3
  515. package/lib/components/Tabs/TabPanel.module.scss +0 -7
  516. package/lib/components/Terminal.module.scss +0 -109
  517. package/lib/components/TextArea.module.scss +0 -144
  518. package/lib/components/TextField.module.scss +0 -209
  519. package/lib/components/TimeField.module.scss +0 -4
  520. package/lib/components/Toast.module.scss +0 -53
  521. package/lib/components/Toggle.module.scss +0 -175
  522. package/lib/components/Tooltip.module.scss +0 -44
  523. package/lib/components/TruncatedText.module.scss +0 -9
@@ -1,8 +1,11 @@
1
- import React, { useRef, cloneElement, useState } from 'react';
2
- import { FloatingArrow, offset, useFloating, arrow, useHover, useInteractions, autoUpdate, autoPlacement as autoPlacementMiddleware, FloatingPortal, safePolygon, } from '@floating-ui/react';
3
- import cn from 'classnames';
4
- import styles from './Tooltip.module.scss';
5
- import { canUseDOM } from '../utils/ssr';
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var react = require('@floating-ui/react');
5
+ var cn = require('classnames');
6
+ var Tooltip_module = require('./Tooltip.module.scss.js');
7
+ var utils_ssr = require('../utils/ssr.js');
8
+
6
9
  /**
7
10
  * ### Purpose
8
11
  * Useful when you need to display additional information/actionable content.
@@ -19,38 +22,75 @@ import { canUseDOM } from '../utils/ssr';
19
22
  * ### Usage
20
23
  * Wrap the target element with Tooltip component and use the "content" property to define what should be displayed inside the tooltip.
21
24
  */
22
- export const Tooltip = ({ id, content, offset: offsetY = 10, padding = 10, placement = 'top', visible: visibilityOverride, children, wordBreak, zIndex = 20, arrow: showArrow = true, color, autoPlacement = false, className, }) => {
23
- const [isOpen, setIsOpen] = useState(false);
24
- const arrowRef = useRef(null);
25
- const { refs, floatingStyles, context } = useFloating({
26
- strategy: 'absolute',
27
- placement,
28
- whileElementsMounted: autoUpdate,
29
- open: isOpen,
30
- onOpenChange: setIsOpen,
31
- middleware: [
32
- ...(autoPlacement ? [autoPlacementMiddleware()] : []),
33
- offset(offsetY),
34
- ...(showArrow
35
- ? [
36
- arrow({
37
- element: arrowRef,
38
- padding,
39
- }),
40
- ]
41
- : []),
42
- ],
43
- });
44
- const hover = useHover(context, { handleClose: safePolygon() });
45
- const { getReferenceProps, getFloatingProps } = useInteractions([hover]);
46
- const isTooltipVisible = typeof visibilityOverride === 'boolean' ? visibilityOverride : isOpen;
47
- return (React.createElement(React.Fragment, null,
48
- cloneElement(children(refs.setReference), { ...getReferenceProps() }),
49
- content !== undefined && isTooltipVisible && (React.createElement(React.Fragment, null,
50
- React.createElement("span", { ...(id && { id }), className: cn(styles.tooltipSr, className), role: "tooltip", "data-test": "tooltip-sr" }, content),
51
- React.createElement(FloatingPortal, { root: canUseDOM ? document.body : null },
52
- React.createElement("span", { ref: refs.setFloating, className: cn(styles.overlay, color && [styles[color]], className), style: { ...floatingStyles, ...{ zIndex: context ? zIndex + 1 : zIndex }, wordBreak }, "data-test": "tooltip-overlay", ...getFloatingProps() },
53
- content,
54
- showArrow && React.createElement(FloatingArrow, { ref: arrowRef, context: context, className: styles.arrow })))))));
25
+ const Tooltip = ({
26
+ id,
27
+ content,
28
+ offset: offsetY = 10,
29
+ padding = 10,
30
+ placement = 'top',
31
+ visible: visibilityOverride,
32
+ children,
33
+ wordBreak,
34
+ zIndex = 20,
35
+ arrow: showArrow = true,
36
+ color,
37
+ autoPlacement = false,
38
+ className
39
+ }) => {
40
+ const [isOpen, setIsOpen] = React.useState(false);
41
+ const arrowRef = React.useRef(null);
42
+ const {
43
+ refs,
44
+ floatingStyles,
45
+ context
46
+ } = react.useFloating({
47
+ strategy: 'absolute',
48
+ placement,
49
+ whileElementsMounted: react.autoUpdate,
50
+ open: isOpen,
51
+ onOpenChange: setIsOpen,
52
+ middleware: [...(autoPlacement ? [react.autoPlacement()] : []), react.offset(offsetY), ...(showArrow ? [react.arrow({
53
+ element: arrowRef,
54
+ padding
55
+ })] : [])]
56
+ });
57
+ const hover = react.useHover(context, {
58
+ handleClose: react.safePolygon()
59
+ });
60
+ const {
61
+ getReferenceProps,
62
+ getFloatingProps
63
+ } = react.useInteractions([hover]);
64
+ const isTooltipVisible = typeof visibilityOverride === 'boolean' ? visibilityOverride : isOpen;
65
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(children(refs.setReference), {
66
+ ...getReferenceProps()
67
+ }), content !== undefined && isTooltipVisible && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
68
+ ...(id && {
69
+ id
70
+ }),
71
+ className: cn(Tooltip_module.default.tooltipSr, className),
72
+ role: "tooltip",
73
+ "data-test": "tooltip-sr"
74
+ }, content), /*#__PURE__*/React.createElement(react.FloatingPortal, {
75
+ root: utils_ssr.canUseDOM ? document.body : null
76
+ }, /*#__PURE__*/React.createElement("span", {
77
+ ref: refs.setFloating,
78
+ className: cn(Tooltip_module.default.overlay, color && [Tooltip_module.default[color]], className),
79
+ style: {
80
+ ...floatingStyles,
81
+ ...{
82
+ zIndex: context ? zIndex + 1 : zIndex
83
+ },
84
+ wordBreak
85
+ },
86
+ "data-test": "tooltip-overlay",
87
+ ...getFloatingProps()
88
+ }, content, showArrow && /*#__PURE__*/React.createElement(react.FloatingArrow, {
89
+ ref: arrowRef,
90
+ context: context,
91
+ className: Tooltip_module.default.arrow
92
+ }))))));
55
93
  };
56
- //# sourceMappingURL=Tooltip.js.map
94
+
95
+ exports.Tooltip = Tooltip;
96
+ //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,MAAM,EAAiB,YAAY,EAAgB,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzG,OAAO,EACL,aAAa,EAEb,MAAM,EACN,WAAW,EACX,KAAK,EACL,QAAQ,EACR,eAAe,EACf,UAAU,EACV,aAAa,IAAI,uBAAuB,EACxC,cAAc,EAEd,WAAW,GACZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,MAAM,MAAM,uBAAuB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAkBxC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MA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CAAA;IAE9F,OAAO,CACL;QACG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,GAAG,iBAAiB,EAAE,EAAE,CAAC;QACrE,OAAO,KAAK,SAAS,IAAI,gBAAgB,IAAI,CAC5C;YACE,iCAAU,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,IAAI,EAAC,SAAS,eAAW,YAAY,IACxG,OAAO,CACH;YACP,oBAAC,cAAc,IAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;gBACpD,8BACE,GAAG,EAAE,IAAI,CAAC,WAAW,EACrB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,EAClE,KAAK,EAAE,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,eAC3E,iBAAiB,KACvB,gBAAgB,EAAE;oBAErB,OAAO;oBACP,SAAS,IAAI,oBAAC,aAAa,IAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,CACpF,CACQ,CAChB,CACJ,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../src/components/Tooltip.tsx"],"sourcesContent":[null],"names":["Tooltip","id","content","offset","offsetY","padding","placement","visible","visibilityOverride","children","wordBreak","zIndex","arrow","showArrow","color","autoPlacement","className","isOpen","setIsOpen","useState","arrowRef","useRef","refs","floatingStyles","context","useFloating","strategy","whileElementsMounted","autoUpdate","open","onOpenChange","middleware","autoPlacementMiddleware","element","hover","useHover","handleClose","safePolygon","getReferenceProps","getFloatingProps","useInteractions","isTooltipVisible","React","createElement","Fragment","cloneElement","setReference","undefined","cn","styles","tooltipSr","role","FloatingPortal","root","canUseDOM","document","body","ref","setFloating","overlay","style","FloatingArrow"],"mappings":";;;;;;;;AAoCA;;;;;;;;;;;;;;;AAeG;AACI,MAAMA,OAAO,GAAqBA,CAAC;EACxCC,EAAE;EACFC,OAAO;EACPC,MAAM,EAAEC,OAAO,GAAG,EAAE;AACpBC,EAAAA,OAAO,GAAG,EAAE;AACZC,EAAAA,SAAS,GAAG,KAAK;AACjBC,EAAAA,OAAO,EAAEC,kBAAkB;EAC3BC,QAAQ;EACRC,SAAS;AACTC,EAAAA,MAAM,GAAG,EAAE;EACXC,KAAK,EAAEC,SAAS,GAAG,IAAI;EACvBC,KAAK;AACLC,EAAAA,aAAa,GAAG,KAAK;AACrBC,EAAAA;AAAS,CACV,KAAI;EACH,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC;AAC3C,EAAA,MAAMC,QAAQ,GAAGC,YAAM,CAAC,IAAI,CAAC;EAE7B,MAAM;IAAEC,IAAI;IAAEC,cAAc;AAAEC,IAAAA;GAAS,GAAGC,iBAAW,CAAC;AACpDC,IAAAA,QAAQ,EAAE,UAAU;IACpBpB,SAAS;AACTqB,IAAAA,oBAAoB,EAAEC,gBAAU;AAChCC,IAAAA,IAAI,EAAEZ,MAAM;AACZa,IAAAA,YAAY,EAAEZ,SAAS;IACvBa,UAAU,EAAE,CACV,IAAIhB,aAAa,GAAG,CAACiB,mBAAuB,EAAE,CAAC,GAAG,EAAE,CAAC,EACrD7B,YAAM,CAACC,OAAO,CAAC,EACf,IAAIS,SAAS,GACT,CACED,WAAK,CAAC;AACJqB,MAAAA,OAAO,EAAEb,QAAQ;AACjBf,MAAAA;KACD,CAAC,CACH,GACD,EAAE,CAAC;AAEV,GAAA,CAAC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,MAAA,GAAGrC,cAAc;MAAE,GAAG;AAAEZ,QAAAA,MAAM,EAAEa,OAAO,GAAGb,MAAM,GAAG,CAAC,GAAGA;OAAQ;AAAED,MAAAA;KAAW;AAAA,IAAA,WAAA,EAC3E,iBAAiB;AAAA,IAAA,GACvB6B,gBAAgB;GAAE,EAErBrC,OAAO,EACPW,SAAS,iBAAI6B,KAAA,CAAAC,aAAA,CAACkB,mBAAa,EAAA;AAACJ,IAAAA,GAAG,EAAErC,QAAQ;AAAEI,IAAAA,OAAO,EAAEA,OAAO;IAAER,SAAS,EAAEiC,sBAAM,CAACrC;AAAK,GAAA,CAAI,CACpF,CACQ,CAChB,CACJ,CACA;AAEP;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"tooltipSr":"Tooltip-module__tooltipSr___HCfbh","overlay":"Tooltip-module__overlay___0KNmO","secondary":"Tooltip-module__secondary___XAbdP","arrow":"Tooltip-module__arrow___vtYEv","dark":"Tooltip-module__dark___HNapA"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=Tooltip.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,23 +1,50 @@
1
- import React, { useRef, useState } from 'react';
2
- import mergeRefs from 'react-merge-refs';
3
- import cn from 'classnames';
4
- import useIsomorphicLayoutEffect from 'react-use/lib/useIsomorphicLayoutEffect';
5
- import { useUID } from 'react-uid';
6
- import { Tooltip } from './Tooltip';
7
- import styles from './TruncatedText.module.scss';
8
- export const TruncatedText = ({ text, forceUpdateToken, className, tooltipVisible, tooltipPlacement = 'top', multiline, tooltipClassName, 'data-test': dataTest, }) => {
9
- const textRef = useRef(null);
10
- const [tooltip, setTooltip] = useState();
11
- const idTooltip = useUID();
12
- useIsomorphicLayoutEffect(() => {
13
- const span = textRef.current;
14
- if (span === null) {
15
- return;
16
- }
17
- // https://codepen.io/triple-j/pen/wadKQB
18
- setTooltip(span.offsetWidth < span.scrollWidth || span.offsetHeight < span.scrollHeight ? text : undefined);
19
- }, [text, forceUpdateToken]);
20
- return (React.createElement(Tooltip, { id: idTooltip, content: tooltip, visible: tooltipVisible, className: tooltipClassName, placement: tooltipPlacement }, (ref) => (React.createElement("div", { ref: mergeRefs([textRef, ref]), className: cn(styles.truncatedText, { [styles.multiline]: multiline }, className) },
21
- React.createElement("span", { "data-test": dataTest, "aria-labelledby": tooltip ? idTooltip : undefined }, text)))));
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var mergeRefs = require('react-merge-refs');
5
+ var cn = require('classnames');
6
+ var useIsomorphicLayoutEffect = require('react-use/lib/useIsomorphicLayoutEffect');
7
+ var reactUid = require('react-uid');
8
+ var components_Tooltip = require('./Tooltip.js');
9
+ var TruncatedText_module = require('./TruncatedText.module.scss.js');
10
+
11
+ const TruncatedText = ({
12
+ text,
13
+ forceUpdateToken,
14
+ className,
15
+ tooltipVisible,
16
+ tooltipPlacement = 'top',
17
+ multiline,
18
+ tooltipClassName,
19
+ 'data-test': dataTest
20
+ }) => {
21
+ const textRef = React.useRef(null);
22
+ const [tooltip, setTooltip] = React.useState();
23
+ const idTooltip = reactUid.useUID();
24
+ useIsomorphicLayoutEffect(() => {
25
+ const span = textRef.current;
26
+ if (span === null) {
27
+ return;
28
+ }
29
+ // https://codepen.io/triple-j/pen/wadKQB
30
+ setTooltip(span.offsetWidth < span.scrollWidth || span.offsetHeight < span.scrollHeight ? text : undefined);
31
+ }, [text, forceUpdateToken]);
32
+ return /*#__PURE__*/React.createElement(components_Tooltip.Tooltip, {
33
+ id: idTooltip,
34
+ content: tooltip,
35
+ visible: tooltipVisible,
36
+ className: tooltipClassName,
37
+ placement: tooltipPlacement
38
+ }, ref => (/*#__PURE__*/React.createElement("div", {
39
+ ref: mergeRefs([textRef, ref]),
40
+ className: cn(TruncatedText_module.default.truncatedText, {
41
+ [TruncatedText_module.default.multiline]: multiline
42
+ }, className)
43
+ }, /*#__PURE__*/React.createElement("span", {
44
+ "data-test": dataTest,
45
+ "aria-labelledby": tooltip ? idTooltip : undefined
46
+ }, text))));
22
47
  };
23
- //# sourceMappingURL=TruncatedText.js.map
48
+
49
+ exports.TruncatedText = TruncatedText;
50
+ //# sourceMappingURL=TruncatedText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TruncatedText.js","sourceRoot":"","sources":["../../src/components/TruncatedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,MAAM,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAA;AAC9D,OAAO,SAAS,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,yBAAyB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGlC,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAA;AAEjD,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAahD,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EACpD,IAAI,EACJ,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,gBAAgB,GAAG,KAAK,EACxB,SAAS,EACT,gBAAgB,EAChB,WAAW,EAAE,QAAQ,GACtB,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,EAAyB,CAAA;IAC/D,MAAM,SAAS,GAAG,MAAM,EAAE,CAAA;IAE1B,yBAAyB,CAAC,GAAG,EAAE;QAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAA;QAE5B,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAClB,OAAM;QACR,CAAC;QAED,yCAAyC;QACzC,UAAU,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC7G,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAE5B,OAAO,CACL,oBAAC,OAAO,IAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,gBAAgB,IACxH,CAAC,GAAG,EAAE,EAAE,CAAC,CACR,6BAAK,GAAG,EAAE,SAAS,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,CAAC;QACpH,2CAAiB,QAAQ,qBAAmB,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IACxE,IAAI,CACA,CACH,CACP,CACO,CACX,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"TruncatedText.js","sources":["../../src/components/TruncatedText.tsx"],"sourcesContent":[null],"names":["TruncatedText","text","forceUpdateToken","className","tooltipVisible","tooltipPlacement","multiline","tooltipClassName","dataTest","textRef","useRef","tooltip","setTooltip","useState","idTooltip","useUID","useIsomorphicLayoutEffect","span","current","offsetWidth","scrollWidth","offsetHeight","scrollHeight","undefined","React","createElement","Tooltip","id","content","visible","placement","ref","mergeRefs","cn","styles","truncatedText"],"mappings":";;;;;;;;;;AAsBO,MAAMA,aAAa,GAA2BA,CAAC;EACpDC,IAAI;EACJC,gBAAgB;EAChBC,SAAS;EACTC,cAAc;AACdC,EAAAA,gBAAgB,GAAG,KAAK;EACxBC,SAAS;EACTC,gBAAgB;AAChB,EAAA,WAAW,EAAEC;AAAQ,CACtB,KAAI;AACH,EAAA,MAAM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@@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"truncatedText":"TruncatedText-module__truncatedText___-J-Gd","multiline":"TruncatedText-module__multiline___xS3mc"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=TruncatedText.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TruncatedText.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,19 +1,28 @@
1
- import { safeDivision } from './math';
2
- export const sum = (numbers) => numbers.reduce((a, b) => a + b, 0);
3
- export const average = (numbers) => safeDivision(sum(numbers), numbers.length);
4
- export const flatten = (arrays) => arrays.reduce((a, b) => [...a, ...b], []);
5
- export const difference = (array1, array2) => {
6
- const set1 = new Set(array1);
7
- const set2 = new Set(array2);
8
- return [...set1].filter((x) => !set2.has(x));
1
+ 'use strict';
2
+
3
+ var helpers_math = require('./math.js');
4
+
5
+ const sum = numbers => numbers.reduce((a, b) => a + b, 0);
6
+ const average = numbers => helpers_math.safeDivision(sum(numbers), numbers.length);
7
+ const flatten = arrays => arrays.reduce((a, b) => [...a, ...b], []);
8
+ const difference = (array1, array2) => {
9
+ const set1 = new Set(array1);
10
+ const set2 = new Set(array2);
11
+ return [...set1].filter(x => !set2.has(x));
9
12
  };
10
- export const range = (from, to, step = 1) => {
11
- let nextElement = from;
12
- const result = [];
13
- while (nextElement <= to) {
14
- result.push(nextElement);
15
- nextElement += step;
16
- }
17
- return result;
13
+ const range = (from, to, step = 1) => {
14
+ let nextElement = from;
15
+ const result = [];
16
+ while (nextElement <= to) {
17
+ result.push(nextElement);
18
+ nextElement += step;
19
+ }
20
+ return result;
18
21
  };
19
- //# sourceMappingURL=array.js.map
22
+
23
+ exports.average = average;
24
+ exports.difference = difference;
25
+ exports.flatten = flatten;
26
+ exports.range = range;
27
+ exports.sum = sum;
28
+ //# sourceMappingURL=array.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"array.js","sour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,IAAI,IAAI,CAAA;IACrB,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
1
+ {"version":3,"file":"array.js","sources":["../../src/helpers/array.ts"],"sourcesContent":[null],"names":["sum","numbers","reduce","a","b","average","safeDivision","length","flatten","arrays","difference","array1","array2","set1","Set","set2","filter","x","has","range","from","to","step","nextElement","result","push"],"mappings":";;;;MAEaA,GAAG,GAAIC,OAAiB,IAAKA,OAAO,CAACC,MAAM,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGC,CAAC,EAAE,CAAC;AAEpE,MAAMC,OAAO,GAAIJ,OAAiB,IAAKK,yBAAY,CAACN,GAAG,CAACC,OAAO,CAAC,EAAEA,OAAO,CAACM,MAAM;AAEhF,MAAMC,OAAO,GAAOC,MAAa,IAAKA,MAAM,CAACP,MAAM,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK,CAAC,GAAGD,CAAC,EAAE,GAAGC,CAAC,CAAC,EAAE,EAAE;MAExEM,UAAU,GAAGA,CAAIC,MAAW,EAAEC,MAAW,KAAI;AACxD,EAAA,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAACH,MAAM,CAAC;AAC5B,EAAA,MAAMI,IAAI,GAAG,IAAID,GAAG,CAACF,MAAM,CAAC;AAC5B,EAAA,OAAO,CAAC,GAAGC,IAAI,CAAC,CAACG,MAAM,CAAEC,CAAC,IAAK,CAACF,IAAI,CAACG,GAAG,CAACD,CAAC,CAAC,CAAC;AAC9C;AAEO,MAAME,KAAK,GAAGA,CAACC,IAAY,EAAEC,EAAU,EAAEC,IAAI,GAAG,CAAC,KAAI;EAC1D,IAAIC,WAAW,GAAGH,IAAI;EACtB,MAAMI,MAAM,GAAG,EAAE;EAEjB,OAAOD,WAAW,IAAIF,EAAE,EAAE;AACxBG,IAAAA,MAAM,CAACC,IAAI,CAACF,WAAW,CAAC;AACxBA,IAAAA,WAAW,IAAID,IAAI;AACrB,EAAA;AAEA,EAAA,OAAOE,MAAM;AACf;;;;;;;;"}
@@ -1,7 +1,11 @@
1
- export const escapeHtml = (html) => {
2
- const text = document.createTextNode(html);
3
- const p = document.createElement('p');
4
- p.appendChild(text);
5
- return p.innerHTML;
1
+ 'use strict';
2
+
3
+ const escapeHtml = html => {
4
+ const text = document.createTextNode(html);
5
+ const p = document.createElement('p');
6
+ p.appendChild(text);
7
+ return p.innerHTML;
6
8
  };
7
- //# sourceMappingURL=escapeHtml.js.map
9
+
10
+ exports.escapeHtml = escapeHtml;
11
+ //# sourceMappingURL=escapeHtml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"escapeHtml.js","sourceRoot":"","sources":["../../src/helpers/escapeHtml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;IAC1C,MAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;IACrC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IACnB,OAAO,CAAC,CAAC,SAAS,CAAA;AACpB,CAAC,CAAA"}
1
+ {"version":3,"file":"escapeHtml.js","sources":["../../src/helpers/escapeHtml.ts"],"sourcesContent":[null],"names":["escapeHtml","html","text","document","createTextNode","p","createElement","appendChild","innerHTML"],"mappings":";;AAAO,MAAMA,UAAU,GAAIC,IAAY,IAAI;AACzC,EAAA,MAAMC,IAAI,GAAGC,QAAQ,CAACC,cAAc,CAACH,IAAI,CAAC;AAC1C,EAAA,MAAMI,CAAC,GAAGF,QAAQ,CAACG,aAAa,CAAC,GAAG,CAAC;AACrCD,EAAAA,CAAC,CAACE,WAAW,CAACL,IAAI,CAAC;EACnB,OAAOG,CAAC,CAACG,SAAS;AACpB;;;;"}
@@ -1,16 +1,22 @@
1
- import { logger } from '../services/logger';
2
- export function triggerNativeInputChange(value, inputEl) {
3
- const inputPropertyDescriptor = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
4
- if (inputPropertyDescriptor) {
5
- const nativeInputValueSetter = inputPropertyDescriptor.set;
6
- if (nativeInputValueSetter) {
7
- nativeInputValueSetter.call(inputEl, value);
8
- const event = new Event('input', { bubbles: true });
9
- inputEl.dispatchEvent(event);
10
- }
11
- }
12
- else {
13
- logger.warn('Could not find property descriptor for input elements');
1
+ 'use strict';
2
+
3
+ var services_logger = require('../services/logger.js');
4
+
5
+ function triggerNativeInputChange(value, inputEl) {
6
+ const inputPropertyDescriptor = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
7
+ if (inputPropertyDescriptor) {
8
+ const nativeInputValueSetter = inputPropertyDescriptor.set;
9
+ if (nativeInputValueSetter) {
10
+ nativeInputValueSetter.call(inputEl, value);
11
+ const event = new Event('input', {
12
+ bubbles: true
13
+ });
14
+ inputEl.dispatchEvent(event);
14
15
  }
16
+ } else {
17
+ services_logger.logger.warn('Could not find property descriptor for input elements');
18
+ }
15
19
  }
16
- //# sourceMappingURL=forms.js.map
20
+
21
+ exports.triggerNativeInputChange = triggerNativeInputChange;
22
+ //# sourceMappingURL=forms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/helpers/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,MAAM,UAAU,wBAAwB,CAAC,KAAa,EAAE,OAAyB;IAC/E,MAAM,uBAAuB,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAC3G,IAAI,uBAAuB,EAAE,CAAC;QAC5B,MAAM,sBAAsB,GAAG,uBAAuB,CAAC,GAAG,CAAA;QAC1D,IAAI,sBAAsB,EAAE,CAAC;YAC3B,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;YAC3C,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;YACnD,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAC9B,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAA;IACtE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"forms.js","sources":["../../src/helpers/forms.ts"],"sourcesContent":[null],"names":["triggerNativeInputChange","value","inputEl","inputPropertyDescriptor","Object","getOwnPropertyDescriptor","window","HTMLInputElement","prototype","nativeInputValueSetter","set","call","event","Event","bubbles","dispatchEvent","logger","warn"],"mappings":";;;;AAEM,SAAUA,wBAAwBA,CAACC,KAAa,EAAEC,OAAyB,EAAA;AAC/E,EAAA,MAAMC,uBAAuB,GAAGC,MAAM,CAACC,wBAAwB,CAACC,MAAM,CAACC,gBAAgB,CAACC,SAAS,EAAE,OAAO,CAAC;AAC3G,EAAA,IAAIL,uBAAuB,EAAE;AAC3B,IAAA,MAAMM,sBAAsB,GAAGN,uBAAuB,CAACO,GAAG;AAC1D,IAAA,IAAID,sBAAsB,EAAE;AAC1BA,MAAAA,sBAAsB,CAACE,IAAI,CAACT,OAAO,EAAED,KAAK,CAAC;AAC3C,MAAA,MAAMW,KAAK,GAAG,IAAIC,KAAK,CAAC,OAAO,EAAE;AAAEC,QAAAA,OAAO,EAAE;AAAI,OAAE,CAAC;AACnDZ,MAAAA,OAAO,CAACa,aAAa,CAACH,KAAK,CAAC;AAC9B,IAAA;AACF,EAAA,CAAC,MAAM;AACLI,IAAAA,sBAAM,CAACC,IAAI,CAAC,uDAAuD,CAAC;AACtE,EAAA;AACF;;;;"}
@@ -1,7 +1,11 @@
1
- export const safeDivision = (dividend, divisor) => {
2
- if (dividend === null || dividend === undefined || !divisor) {
3
- return null;
4
- }
5
- return dividend / divisor;
1
+ 'use strict';
2
+
3
+ const safeDivision = (dividend, divisor) => {
4
+ if (dividend === null || dividend === undefined || !divisor) {
5
+ return null;
6
+ }
7
+ return dividend / divisor;
6
8
  };
7
- //# sourceMappingURL=math.js.map
9
+
10
+ exports.safeDivision = safeDivision;
11
+ //# sourceMappingURL=math.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"math.js","sourceRoot":"","sources":["../../src/helpers/math.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAmC,EAAE,OAAkC,EAAiB,EAAE;IACrH,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC;QAC5D,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,QAAQ,GAAG,OAAO,CAAA;AAC3B,CAAC,CAAA"}
1
+ {"version":3,"file":"math.js","sources":["../../src/helpers/math.ts"],"sourcesContent":[null],"names":["safeDivision","dividend","divisor","undefined"],"mappings":";;MAAaA,YAAY,GAAGA,CAACC,QAAmC,EAAEC,OAAkC,KAAmB;EACrH,IAAID,QAAQ,KAAK,IAAI,IAAIA,QAAQ,KAAKE,SAAS,IAAI,CAACD,OAAO,EAAE;AAC3D,IAAA,OAAO,IAAI;AACb,EAAA;EAEA,OAAOD,QAAQ,GAAGC,OAAO;AAC3B;;;;"}
@@ -1,2 +1,6 @@
1
- export const assertType = (val) => val;
2
- //# sourceMappingURL=types.js.map
1
+ 'use strict';
2
+
3
+ const assertType = val => val;
4
+
5
+ exports.assertType = assertType;
6
+ //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":"AAwEA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAI,GAAM,EAAE,EAAE,CAAC,GAAG,CAAA"}
1
+ {"version":3,"file":"types.js","sources":["../../src/helpers/types.ts"],"sourcesContent":[null],"names":["assertType","val"],"mappings":";;AAwEO,MAAMA,UAAU,GAAOC,GAAM,IAAKA;;;;"}
@@ -1,7 +1,17 @@
1
- /* export only hooks for external usage */
2
- export { useOnClickOutside, containsElement } from './useOnClickOutside';
3
- export { useIsMounted } from './useIsMounted';
4
- export { useRefValue } from './useRefValue';
5
- export { useOpenCloseState } from './useOpenCloseState';
6
- export * from './usePersistedState';
7
- //# sourceMappingURL=index.js.map
1
+ 'use strict';
2
+
3
+ var hooks_useOnClickOutside = require('./useOnClickOutside.js');
4
+ var hooks_useIsMounted = require('./useIsMounted.js');
5
+ var hooks_useRefValue = require('./useRefValue.js');
6
+ var hooks_useOpenCloseState = require('./useOpenCloseState.js');
7
+ var hooks_usePersistedState = require('./usePersistedState.js');
8
+
9
+
10
+
11
+ exports.containsElement = hooks_useOnClickOutside.containsElement;
12
+ exports.useOnClickOutside = hooks_useOnClickOutside.useOnClickOutside;
13
+ exports.useIsMounted = hooks_useIsMounted.useIsMounted;
14
+ exports.useRefValue = hooks_useRefValue.useRefValue;
15
+ exports.useOpenCloseState = hooks_useOpenCloseState.useOpenCloseState;
16
+ exports.createPersistedState = hooks_usePersistedState.createPersistedState;
17
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1,16 +1,21 @@
1
- import { useEffect } from 'react';
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
2
5
  /** If the size of screen is changed we close dropdown menu to aviod the dropdown menu bug in react-select library.
3
6
  * For more information visit: https://github.com/JedWatson/react-select/issues/3533
4
7
  */
5
- export const useCloseOnResize = (target) => {
6
- const handleResize = () => {
7
- if (target.current) {
8
- target.current.onMenuClose();
9
- }
10
- };
11
- useEffect(() => {
12
- window.addEventListener('resize', handleResize);
13
- return () => window.removeEventListener('resize', handleResize);
14
- });
8
+ const useCloseOnResize = target => {
9
+ const handleResize = () => {
10
+ if (target.current) {
11
+ target.current.onMenuClose();
12
+ }
13
+ };
14
+ React.useEffect(() => {
15
+ window.addEventListener('resize', handleResize);
16
+ return () => window.removeEventListener('resize', handleResize);
17
+ });
15
18
  };
16
- //# sourceMappingURL=useCloseOnResize.js.map
19
+
20
+ exports.useCloseOnResize = useCloseOnResize;
21
+ //# sourceMappingURL=useCloseOnResize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCloseOnResize.js","sourceRoot":"","sources":["../../src/hooks/useCloseOnResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAA;AAKnD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAqC,MAA8B,EAAE,EAAE;IACrG,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,CAAA;QAC9B,CAAC;IACH,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;QAE/C,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"useCloseOnResize.js","sources":["../../src/hooks/useCloseOnResize.ts"],"sourcesContent":[null],"names":["useCloseOnResize","target","handleResize","current","onMenuClose","useEffect","window","addEventListener","removeEventListener"],"mappings":";;;;AAKA;;AAEG;AACI,MAAMA,gBAAgB,GAAwCC,MAA8B,IAAI;EACrG,MAAMC,YAAY,GAAGA,MAAK;IACxB,IAAID,MAAM,CAACE,OAAO,EAAE;AAClBF,MAAAA,MAAM,CAACE,OAAO,CAACC,WAAW,EAAE;AAC9B,IAAA;EACF,CAAC;AAEDC,EAAAA,eAAS,CAAC,MAAK;AACbC,IAAAA,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAEL,YAAY,CAAC;IAE/C,OAAO,MAAMI,MAAM,CAACE,mBAAmB,CAAC,QAAQ,EAAEN,YAAY,CAAC;AACjE,EAAA,CAAC,CAAC;AACJ;;;;"}
@@ -1,8 +1,13 @@
1
- import { useMemo } from 'react';
2
- import { useDeepEqual } from './useDeepEqual';
3
- export const useDeepCompareMemo = (fn, deps) => {
4
- const depsMemoized = useDeepEqual(deps, []);
5
- // eslint-disable-next-line react-hooks/exhaustive-deps
6
- return useMemo(fn, depsMemoized);
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var hooks_useDeepEqual = require('./useDeepEqual.js');
5
+
6
+ const useDeepCompareMemo = (fn, deps) => {
7
+ const depsMemoized = hooks_useDeepEqual.useDeepEqual(deps, []);
8
+ // eslint-disable-next-line react-hooks/exhaustive-deps
9
+ return React.useMemo(fn, depsMemoized);
7
10
  };
8
- //# sourceMappingURL=useDeepCompareMemo.js.map
11
+
12
+ exports.useDeepCompareMemo = useDeepCompareMemo;
13
+ //# sourceMappingURL=useDeepCompareMemo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDeepCompareMemo.js","sourceRoot":"","sources":["../../src/hooks/useDeepCompareMemo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAI,EAAW,EAAE,IAAoB,EAAE,EAAE;IACzE,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IAC3C,uDAAuD;IACvD,OAAO,OAAO,CAAC,EAAE,EAAE,YAAY,CAAC,CAAA;AAClC,CAAC,CAAA"}
1
+ {"version":3,"file":"useDeepCompareMemo.js","sources":["../../src/hooks/useDeepCompareMemo.ts"],"sourcesContent":[null],"names":["useDeepCompareMemo","fn","deps","depsMemoized","useDeepEqual","useMemo"],"mappings":";;;;;MAIaA,kBAAkB,GAAGA,CAAIC,EAAW,EAAEC,IAAoB,KAAI;AACzE,EAAA,MAAMC,YAAY,GAAGC,+BAAY,CAACF,IAAI,EAAE,EAAE,CAAC;AAC3C;AACA,EAAA,OAAOG,aAAO,CAACJ,EAAE,EAAEE,YAAY,CAAC;AAClC;;;;"}
@@ -1,10 +1,15 @@
1
- import { useRef } from 'react';
2
- import { dequal } from 'dequal';
3
- export const useDeepEqual = (value, defaultValue) => {
4
- const ref = useRef(defaultValue);
5
- if (!dequal(ref.current, value)) {
6
- ref.current = value;
7
- }
8
- return ref.current;
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var dequal = require('dequal');
5
+
6
+ const useDeepEqual = (value, defaultValue) => {
7
+ const ref = React.useRef(defaultValue);
8
+ if (!dequal.dequal(ref.current, value)) {
9
+ ref.current = value;
10
+ }
11
+ return ref.current;
9
12
  };
10
- //# sourceMappingURL=useDeepEqual.js.map
13
+
14
+ exports.useDeepEqual = useDeepEqual;
15
+ //# sourceMappingURL=useDeepEqual.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDeepEqual.js","sourceRoot":"","sources":["../../src/hooks/useDeepEqual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,KAAQ,EAAE,YAAe,EAAE,EAAE;IAC3D,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;IAEhC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;QAChC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAA;IACrB,CAAC;IAED,OAAO,GAAG,CAAC,OAAO,CAAA;AACpB,CAAC,CAAA"}
1
+ {"version":3,"file":"useDeepEqual.js","sources":["../../src/hooks/useDeepEqual.ts"],"sourcesContent":[null],"names":["useDeepEqual","value","defaultValue","ref","useRef","dequal","current"],"mappings":";;;;;MAGaA,YAAY,GAAGA,CAAIC,KAAQ,EAAEC,YAAe,KAAI;AAC3D,EAAA,MAAMC,GAAG,GAAGC,YAAM,CAACF,YAAY,CAAC;EAEhC,IAAI,CAACG,aAAM,CAACF,GAAG,CAACG,OAAO,EAAEL,KAAK,CAAC,EAAE;IAC/BE,GAAG,CAACG,OAAO,GAAGL,KAAK;AACrB,EAAA;EAEA,OAAOE,GAAG,CAACG,OAAO;AACpB;;;;"}