@hazelcast/ui 1.3.3-next.8 → 2.0.1-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 (613) hide show
  1. package/README.md +223 -6
  2. package/lib/{Alert.d.ts → components/Alert.d.ts} +1 -1
  3. package/lib/{Alert.js → components/Alert.js} +2 -2
  4. package/lib/components/Alert.js.map +1 -0
  5. package/lib/{Alert.module.scss → components/Alert.module.scss} +3 -2
  6. package/lib/components/AppHeader/AppHeader.d.ts +16 -0
  7. package/lib/components/AppHeader/AppHeader.js +17 -0
  8. package/lib/components/AppHeader/AppHeader.js.map +1 -0
  9. package/lib/components/AppHeader/AppHeader.module.scss +29 -0
  10. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.d.ts +12 -0
  11. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +7 -0
  12. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -0
  13. package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss +29 -0
  14. package/lib/components/AppHeader/AppHeaderLogo/index.d.ts +1 -0
  15. package/lib/components/AppHeader/AppHeaderLogo/index.js +2 -0
  16. package/lib/components/AppHeader/AppHeaderLogo/index.js.map +1 -0
  17. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.d.ts +8 -0
  18. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +15 -0
  19. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -0
  20. package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +20 -0
  21. package/lib/components/AppHeader/AppHeaderMenu/index.d.ts +1 -0
  22. package/lib/components/AppHeader/AppHeaderMenu/index.js +2 -0
  23. package/lib/components/AppHeader/AppHeaderMenu/index.js.map +1 -0
  24. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.d.ts +5 -0
  25. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +10 -0
  26. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -0
  27. package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +13 -0
  28. package/lib/components/AppHeader/EnvironmentBadge/index.d.ts +1 -0
  29. package/lib/components/AppHeader/EnvironmentBadge/index.js +2 -0
  30. package/lib/components/AppHeader/EnvironmentBadge/index.js.map +1 -0
  31. package/lib/components/AppHeader/SelectCluster/SelectCluster.d.ts +9 -0
  32. package/lib/components/AppHeader/SelectCluster/SelectCluster.js +37 -0
  33. package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -0
  34. package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +101 -0
  35. package/lib/components/AppHeader/SelectCluster/index.d.ts +1 -0
  36. package/lib/components/AppHeader/SelectCluster/index.js +2 -0
  37. package/lib/components/AppHeader/SelectCluster/index.js.map +1 -0
  38. package/lib/components/AppHeader/index.d.ts +1 -0
  39. package/lib/components/AppHeader/index.js +2 -0
  40. package/lib/components/AppHeader/index.js.map +1 -0
  41. package/lib/components/AppSidebar/AppSidebar.d.ts +11 -0
  42. package/lib/components/AppSidebar/AppSidebar.js +31 -0
  43. package/lib/components/AppSidebar/AppSidebar.js.map +1 -0
  44. package/lib/components/AppSidebar/AppSidebar.module.scss +66 -0
  45. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.d.ts +6 -0
  46. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +22 -0
  47. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -0
  48. package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +16 -0
  49. package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.d.ts +1 -0
  50. package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js +2 -0
  51. package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js.map +1 -0
  52. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.d.ts +7 -0
  53. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +11 -0
  54. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -0
  55. package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +13 -0
  56. package/lib/components/AppSidebar/AppSidebarFavorites/index.d.ts +1 -0
  57. package/lib/components/AppSidebar/AppSidebarFavorites/index.js +2 -0
  58. package/lib/components/AppSidebar/AppSidebarFavorites/index.js.map +1 -0
  59. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.d.ts +28 -0
  60. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +23 -0
  61. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -0
  62. package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss +92 -0
  63. package/lib/components/AppSidebar/AppSidebarItem/index.d.ts +1 -0
  64. package/lib/components/AppSidebar/AppSidebarItem/index.js +2 -0
  65. package/lib/components/AppSidebar/AppSidebarItem/index.js.map +1 -0
  66. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.d.ts +6 -0
  67. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +6 -0
  68. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -0
  69. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss +24 -0
  70. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.d.ts +1 -0
  71. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js +2 -0
  72. package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js.map +1 -0
  73. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.d.ts +13 -0
  74. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +15 -0
  75. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -0
  76. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +58 -0
  77. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.d.ts +12 -0
  78. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +54 -0
  79. package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -0
  80. package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.d.ts +1 -0
  81. package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js +3 -0
  82. package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js.map +1 -0
  83. package/lib/components/AppSidebar/AppSidebarSection/index.d.ts +1 -0
  84. package/lib/components/AppSidebar/AppSidebarSection/index.js +2 -0
  85. package/lib/components/AppSidebar/AppSidebarSection/index.js.map +1 -0
  86. package/lib/components/AppSidebar/appSidebarContext.d.ts +9 -0
  87. package/lib/components/AppSidebar/appSidebarContext.js +11 -0
  88. package/lib/components/AppSidebar/appSidebarContext.js.map +1 -0
  89. package/lib/components/AppSidebar/index.d.ts +5 -0
  90. package/lib/components/AppSidebar/index.js +6 -0
  91. package/lib/components/AppSidebar/index.js.map +1 -0
  92. package/lib/{AutocompleteField.js → components/AutocompleteField.js} +4 -7
  93. package/lib/components/AutocompleteField.js.map +1 -0
  94. package/lib/{AutocompleteField.module.scss → components/AutocompleteField.module.scss} +2 -2
  95. package/lib/{AutocompleteFieldFormik.d.ts → components/AutocompleteFieldFormik.d.ts} +1 -1
  96. package/lib/{AutocompleteFieldFormik.js → components/AutocompleteFieldFormik.js} +1 -1
  97. package/lib/components/AutocompleteFieldFormik.js.map +1 -0
  98. package/lib/{Badge.js → components/Badge.js} +4 -4
  99. package/lib/components/Badge.js.map +1 -0
  100. package/lib/{Badge.module.scss → components/Badge.module.scss} +1 -1
  101. package/lib/{Button.d.ts → components/Button.d.ts} +8 -8
  102. package/lib/{Button.js → components/Button.js} +14 -42
  103. package/lib/components/Button.js.map +1 -0
  104. package/lib/{Button.module.scss → components/Button.module.scss} +42 -12
  105. package/lib/{Calendar → components/Calendar}/Calendar.d.ts +3 -2
  106. package/lib/{Calendar → components/Calendar}/Calendar.js +6 -9
  107. package/lib/components/Calendar/Calendar.js.map +1 -0
  108. package/lib/{Calendar → components/Calendar}/Calendar.module.scss +2 -2
  109. package/lib/components/Calendar/CalendarRange.js.map +1 -0
  110. package/lib/{Calendar → components/Calendar}/CalendarRange.module.scss +1 -1
  111. package/lib/{Calendar → components/Calendar}/components/CalendarHeader.js +1 -1
  112. package/lib/components/Calendar/components/CalendarHeader.js.map +1 -0
  113. package/lib/{Calendar → components/Calendar}/components/CalendarInput.d.ts +3 -2
  114. package/lib/{Calendar → components/Calendar}/components/CalendarInput.js +1 -1
  115. package/lib/components/Calendar/components/CalendarInput.js.map +1 -0
  116. package/lib/{Calendar → components/Calendar}/components/CalendarTime.d.ts +3 -2
  117. package/lib/{Calendar → components/Calendar}/components/CalendarTime.js +6 -6
  118. package/lib/components/Calendar/components/CalendarTime.js.map +1 -0
  119. package/lib/{Calendar → components/Calendar}/components/CalendarTime.module.scss +2 -2
  120. package/lib/{Calendar → components/Calendar}/helpers/consts.js.map +1 -1
  121. package/lib/{Card.d.ts → components/Card.d.ts} +3 -1
  122. package/lib/{Card.js → components/Card.js} +3 -2
  123. package/lib/components/Card.js.map +1 -0
  124. package/lib/{Card.module.scss → components/Card.module.scss} +52 -19
  125. package/lib/{Carousel.d.ts → components/Carousel.d.ts} +1 -1
  126. package/lib/{Carousel.js → components/Carousel.js} +1 -1
  127. package/lib/components/Carousel.js.map +1 -0
  128. package/lib/{Carousel.module.scss → components/Carousel.module.scss} +2 -2
  129. package/lib/components/CenteredLoader.d.ts +5 -0
  130. package/lib/components/CenteredLoader.js +6 -0
  131. package/lib/components/CenteredLoader.js.map +1 -0
  132. package/lib/components/CenteredLoader.module.scss +11 -0
  133. package/lib/{Checkbox.d.ts → components/Checkbox.d.ts} +1 -1
  134. package/lib/{Checkbox.js → components/Checkbox.js} +2 -2
  135. package/lib/components/Checkbox.js.map +1 -0
  136. package/lib/{Checkbox.module.scss → components/Checkbox.module.scss} +2 -2
  137. package/lib/{CheckboxFormik.d.ts → components/CheckboxFormik.d.ts} +2 -2
  138. package/lib/{CheckboxFormik.js → components/CheckboxFormik.js} +1 -1
  139. package/lib/components/CheckboxFormik.js.map +1 -0
  140. package/lib/components/CircularProgressBar.js.map +1 -0
  141. package/lib/{CircularProgressBar.module.scss → components/CircularProgressBar.module.scss} +1 -1
  142. package/lib/{ContextMenu.js → components/ContextMenu.js} +1 -1
  143. package/lib/components/ContextMenu.js.map +1 -0
  144. package/lib/{ContextMenu.module.scss → components/ContextMenu.module.scss} +2 -2
  145. package/lib/{Dialog.js → components/Dialog.js} +22 -18
  146. package/lib/components/Dialog.js.map +1 -0
  147. package/lib/{Dialog.module.scss → components/Dialog.module.scss} +1 -1
  148. package/lib/{EmptyState.d.ts → components/EmptyState.d.ts} +4 -4
  149. package/lib/components/EmptyState.js.map +1 -0
  150. package/lib/{EmptyState.module.scss → components/EmptyState.module.scss} +1 -1
  151. package/lib/{Error.d.ts → components/Error.d.ts} +2 -1
  152. package/lib/components/Error.js +8 -0
  153. package/lib/components/Error.js.map +1 -0
  154. package/lib/{Error.module.scss → components/Error.module.scss} +1 -1
  155. package/lib/{FieldHeader.d.ts → components/FieldHeader.d.ts} +3 -3
  156. package/lib/components/FieldHeader.js.map +1 -0
  157. package/lib/{FieldHeader.module.scss → components/FieldHeader.module.scss} +1 -1
  158. package/lib/{Help.d.ts → components/Help.d.ts} +2 -1
  159. package/lib/{Help.js → components/Help.js} +3 -3
  160. package/lib/components/Help.js.map +1 -0
  161. package/lib/{Help.module.scss → components/Help.module.scss} +1 -1
  162. package/lib/{Icon.d.ts → components/Icon.d.ts} +2 -1
  163. package/lib/{Icon.js → components/Icon.js} +3 -3
  164. package/lib/components/Icon.js.map +1 -0
  165. package/lib/{Icon.module.scss → components/Icon.module.scss} +1 -1
  166. package/lib/{IconButton.d.ts → components/IconButton.d.ts} +1 -1
  167. package/lib/{IconButton.js → components/IconButton.js} +3 -3
  168. package/lib/components/IconButton.js.map +1 -0
  169. package/lib/{IconButton.module.scss → components/IconButton.module.scss} +2 -2
  170. package/lib/{InteractiveList.d.ts → components/InteractiveList.d.ts} +8 -8
  171. package/lib/{InteractiveList.js → components/InteractiveList.js} +11 -13
  172. package/lib/components/InteractiveList.js.map +1 -0
  173. package/lib/{InteractiveList.module.scss → components/InteractiveList.module.scss} +1 -1
  174. package/lib/{InteractiveListFormik.d.ts → components/InteractiveListFormik.d.ts} +1 -1
  175. package/lib/{InteractiveListFormik.js → components/InteractiveListFormik.js} +1 -1
  176. package/lib/components/InteractiveListFormik.js.map +1 -0
  177. package/lib/{Label.d.ts → components/Label.d.ts} +2 -1
  178. package/lib/components/Label.js +5 -0
  179. package/lib/components/Label.js.map +1 -0
  180. package/lib/{Label.module.scss → components/Label.module.scss} +1 -1
  181. package/lib/{Link.d.ts → components/Link.d.ts} +2 -2
  182. package/lib/{Link.js → components/Link.js} +2 -0
  183. package/lib/components/Link.js.map +1 -0
  184. package/lib/{Link.module.scss → components/Link.module.scss} +7 -2
  185. package/lib/{Loader.d.ts → components/Loader.d.ts} +2 -1
  186. package/lib/{Loader.js → components/Loader.js} +2 -2
  187. package/lib/components/Loader.js.map +1 -0
  188. package/lib/{Loader.module.scss → components/Loader.module.scss} +1 -1
  189. package/lib/{Modal.d.ts → components/Modal.d.ts} +1 -1
  190. package/lib/{Modal.js → components/Modal.js} +4 -4
  191. package/lib/components/Modal.js.map +1 -0
  192. package/lib/{Modal.module.scss → components/Modal.module.scss} +4 -3
  193. package/lib/components/Notification.js.map +1 -0
  194. package/lib/{Notification.module.scss → components/Notification.module.scss} +1 -1
  195. package/lib/components/NumberBadge.js.map +1 -0
  196. package/lib/{NumberBadge.module.scss → components/NumberBadge.module.scss} +1 -1
  197. package/lib/{NumberField.d.ts → components/NumberField.d.ts} +1 -1
  198. package/lib/{NumberField.js → components/NumberField.js} +10 -12
  199. package/lib/components/NumberField.js.map +1 -0
  200. package/lib/{NumberField.module.scss → components/NumberField.module.scss} +1 -1
  201. package/lib/{NumberFieldFormik.d.ts → components/NumberFieldFormik.d.ts} +2 -2
  202. package/lib/{NumberFieldFormik.js → components/NumberFieldFormik.js} +1 -3
  203. package/lib/components/NumberFieldFormik.js.map +1 -0
  204. package/lib/{Overlay.d.ts → components/Overlay.d.ts} +1 -1
  205. package/lib/components/Overlay.js.map +1 -0
  206. package/lib/{Overlay.module.scss → components/Overlay.module.scss} +4 -3
  207. package/lib/{Pagination.js → components/Pagination.js} +13 -13
  208. package/lib/components/Pagination.js.map +1 -0
  209. package/lib/{Pagination.module.scss → components/Pagination.module.scss} +2 -2
  210. package/lib/{PasswordField.d.ts → components/PasswordField.d.ts} +1 -1
  211. package/lib/{PasswordField.js → components/PasswordField.js} +4 -4
  212. package/lib/components/PasswordField.js.map +1 -0
  213. package/lib/{PasswordField.module.scss → components/PasswordField.module.scss} +1 -1
  214. package/lib/{PasswordFieldFormik.d.ts → components/PasswordFieldFormik.d.ts} +2 -2
  215. package/lib/{PasswordFieldFormik.js → components/PasswordFieldFormik.js} +1 -1
  216. package/lib/components/PasswordFieldFormik.js.map +1 -0
  217. package/lib/{Popover.d.ts → components/Popover.d.ts} +4 -4
  218. package/lib/{Popover.js → components/Popover.js} +34 -7
  219. package/lib/components/Popover.js.map +1 -0
  220. package/lib/{Popover.module.scss → components/Popover.module.scss} +1 -1
  221. package/lib/{Radio.d.ts → components/Radio.d.ts} +1 -1
  222. package/lib/{Radio.js → components/Radio.js} +3 -3
  223. package/lib/components/Radio.js.map +1 -0
  224. package/lib/{Radio.module.scss → components/Radio.module.scss} +2 -2
  225. package/lib/components/RadioFormik.js.map +1 -0
  226. package/lib/{RadioGroup.d.ts → components/RadioGroup.d.ts} +1 -1
  227. package/lib/{RadioGroup.js → components/RadioGroup.js} +3 -3
  228. package/lib/components/RadioGroup.js.map +1 -0
  229. package/lib/{RadioGroup.module.scss → components/RadioGroup.module.scss} +2 -2
  230. package/lib/{RadioGroupContext.d.ts → components/RadioGroupContext.d.ts} +2 -2
  231. package/lib/components/RadioGroupContext.js.map +1 -0
  232. package/lib/{RadioGroupFormik.d.ts → components/RadioGroupFormik.d.ts} +2 -2
  233. package/lib/{RadioGroupFormik.js → components/RadioGroupFormik.js} +1 -1
  234. package/lib/components/RadioGroupFormik.js.map +1 -0
  235. package/lib/{SegmentedControl.d.ts → components/SegmentedControl.d.ts} +3 -3
  236. package/lib/components/SegmentedControl.js.map +1 -0
  237. package/lib/{SegmentedControl.module.scss → components/SegmentedControl.module.scss} +2 -2
  238. package/lib/{SegmentedControlFormik.d.ts → components/SegmentedControlFormik.d.ts} +2 -2
  239. package/lib/{SegmentedControlFormik.js → components/SegmentedControlFormik.js} +1 -1
  240. package/lib/components/SegmentedControlFormik.js.map +1 -0
  241. package/lib/{Select → components/Select}/CheckableSelectField.d.ts +2 -2
  242. package/lib/{Select → components/Select}/CheckableSelectField.js +5 -5
  243. package/lib/components/Select/CheckableSelectField.js.map +1 -0
  244. package/lib/{Select → components/Select}/CheckableSelectField.module.scss +2 -2
  245. package/lib/{Select → components/Select}/CheckableSelectFieldFormik.d.ts +2 -2
  246. package/lib/{Select → components/Select}/CheckableSelectFieldFormik.js +1 -1
  247. package/lib/components/Select/CheckableSelectFieldFormik.js.map +1 -0
  248. package/lib/{Select → components/Select}/Common.js +8 -15
  249. package/lib/components/Select/Common.js.map +1 -0
  250. package/lib/{Select → components/Select}/Common.module.scss +3 -3
  251. package/lib/{Select → components/Select}/MultiSelectField.d.ts +3 -3
  252. package/lib/{Select → components/Select}/MultiSelectField.js +15 -13
  253. package/lib/components/Select/MultiSelectField.js.map +1 -0
  254. package/lib/{Select → components/Select}/MultiSelectField.module.scss +2 -2
  255. package/lib/{Select → components/Select}/MultiSelectFieldFormik.d.ts +4 -3
  256. package/lib/{Select → components/Select}/MultiSelectFieldFormik.js +1 -1
  257. package/lib/components/Select/MultiSelectFieldFormik.js.map +1 -0
  258. package/lib/{Select → components/Select}/SelectField.d.ts +4 -3
  259. package/lib/{Select → components/Select}/SelectField.js +12 -8
  260. package/lib/components/Select/SelectField.js.map +1 -0
  261. package/lib/{Select → components/Select}/SelectField.module.scss +2 -2
  262. package/lib/{Select → components/Select}/SelectFieldFormik.d.ts +2 -2
  263. package/lib/{Select → components/Select}/SelectFieldFormik.js +1 -1
  264. package/lib/components/Select/SelectFieldFormik.js.map +1 -0
  265. package/lib/{Select → components/Select}/helpers.d.ts +2 -2
  266. package/lib/{Select → components/Select}/helpers.js +1 -1
  267. package/lib/components/Select/helpers.js.map +1 -0
  268. package/lib/components/Select/index.js.map +1 -0
  269. package/lib/components/SimpleTable.d.ts +11 -0
  270. package/lib/components/SimpleTable.js.map +1 -0
  271. package/lib/{SimpleTable.module.scss → components/SimpleTable.module.scss} +1 -1
  272. package/lib/{Slider.d.ts → components/Slider.d.ts} +3 -3
  273. package/lib/{Slider.js → components/Slider.js} +1 -1
  274. package/lib/components/Slider.js.map +1 -0
  275. package/lib/{Slider.module.scss → components/Slider.module.scss} +2 -2
  276. package/lib/{SliderFormik.d.ts → components/SliderFormik.d.ts} +1 -1
  277. package/lib/{SliderFormik.js → components/SliderFormik.js} +1 -1
  278. package/lib/components/SliderFormik.js.map +1 -0
  279. package/lib/{Table → components/Table}/Cell.d.ts +6 -4
  280. package/lib/{Table → components/Table}/Cell.js +5 -4
  281. package/lib/components/Table/Cell.js.map +1 -0
  282. package/lib/{Table → components/Table}/Cell.module.scss +16 -7
  283. package/lib/components/Table/CellWrapper.d.ts +11 -0
  284. package/lib/{Table → components/Table}/CellWrapper.js +6 -6
  285. package/lib/components/Table/CellWrapper.js.map +1 -0
  286. package/lib/{Table → components/Table}/EnhancedRenderers.d.ts +8 -10
  287. package/lib/components/Table/EnhancedRenderers.js +13 -0
  288. package/lib/components/Table/EnhancedRenderers.js.map +1 -0
  289. package/lib/{Table → components/Table}/Header.d.ts +9 -5
  290. package/lib/{Table → components/Table}/Header.js +22 -11
  291. package/lib/components/Table/Header.js.map +1 -0
  292. package/lib/{Table → components/Table}/Header.module.scss +14 -9
  293. package/lib/components/Table/Row.d.ts +19 -0
  294. package/lib/{Table → components/Table}/Row.js +6 -7
  295. package/lib/components/Table/Row.js.map +1 -0
  296. package/lib/{Table → components/Table}/Row.module.scss +17 -14
  297. package/lib/components/Table/Table.d.ts +85 -0
  298. package/lib/components/Table/Table.js +259 -0
  299. package/lib/components/Table/Table.js.map +1 -0
  300. package/lib/{Table → components/Table}/Table.module.scss +8 -2
  301. package/lib/{Table → components/Table}/TableContent.d.ts +9 -9
  302. package/lib/components/Table/TableContent.js +58 -0
  303. package/lib/components/Table/TableContent.js.map +1 -0
  304. package/lib/components/Table/constants.js.map +1 -0
  305. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.d.ts +8 -0
  306. package/lib/{Table → components/Table}/features/columnsSelection/CellCopyablePopover.js +1 -1
  307. package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -0
  308. package/lib/{Table → components/Table}/features/columnsSelection/CellCopyablePopover.module.scss +1 -1
  309. package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.d.ts +2 -2
  310. package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -0
  311. package/lib/components/Table/features/columnsSelection/ContextMenu/index.js.map +1 -0
  312. package/lib/{Table → components/Table}/features/columnsSelection/columnsSelection.d.ts +0 -1
  313. package/lib/{Table → components/Table}/features/columnsSelection/columnsSelection.js +1 -1
  314. package/lib/components/Table/features/columnsSelection/columnsSelection.js.map +1 -0
  315. package/lib/components/Table/features/columnsSelection/helpers.js.map +1 -0
  316. package/lib/components/Table/features/columnsSelection/index.js.map +1 -0
  317. package/lib/components/Table/helpers.d.ts +2 -0
  318. package/lib/components/Table/helpers.js +10 -0
  319. package/lib/components/Table/helpers.js.map +1 -0
  320. package/lib/components/Table/tableTypes.d.ts +80 -0
  321. package/lib/components/Table/tableTypes.js +2 -0
  322. package/lib/components/Table/tableTypes.js.map +1 -0
  323. package/lib/components/Table/useTrackTableState.d.ts +3 -0
  324. package/lib/components/Table/useTrackTableState.js +30 -0
  325. package/lib/components/Table/useTrackTableState.js.map +1 -0
  326. package/lib/components/Table/utils.d.ts +16 -0
  327. package/lib/components/Table/utils.js +121 -0
  328. package/lib/components/Table/utils.js.map +1 -0
  329. package/lib/{Tabs → components/Tabs}/Tab.d.ts +1 -19
  330. package/lib/{Tabs → components/Tabs}/Tab.js +3 -17
  331. package/lib/components/Tabs/Tab.js.map +1 -0
  332. package/lib/{Tabs → components/Tabs}/Tab.module.scss +2 -6
  333. package/lib/components/Tabs/TabContext.js.map +1 -0
  334. package/lib/{Tabs → components/Tabs}/TabList.js +1 -3
  335. package/lib/components/Tabs/TabList.js.map +1 -0
  336. package/lib/{Tabs → components/Tabs}/TabPanel.d.ts +2 -1
  337. package/lib/{Tabs → components/Tabs}/TabPanel.js +2 -2
  338. package/lib/components/Tabs/TabPanel.js.map +1 -0
  339. package/lib/components/Tabs/index.js.map +1 -0
  340. package/lib/{Terminal.d.ts → components/Terminal.d.ts} +1 -1
  341. package/lib/{Terminal.js → components/Terminal.js} +0 -1
  342. package/lib/components/Terminal.js.map +1 -0
  343. package/lib/{Terminal.module.scss → components/Terminal.module.scss} +2 -2
  344. package/lib/{TextArea.d.ts → components/TextArea.d.ts} +1 -1
  345. package/lib/{TextArea.js → components/TextArea.js} +10 -14
  346. package/lib/components/TextArea.js.map +1 -0
  347. package/lib/{TextArea.module.scss → components/TextArea.module.scss} +2 -2
  348. package/lib/{TextAreaFormik.d.ts → components/TextAreaFormik.d.ts} +1 -1
  349. package/lib/components/TextAreaFormik.js.map +1 -0
  350. package/lib/{TextField.d.ts → components/TextField.d.ts} +5 -4
  351. package/lib/{TextField.js → components/TextField.js} +7 -7
  352. package/lib/components/TextField.js.map +1 -0
  353. package/lib/{TextField.module.scss → components/TextField.module.scss} +2 -2
  354. package/lib/{TextFieldFormik.d.ts → components/TextFieldFormik.d.ts} +2 -2
  355. package/lib/{TextFieldFormik.js → components/TextFieldFormik.js} +1 -1
  356. package/lib/components/TextFieldFormik.js.map +1 -0
  357. package/lib/{TimeField.d.ts → components/TimeField.d.ts} +1 -1
  358. package/lib/{TimeField.js → components/TimeField.js} +3 -3
  359. package/lib/components/TimeField.js.map +1 -0
  360. package/lib/{TimeFieldFormik.d.ts → components/TimeFieldFormik.d.ts} +2 -2
  361. package/lib/components/TimeFieldFormik.js.map +1 -0
  362. package/lib/{Toast.d.ts → components/Toast.d.ts} +2 -1
  363. package/lib/{Toast.js → components/Toast.js} +6 -6
  364. package/lib/components/Toast.js.map +1 -0
  365. package/lib/{Toast.module.scss → components/Toast.module.scss} +1 -1
  366. package/lib/{Toggle.d.ts → components/Toggle.d.ts} +1 -1
  367. package/lib/{Toggle.js → components/Toggle.js} +5 -5
  368. package/lib/components/Toggle.js.map +1 -0
  369. package/lib/{Toggle.module.scss → components/Toggle.module.scss} +2 -2
  370. package/lib/{ToggleFormik.d.ts → components/ToggleFormik.d.ts} +2 -2
  371. package/lib/{ToggleFormik.js → components/ToggleFormik.js} +1 -1
  372. package/lib/components/ToggleFormik.js.map +1 -0
  373. package/lib/{Tooltip.d.ts → components/Tooltip.d.ts} +4 -1
  374. package/lib/{Tooltip.js → components/Tooltip.js} +23 -17
  375. package/lib/components/Tooltip.js.map +1 -0
  376. package/lib/{Tooltip.module.scss → components/Tooltip.module.scss} +104 -72
  377. package/lib/{TruncatedText.d.ts → components/TruncatedText.d.ts} +6 -4
  378. package/lib/{TruncatedText.js → components/TruncatedText.js} +3 -3
  379. package/lib/components/TruncatedText.js.map +1 -0
  380. package/lib/{TruncatedText.module.scss → components/TruncatedText.module.scss} +1 -1
  381. package/lib/helpers/array.d.ts +5 -0
  382. package/lib/helpers/array.js +19 -0
  383. package/lib/helpers/array.js.map +1 -0
  384. package/lib/helpers/escapeHtml.d.ts +1 -0
  385. package/lib/helpers/escapeHtml.js +7 -0
  386. package/lib/helpers/escapeHtml.js.map +1 -0
  387. package/lib/helpers/forms.d.ts +1 -0
  388. package/lib/helpers/forms.js +16 -0
  389. package/lib/helpers/forms.js.map +1 -0
  390. package/lib/helpers/math.d.ts +1 -0
  391. package/lib/helpers/math.js +7 -0
  392. package/lib/helpers/math.js.map +1 -0
  393. package/lib/helpers/types.d.ts +35 -0
  394. package/lib/helpers/types.js +2 -0
  395. package/lib/helpers/types.js.map +1 -0
  396. package/lib/hooks/index.d.ts +1 -0
  397. package/lib/hooks/index.js +1 -0
  398. package/lib/hooks/index.js.map +1 -1
  399. package/lib/hooks/useCloseOnResize.js.map +1 -1
  400. package/lib/hooks/useDeepEqual.js +0 -1
  401. package/lib/hooks/useDeepEqual.js.map +1 -1
  402. package/lib/hooks/useDimensions.js.map +1 -1
  403. package/lib/hooks/useOnClickOutside.d.ts +1 -1
  404. package/lib/hooks/useOnClickOutside.js +7 -1
  405. package/lib/hooks/useOnClickOutside.js.map +1 -1
  406. package/lib/hooks/usePagination.js +1 -1
  407. package/lib/hooks/usePagination.js.map +1 -1
  408. package/lib/hooks/usePersistedState.d.ts +2 -0
  409. package/lib/hooks/usePersistedState.js +35 -0
  410. package/lib/hooks/usePersistedState.js.map +1 -0
  411. package/lib/hooks/useResizeAware.d.ts +3 -0
  412. package/lib/hooks/useResizeAware.js +25 -0
  413. package/lib/hooks/useResizeAware.js.map +1 -0
  414. package/lib/icons/Cluster.d.ts +2 -0
  415. package/lib/icons/Cluster.js +7 -0
  416. package/lib/icons/Cluster.js.map +1 -0
  417. package/lib/icons/Compare.d.ts +7 -0
  418. package/lib/icons/Compare.js +7 -0
  419. package/lib/icons/Compare.js.map +1 -0
  420. package/lib/icons/Compute.d.ts +2 -0
  421. package/lib/icons/Compute.js +7 -0
  422. package/lib/icons/Compute.js.map +1 -0
  423. package/lib/icons/Folder.d.ts +2 -0
  424. package/lib/icons/Folder.js +4 -0
  425. package/lib/icons/Folder.js.map +1 -0
  426. package/lib/icons/PlusCircle.d.ts +2 -0
  427. package/lib/icons/PlusCircle.js +6 -0
  428. package/lib/icons/PlusCircle.js.map +1 -0
  429. package/lib/icons/Streaming.d.ts +2 -0
  430. package/lib/icons/Streaming.js +8 -0
  431. package/lib/icons/Streaming.js.map +1 -0
  432. package/lib/index.d.ts +70 -53
  433. package/lib/index.js +73 -53
  434. package/lib/index.js.map +1 -1
  435. package/lib/services/logger.d.ts +13 -0
  436. package/lib/services/logger.js +84 -0
  437. package/lib/services/logger.js.map +1 -0
  438. package/lib/services/time.d.ts +7 -0
  439. package/lib/services/time.js +17 -0
  440. package/lib/services/time.js.map +1 -0
  441. package/lib/test-helpers/render.d.ts +10 -0
  442. package/lib/test-helpers/render.js +24 -0
  443. package/lib/test-helpers/render.js.map +1 -0
  444. package/lib/test-helpers/time.d.ts +1 -0
  445. package/lib/test-helpers/time.js +2 -0
  446. package/lib/test-helpers/time.js.map +1 -0
  447. package/lib/test-helpers/utils.d.ts +5 -0
  448. package/lib/test-helpers/utils.js +11 -0
  449. package/lib/test-helpers/utils.js.map +1 -0
  450. package/lib/types.d.ts +6 -0
  451. package/lib/types.js +2 -0
  452. package/lib/types.js.map +1 -0
  453. package/lib/utils/formik.js.map +1 -1
  454. package/lib/utils/portal.js.map +1 -1
  455. package/package.json +130 -88
  456. package/styles/constants/_colors.scss +36 -12
  457. package/styles/constants/_typography.scss +0 -7
  458. package/styles/helpers/_a11y.scss +8 -0
  459. package/styles/helpers/_gradients.scss +39 -6
  460. package/styles/typography/fonts/UbuntuMono-Bold.woff2 +0 -0
  461. package/styles/typography/fonts/UbuntuMono-BoldItalic.woff2 +0 -0
  462. package/styles/typography/fonts/UbuntuMono-Italic.woff2 +0 -0
  463. package/styles/typography/fonts/UbuntuMono-Regular.woff2 +0 -0
  464. package/styles/typography/ubuntu-mono.css +31 -0
  465. package/lib/Alert.js.map +0 -1
  466. package/lib/AutocompleteField.js.map +0 -1
  467. package/lib/AutocompleteFieldFormik.js.map +0 -1
  468. package/lib/Badge.js.map +0 -1
  469. package/lib/Button.js.map +0 -1
  470. package/lib/Calendar/Calendar.js.map +0 -1
  471. package/lib/Calendar/CalendarRange.js.map +0 -1
  472. package/lib/Calendar/components/CalendarHeader.js.map +0 -1
  473. package/lib/Calendar/components/CalendarInput.js.map +0 -1
  474. package/lib/Calendar/components/CalendarTime.js.map +0 -1
  475. package/lib/Card.js.map +0 -1
  476. package/lib/Carousel.js.map +0 -1
  477. package/lib/Checkbox.js.map +0 -1
  478. package/lib/CheckboxFormik.js.map +0 -1
  479. package/lib/CircularProgressBar.js.map +0 -1
  480. package/lib/ContextMenu.js.map +0 -1
  481. package/lib/Dialog.js.map +0 -1
  482. package/lib/EmptyState.js.map +0 -1
  483. package/lib/Error.js +0 -8
  484. package/lib/Error.js.map +0 -1
  485. package/lib/FieldHeader.js.map +0 -1
  486. package/lib/Help.js.map +0 -1
  487. package/lib/Icon.js.map +0 -1
  488. package/lib/IconButton.js.map +0 -1
  489. package/lib/InteractiveList.js.map +0 -1
  490. package/lib/InteractiveListFormik.js.map +0 -1
  491. package/lib/Label.js +0 -5
  492. package/lib/Label.js.map +0 -1
  493. package/lib/Link.js.map +0 -1
  494. package/lib/Loader.js.map +0 -1
  495. package/lib/Modal.js.map +0 -1
  496. package/lib/Notification.js.map +0 -1
  497. package/lib/NumberBadge.js.map +0 -1
  498. package/lib/NumberField.js.map +0 -1
  499. package/lib/NumberFieldFormik.js.map +0 -1
  500. package/lib/Overlay.js.map +0 -1
  501. package/lib/Pagination.js.map +0 -1
  502. package/lib/PasswordField.js.map +0 -1
  503. package/lib/PasswordFieldFormik.js.map +0 -1
  504. package/lib/Popover.js.map +0 -1
  505. package/lib/Radio.js.map +0 -1
  506. package/lib/RadioFormik.js.map +0 -1
  507. package/lib/RadioGroup.js.map +0 -1
  508. package/lib/RadioGroupContext.js.map +0 -1
  509. package/lib/RadioGroupFormik.js.map +0 -1
  510. package/lib/SegmentedControl.js.map +0 -1
  511. package/lib/SegmentedControlFormik.js.map +0 -1
  512. package/lib/Select/CheckableSelectField.js.map +0 -1
  513. package/lib/Select/CheckableSelectFieldFormik.js.map +0 -1
  514. package/lib/Select/Common.js.map +0 -1
  515. package/lib/Select/MultiSelectField.js.map +0 -1
  516. package/lib/Select/MultiSelectFieldFormik.js.map +0 -1
  517. package/lib/Select/SelectField.js.map +0 -1
  518. package/lib/Select/SelectFieldFormik.js.map +0 -1
  519. package/lib/Select/helpers.js.map +0 -1
  520. package/lib/Select/index.js.map +0 -1
  521. package/lib/SimpleTable.d.ts +0 -11
  522. package/lib/SimpleTable.js.map +0 -1
  523. package/lib/Slider.js.map +0 -1
  524. package/lib/SliderFormik.js.map +0 -1
  525. package/lib/Table/Cell.js.map +0 -1
  526. package/lib/Table/CellWrapper.d.ts +0 -11
  527. package/lib/Table/CellWrapper.js.map +0 -1
  528. package/lib/Table/EnhancedRenderers.js +0 -16
  529. package/lib/Table/EnhancedRenderers.js.map +0 -1
  530. package/lib/Table/Header.js.map +0 -1
  531. package/lib/Table/Row.d.ts +0 -17
  532. package/lib/Table/Row.js.map +0 -1
  533. package/lib/Table/Table.d.ts +0 -100
  534. package/lib/Table/Table.js +0 -261
  535. package/lib/Table/Table.js.map +0 -1
  536. package/lib/Table/TableContent.js +0 -53
  537. package/lib/Table/TableContent.js.map +0 -1
  538. package/lib/Table/constants.js.map +0 -1
  539. package/lib/Table/features/columnsSelection/CellCopyablePopover.d.ts +0 -8
  540. package/lib/Table/features/columnsSelection/CellCopyablePopover.js.map +0 -1
  541. package/lib/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +0 -1
  542. package/lib/Table/features/columnsSelection/ContextMenu/index.js.map +0 -1
  543. package/lib/Table/features/columnsSelection/columnsSelection.js.map +0 -1
  544. package/lib/Table/features/columnsSelection/helpers.js.map +0 -1
  545. package/lib/Table/features/columnsSelection/index.js.map +0 -1
  546. package/lib/Tabs/Tab.js.map +0 -1
  547. package/lib/Tabs/TabContext.js.map +0 -1
  548. package/lib/Tabs/TabList.js.map +0 -1
  549. package/lib/Tabs/TabPanel.js.map +0 -1
  550. package/lib/Tabs/index.js.map +0 -1
  551. package/lib/Terminal.js.map +0 -1
  552. package/lib/TextArea.js.map +0 -1
  553. package/lib/TextAreaFormik.js.map +0 -1
  554. package/lib/TextField.js.map +0 -1
  555. package/lib/TextFieldFormik.js.map +0 -1
  556. package/lib/TimeField.js.map +0 -1
  557. package/lib/TimeFieldFormik.js.map +0 -1
  558. package/lib/Toast.js.map +0 -1
  559. package/lib/Toggle.js.map +0 -1
  560. package/lib/ToggleFormik.js.map +0 -1
  561. package/lib/Tooltip.js.map +0 -1
  562. package/lib/TruncatedText.js.map +0 -1
  563. package/lib/utils/test.d.ts +0 -3
  564. package/lib/utils/test.js +0 -8
  565. package/lib/utils/test.js.map +0 -1
  566. /package/lib/{AutocompleteField.d.ts → components/AutocompleteField.d.ts} +0 -0
  567. /package/lib/{Badge.d.ts → components/Badge.d.ts} +0 -0
  568. /package/lib/{Calendar → components/Calendar}/CalendarRange.d.ts +0 -0
  569. /package/lib/{Calendar → components/Calendar}/CalendarRange.js +0 -0
  570. /package/lib/{Calendar → components/Calendar}/components/CalendarHeader.d.ts +0 -0
  571. /package/lib/{Calendar → components/Calendar}/helpers/consts.d.ts +0 -0
  572. /package/lib/{Calendar → components/Calendar}/helpers/consts.js +0 -0
  573. /package/lib/{CircularProgressBar.d.ts → components/CircularProgressBar.d.ts} +0 -0
  574. /package/lib/{CircularProgressBar.js → components/CircularProgressBar.js} +0 -0
  575. /package/lib/{ContextMenu.d.ts → components/ContextMenu.d.ts} +0 -0
  576. /package/lib/{Dialog.d.ts → components/Dialog.d.ts} +0 -0
  577. /package/lib/{EmptyState.js → components/EmptyState.js} +0 -0
  578. /package/lib/{FieldHeader.js → components/FieldHeader.js} +0 -0
  579. /package/lib/{Notification.d.ts → components/Notification.d.ts} +0 -0
  580. /package/lib/{Notification.js → components/Notification.js} +0 -0
  581. /package/lib/{NumberBadge.d.ts → components/NumberBadge.d.ts} +0 -0
  582. /package/lib/{NumberBadge.js → components/NumberBadge.js} +0 -0
  583. /package/lib/{Overlay.js → components/Overlay.js} +0 -0
  584. /package/lib/{Pagination.d.ts → components/Pagination.d.ts} +0 -0
  585. /package/lib/{RadioFormik.d.ts → components/RadioFormik.d.ts} +0 -0
  586. /package/lib/{RadioFormik.js → components/RadioFormik.js} +0 -0
  587. /package/lib/{RadioGroupContext.js → components/RadioGroupContext.js} +0 -0
  588. /package/lib/{SegmentedControl.js → components/SegmentedControl.js} +0 -0
  589. /package/lib/{Select → components/Select}/Common.d.ts +0 -0
  590. /package/lib/{Select → components/Select}/index.d.ts +0 -0
  591. /package/lib/{Select → components/Select}/index.js +0 -0
  592. /package/lib/{SimpleTable.js → components/SimpleTable.js} +0 -0
  593. /package/lib/{Table → components/Table}/TableContent.module.scss +0 -0
  594. /package/lib/{Table → components/Table}/constants.d.ts +0 -0
  595. /package/lib/{Table → components/Table}/constants.js +0 -0
  596. /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.js +0 -0
  597. /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.module.scss +0 -0
  598. /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/index.d.ts +0 -0
  599. /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/index.js +0 -0
  600. /package/lib/{Table → components/Table}/features/columnsSelection/helpers.d.ts +0 -0
  601. /package/lib/{Table → components/Table}/features/columnsSelection/helpers.js +0 -0
  602. /package/lib/{Table → components/Table}/features/columnsSelection/index.d.ts +0 -0
  603. /package/lib/{Table → components/Table}/features/columnsSelection/index.js +0 -0
  604. /package/lib/{Tabs → components/Tabs}/TabContext.d.ts +0 -0
  605. /package/lib/{Tabs → components/Tabs}/TabContext.js +0 -0
  606. /package/lib/{Tabs → components/Tabs}/TabList.d.ts +0 -0
  607. /package/lib/{Tabs → components/Tabs}/TabList.module.scss +0 -0
  608. /package/lib/{Tabs → components/Tabs}/TabPanel.module.scss +0 -0
  609. /package/lib/{Tabs → components/Tabs}/index.d.ts +0 -0
  610. /package/lib/{Tabs → components/Tabs}/index.js +0 -0
  611. /package/lib/{TextAreaFormik.js → components/TextAreaFormik.js} +0 -0
  612. /package/lib/{TimeField.module.scss → components/TimeField.module.scss} +0 -0
  613. /package/lib/{TimeFieldFormik.js → components/TimeFieldFormik.js} +0 -0
package/README.md CHANGED
@@ -1,13 +1,230 @@
1
- # `@hazelcast/ui`
1
+ # Hazelcast Hive
2
2
 
3
- Hazelcast design system components. Available live at https://master--5f80b6aa3ceb290022dfea61.chromatic.com/
3
+ ![](./hive.png)
4
+
5
+ Design system built with A11Y in mind. Developed as a [Lerna](https://lerna.js.org/) monorepo with shared frontend libraries for a variety of Hazelcast product offerings.
6
+ **Design system is available live at URL**: https://5f80b6aa3ceb290022dfea61-tultjjrhhk.chromatic.com/?path=/story/getting-started-intro--page
4
7
 
5
8
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
6
9
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
7
10
 
8
- **Table of Contents** _generated with [DocToc](https://github.com/thlorenz/doctoc)_
9
-
10
- - [`@hazelcast/ui`](#hazelcastui)
11
- - [Usage](#usage)
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Global CSS](#global-css)
14
+ - [SSR](#ssr)
15
+ - [Stable IDs](#stable-ids)
16
+ - [Project structure](#project-structure)
17
+ - [Automated visual regression testing](#automated-visual-regression-testing)
18
+ - [How-to](#how-to)
19
+ - [Install PnpM](#install-pnpm)
20
+ - [Setup](#setup)
21
+ - [Under the hood](#under-the-hood)
22
+ - [Deploy](#deploy)
23
+ - [Add a new shared dependency](#add-a-new-shared-dependency)
24
+ - [Add a new local dependency (for one package only)](#add-a-new-local-dependency-for-one-package-only)
25
+ - [Make changes to several packages and test it](#make-changes-to-several-packages-and-test-it)
26
+ - [Run storybook for development](#run-storybook-for-development)
27
+ - [Run linting](#run-linting)
28
+ - [Run unit tests](#run-unit-tests)
29
+ - [Run visual regression tests](#run-visual-regression-tests)
30
+ - [Approve the updated for visual regression test screenshots](#approve-the-updated-for-visual-regression-test-screenshots)
31
+ - [Run all checks at once](#run-all-checks-at-once)
32
+ - [Releasing a new version](#releasing-a-new-version)
12
33
 
13
34
  <!-- END doctoc generated TOC please keep comment here to allow auto update -->
35
+
36
+ ## Installation
37
+
38
+ 1. `npm i @hazelcast/ui` (`npm i @hazelcast/ui@next` - canary version) - set of Hive UI components
39
+ 2. `npm i @hazelcast/services` (`npm i @hazelcast/services@next` - canary version) - Hive services
40
+ 3. `npm i @hazelcast/helpers` (`npm i @hazelcast/helpers@next` - canary version) - Hiver helpers
41
+ 4. `npm i -D @hazelcast/test-helpers` (`npm i -D @hazelcast/test-helpers@next` - canary version) - Hive test helpers
42
+
43
+ ## Usage
44
+
45
+ Be aware, that we compile our TypeScript code to the modern `ES2018` JavaScript. To run it in legacy environment, please, configure webpack or any other bundler accordingly.
46
+ Moreover, we do not do anything about styles (`scss` in our case). We just import them as modules. Please, configure webpack or any other bundler to handle them.
47
+
48
+ The latest version of the design system is accessible at https://master--5f80b6aa3ceb290022dfea61.chromatic.com/.
49
+
50
+ ## Global CSS
51
+
52
+ This library is used from Next.js projects.
53
+ Individual projects should transpile @hazelcast/ui.
54
+ However, Next.js still [forbids](https://github.com/vercel/next.js/blob/master/errors/css-global.md) to import files with .css / .scss extension unless they're in \_app.tsx
55
+
56
+ So please make sure to import the following global styles in your projects if you need them.
57
+
58
+ ```typescript
59
+ import '@hazelcast/ui/styles/datepicker.scss'
60
+ ```
61
+
62
+ or
63
+
64
+ ```typescript
65
+ import '@hazelcast/ui/styles/datepicker.module.scss'
66
+ ```
67
+
68
+ if you need a CSS modules version
69
+
70
+ ## SSR
71
+
72
+ ### Stable IDs
73
+
74
+ We use [`react-uid`](https://github.com/thearnica/react-uid) to generate stable IDs. you'll need `UIDReset` and `UIDFork` (optionally) to properly handle SSR. See the [README](https://github.com/thearnica/react-uid#code-splitting).
75
+
76
+ ## Project structure
77
+
78
+ `packages` contains a list of published packages:
79
+
80
+ - `helpers` (full name `@hazelcast/helpers`)
81
+ - `services` (full name `@hazelcast/services`)
82
+ - `test-helpers` (full name `@hazelcast/test-helpers`)
83
+ - `ui` (full name `@hazelcast/ui`)
84
+
85
+ ### Automated visual regression testing
86
+
87
+ Uses stories from [Storybook](https://storybook.js.org/) as test cases. In other words, any story is going to result in a set of screenshots. Moreover, any story is required to have an associated set of screenshots. Based on [Loki](https://loki.js.org/), which uses headless Chrome to render the screenshots in Docker.
88
+
89
+ ## How-to
90
+
91
+ ### Install [PnpM](https://pnpm.io/installation)
92
+
93
+ ```
94
+ npm install -g pnpm
95
+ ```
96
+
97
+ ### Setup
98
+
99
+ ```
100
+ pnpm i
101
+ ```
102
+
103
+ #### Under the hood
104
+
105
+ It runs a regular `pnpm install` and executes a `postinstall` hook. In that hook it runs:
106
+
107
+ - `pnpm run compile`
108
+ Our child packages are written in TypeScript. To import them from `node_modules` in other packages they must be compiled to JavaScript first.
109
+
110
+ ### Deploy
111
+
112
+ Every commit to `master` is automatically deployed new canary version of the package (`@hazelcast/xxx@next`) by [Hazelcast Jenkins](http://jenkins.hazelcast.com/view/Frontend%20Shared/job/frontend-shared-master/).
113
+
114
+ ### Add a new shared dependency
115
+
116
+ In the root folder run
117
+
118
+ ```
119
+ pnpm add [-D] dependency-name
120
+ ```
121
+
122
+ ### Add a new local dependency (for one package only)
123
+
124
+ In the root folder run (replace @hazelcast/ui with @hazelcast/helpers, @hazelcast/test-helpers or @hazelcast/services if needed)
125
+
126
+ ```
127
+ pnpm add --filter @hazelcast/ui dependency-name
128
+ ```
129
+
130
+ ### Make changes to several packages and test it
131
+
132
+ When Lerna does the bootstrapping, it creates symlinks to the local packages other packages depend on. In our case, `@hazelcast/ui` depends on `@hazelcast/helpers`. Lerna is going to create a symlink `./packages/ui/node_modules/@hazelcast/helpers` that points to `./packages/helpers`. When we change our TypeScript code, the associated compiled JavaScript is not updated automatically. So if we change something in `@hazelcast/helpers` and we want to test how it works in `@hazelcast/ui`, we need to compile our changes in `@hazelcast/helpers`. To do that we have two options:
133
+
134
+ 1. Compile all packages with `pnpm run compile` in the root directory
135
+ 2. Compile a specific package, e.g. `cd packages/helpers && pnpm run compile`
136
+
137
+ Now we can use the updated code in `@hazelcast/ui`.
138
+
139
+ ### Run storybook for development
140
+
141
+ In the root directory
142
+
143
+ ```
144
+ pnpm start
145
+ ```
146
+
147
+ ### Run linting
148
+
149
+ In the root directory
150
+
151
+ ```
152
+ pnpm run lint
153
+ ```
154
+
155
+ ### Run unit tests
156
+
157
+ In the root directory
158
+
159
+ ```
160
+ pnpm test
161
+ ```
162
+
163
+ ### Run visual regression tests
164
+
165
+ In the root directory
166
+
167
+ ```
168
+ pnpm run build-storybook
169
+ pnpm run test:visual
170
+ ```
171
+
172
+ ### Approve the updated for visual regression test screenshots
173
+
174
+ Say, we have changed something in our components.
175
+ First we need to run the visual regression tests to make sure that the change affected how the component is displayed.
176
+
177
+ ```
178
+ pnpm run build-storybook
179
+ pnpm run test:visual
180
+ ```
181
+
182
+ Now, if the test suite failed, we need to go to `packages/ui/.loki` and manually review the screenshots in the `current` folder and the diff in the `difference` folder. If we like what we see, we need to run `pnpm run test:visual:approve` in the `packages/ui` folder. It will update the reference screenshots.
183
+
184
+ ### Run all checks at once
185
+
186
+ ```
187
+ pnpm run verify-all
188
+ ```
189
+
190
+ If you PR passes this check locally, it is almost guaranteed to pass it on the CI.
191
+
192
+ ## Releasing a new version
193
+
194
+ Assuming you're on latest master and the build is alright (`pnpm run build` runs without errors).
195
+
196
+ 1. First we create a release branch for the next version locally (in this case v1.1.0):
197
+
198
+ ```
199
+ git checkout -b release/v1.1.0
200
+ ```
201
+
202
+ We push this new branch to Github:
203
+
204
+ ```
205
+ git push -u origin release/v1.1.0
206
+ ```
207
+
208
+ 2. Then we run:
209
+
210
+ ```
211
+ pnpm exec lerna version 1.1.0
212
+ ```
213
+
214
+ This updates the package versions (in package.json, package-lock.json), creates a commit with necessary tags and pushes to Github automatically.
215
+
216
+ At this point you should create a pull request and merge the new version branch (v1.1.0) to master.
217
+
218
+ 3. Now, after merging this pull request, we have the latest version available on GitHub. And it will be automatically published to npm with the required tags and releases;
219
+
220
+ Wait for a few seconds/minutes (depends on how busy npm is at the time), and you should see the latest version we just released in the list returned by:
221
+
222
+ ```
223
+ pnpm view @hazelcast/ui versions
224
+ ```
225
+
226
+ If something went wrong and npm did not create a new release, then you can manually inform it about our new release:
227
+
228
+ ```
229
+ pnpm exec lerna publish from-git
230
+ ```
@@ -1,5 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
- import { PartialRequired } from '@hazelcast/helpers';
2
+ import { PartialRequired } from '../../src';
3
3
  import { LinkProps } from './Link';
4
4
  import { ToastType } from './Toast';
5
5
  import { IconProps } from './Icon';
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { ChevronRight, X } from 'react-feather';
4
4
  import useKey from 'react-use/lib/useKey';
5
- import { escKeyFilterPredicate } from './utils/keyboard';
5
+ import { escKeyFilterPredicate } from '../utils/keyboard';
6
6
  import { Link } from './Link';
7
7
  import { Button } from './Button';
8
8
  import { ToastIcon } from './Toast';
@@ -42,7 +42,7 @@ export const Alert = ({ type, title, content, actions, className, dismissableByE
42
42
  iconLeftClassName: styles.actionButtonIcon,
43
43
  }
44
44
  : {};
45
- return (React.createElement(Button, { key: aI, kind: "transparent", capitalize: false, className: cn(styles.action, styles.actionButton), bodyClassName: styles.actionButtonBody, onClick: onClick, ...iconLeftProps }, text));
45
+ return (React.createElement(Button, { key: aI, variant: "text", capitalize: false, className: cn(styles.action, styles.actionButton), bodyClassName: styles.actionButtonBody, onClick: onClick, ...iconLeftProps }, text));
46
46
  }
47
47
  const { text, href, ...props } = action;
48
48
  return (React.createElement(Link, { key: aI, href: href, icon: ChevronRight, ariaLabel: "Icon chevron right", className: styles.action, size: "small", ...props }, text));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/components/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,WAAW,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAI/C,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,MAAM,EAAiC,MAAM,UAAU,CAAA;AAChE,OAAO,EAAE,SAAS,EAAa,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,MAAM,MAAM,qBAAqB,CAAA;AA4BxC,MAAM,mBAAmB,GAAG,CAAC,MAAmB,EAA+B,EAAE,CAAE,MAA4B,CAAC,OAAO,KAAK,SAAS,CAAA;AAcrI,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,EACpC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EACP,SAAS,EACT,mBAAmB,GAAG,IAAI,EAC1B,UAAU,EACV,cAAc,EACd,aAAa,GACd,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;IAE3C,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,WAA0B,EAAE,EAAE;QAC7B,IAAI,mBAAmB,EAAE,CAAC;YACxB,UAAU,aAAV,UAAU,uBAAV,UAAU,EAAI,CAAA;YACd,WAAW,CAAC,wBAAwB,EAAE,CAAA;QACxC,CA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'../styles/helpers' as h;
1
+ @use '../../styles/constants' as c;
2
+ @use '../../styles/helpers' as h;
3
3
 
4
4
  // TODO: potential max-height
5
5
  .alert {
@@ -124,6 +124,7 @@
124
124
 
125
125
  &:hover,
126
126
  &.hover {
127
+ /* doiuse-disable text-decoration */
127
128
  text-decoration: underline solid;
128
129
  }
129
130
 
@@ -0,0 +1,16 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { DataTestProp } from '../../../src';
3
+ import { AppHeaderMenuProps } from './AppHeaderMenu';
4
+ import { AppHeaderLogoProps } from './AppHeaderLogo';
5
+ import { SelectClusterProps } from './SelectCluster';
6
+ export interface AppHeaderProps extends DataTestProp {
7
+ name: ReactNode;
8
+ className?: string;
9
+ children?: ReactNode;
10
+ asideContent?: ReactNode;
11
+ environment?: 'production';
12
+ logoProps: AppHeaderLogoProps;
13
+ clusterSelectProps?: SelectClusterProps;
14
+ menuContent?: AppHeaderMenuProps['children'];
15
+ }
16
+ export declare const AppHeader: ({ name, className, children, environment, clusterSelectProps, logoProps, menuContent, asideContent, "data-test": dataTest, }: AppHeaderProps) => React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import cls from 'classnames';
3
+ import { EnvironmentBadge } from './EnvironmentBadge';
4
+ import { AppHeaderMenu } from './AppHeaderMenu';
5
+ import { AppHeaderLogo } from './AppHeaderLogo';
6
+ import { SelectCluster } from './SelectCluster';
7
+ import styles from './AppHeader.module.scss';
8
+ export const AppHeader = ({ name, className, children, environment, clusterSelectProps, logoProps, menuContent, asideContent, 'data-test': dataTest = 'app-header', }) => (React.createElement("header", { "data-test": dataTest, className: cls(styles.root, className) },
9
+ React.createElement(AppHeaderLogo, { ...logoProps }),
10
+ React.createElement("span", { className: styles.name }, name),
11
+ clusterSelectProps && React.createElement(SelectCluster, { ...clusterSelectProps }),
12
+ children,
13
+ environment && React.createElement(EnvironmentBadge, { environment: environment }),
14
+ React.createElement("div", { className: styles.aside },
15
+ asideContent,
16
+ menuContent && React.createElement(AppHeaderMenu, { separator: !!asideContent }, menuContent))));
17
+ //# sourceMappingURL=AppHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppHeader.js","sourceRoot":"","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AACxC,OAAO,GAAG,MAAM,YAAY,CAAA;AAG5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAA;AAEnE,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAa5C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EAAE,QAAQ,GAAG,YAAY,GACrB,EAAE,EAAE,CAAC,CACpB,6CAAmB,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;IACjE,oBAAC,aAAa,OAAK,SAAS,GAAI;IAChC,8BAAM,SAAS,EAAE,MAAM,CAAC,IAAI,IAAG,IAAI,CAAQ;IAC1C,kBAAkB,IAAI,oBAAC,aAAa,OAAK,kBAAkB,GAAI;IAC/D,QAAQ;IACR,WAAW,IAAI,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI;IAC9D,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK;QACzB,YAAY;QACZ,WAAW,IAAI,oBAAC,aAAa,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,IAAG,WAAW,CAAiB,CACnF,CACC,CACV,CAAA"}
@@ -0,0 +1,29 @@
1
+ @use '../../../styles/constants' as c;
2
+
3
+ .root {
4
+ background: c.$colorBrandSecondary;
5
+ color: c.$colorNeutralLighter;
6
+ display: flex;
7
+ align-items: center;
8
+ height: 59px;
9
+ box-sizing: border-box;
10
+ flex-direction: row;
11
+ font-size: c.$fontSizeBodySmall;
12
+ width: 100%;
13
+ padding: 0 c.$grid * 5;
14
+ overflow-x: auto;
15
+ flex-shrink: 0;
16
+ gap: c.$grid * 7.5;
17
+ }
18
+
19
+ .name {
20
+ color: c.$colorBrandPrimary;
21
+ font-weight: 600;
22
+ }
23
+
24
+ .aside {
25
+ display: flex;
26
+ align-items: center;
27
+ margin-left: auto;
28
+ gap: c.$grid * 4;
29
+ }
@@ -0,0 +1,12 @@
1
+ import React, { ComponentType, HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
2
+ import { DataTestProp } from '../../../../src';
3
+ export interface LinkProps extends DataTestProp {
4
+ className?: string;
5
+ children: ReactNode;
6
+ }
7
+ export interface AppHeaderLogoProps {
8
+ wrapperProps?: HTMLAttributes<HTMLDivElement>;
9
+ imgProps?: ImgHTMLAttributes<HTMLImageElement>;
10
+ LinkComponent: ComponentType<LinkProps>;
11
+ }
12
+ export declare const AppHeaderLogo: ({ imgProps, wrapperProps, LinkComponent }: AppHeaderLogoProps) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import cls from 'classnames';
3
+ import styles from './AppHeaderLogo.module.scss';
4
+ export const AppHeaderLogo = ({ imgProps, wrapperProps, LinkComponent }) => (React.createElement("div", { ...wrapperProps, className: cls(styles.root, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className) },
5
+ React.createElement(LinkComponent, { className: styles.link, "data-test": "logo-link" },
6
+ React.createElement("img", { alt: "Home", src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTU1IiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMTU1IDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciP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YzQzg2LjIzNjQgMTcuNDQ5MyA4NS42NTI4IDE2Ljg2OTMgODQuOTMxNCAxNi44NjkzTDg0LjkzMjcgMTYuODcxOVoiIGZpbGw9IiNGMEY2RkYiLz4KPHBhdGggZD0iTTE1Mi4wMDUgMC4zMjAxMjhIMTQxLjk0NkMxNDEuMjI2IDAuMzIwMTI4IDE0MC42NDEgMC45MDAxMDUgMTQwLjY0MSAxLjYxNzA3QzE0MC42NDEgMi4zMzQwNCAxNDEuMjI0IDIuOTE0MDIgMTQxLjk0NiAyLjkxNDAySDE0NS42MlYxOC4xMjAyQzE0NS42MiAxOC44NjQgMTQ2LjIyNyAxOS40NjcxIDE0Ni45NzUgMTkuNDY3MUMxNDcuNzI0IDE5LjQ2NzEgMTQ4LjMzMSAxOC44NjQgMTQ4LjMzMSAxOC4xMjAyVjIuOTEyNzRIMTUyLjAwNUMxNTIuNzI1IDIuOTEyNzQgMTUzLjMxIDIuMzMyNzYgMTUzLjMxIDEuNjE1NzlDMTUzLjMxIDAuODk4ODI1IDE1Mi43MjYgMC4zMTg4NDggMTUyLjAwNSAwLjMxODg0OFYwLjMyMDEyOFoiIGZpbGw9IiNGMEY2RkYiLz4KPC9zdmc+Cg==", ...imgProps }))));
7
+ //# sourceMappingURL=AppHeaderLogo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppHeaderLogo.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/AppHeaderLogo/AppHeaderLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsE,MAAM,OAAO,CAAA;AAC1F,OAAO,GAAG,MAAM,YAAY,CAAA;AAG5B,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAahD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAsB,EAAE,EAAE,CAAC,CAC9F,gCAAS,YAAY,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC;IACzE,oBAAC,aAAa,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,eAAY,WAAW;QAC1D,6BACE,GAAG,EAAC,MAAM,EACV,GAAG,EAAC,g7RAAg7R,KACh7R,QAAQ,GACZ,CACY,CACZ,CACP,CAAA"}
@@ -0,0 +1,29 @@
1
+ @use '../../../../styles/helpers' as h;
2
+
3
+ .root {
4
+ flex: 0 0 auto;
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ height: 20px;
9
+ overflow: hidden;
10
+
11
+ .link {
12
+ width: 100%;
13
+ height: 100%;
14
+ max-height: 100%;
15
+
16
+ &:focus {
17
+ outline: none;
18
+
19
+ @include h.outlineSimple;
20
+ }
21
+
22
+ img {
23
+ height: auto;
24
+ width: auto;
25
+ max-width: 100%;
26
+ max-height: 100%;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1 @@
1
+ export * from './AppHeaderLogo';
@@ -0,0 +1,2 @@
1
+ export * from './AppHeaderLogo';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/AppHeaderLogo/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface AppHeaderMenuProps {
3
+ separator?: boolean;
4
+ children: (props: {
5
+ onClose: () => void;
6
+ }) => ReactNode;
7
+ }
8
+ export declare const AppHeaderMenu: ({ separator, children }: AppHeaderMenuProps) => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React, { useState } from 'react';
2
+ import { Menu as MenuIcon } from 'react-feather';
3
+ import cn from 'classnames';
4
+ import { Button } from '../../Button';
5
+ import { Popover } from '../../Popover';
6
+ import { useOpenCloseState } from '../../../hooks';
7
+ import styles from './AppHeaderMenu.module.scss';
8
+ export const AppHeaderMenu = ({ separator, children }) => {
9
+ const [anchorElement, setAnchorElement] = useState();
10
+ const { isOpen, toggle, close } = useOpenCloseState();
11
+ return (React.createElement("div", { className: cn(styles.root, { [styles.separator]: separator }) },
12
+ React.createElement(Button, { variant: "text", color: "light", iconSize: "medium", onClick: toggle, capitalize: false, iconRight: MenuIcon, ref: setAnchorElement, "data-test": "app-header-menu-toggle", iconRightAriaLabel: "menu icon", className: styles.toggleButton }, "Menu"),
13
+ React.createElement(Popover, { open: isOpen, anchorElement: anchorElement, onClose: close, className: styles.content }, children({ onClose: close }))));
14
+ };
15
+ //# sourceMappingURL=AppHeaderMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppHeaderMenu.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/AppHeaderMenu/AppHeaderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAOhD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC3E,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,EAAsB,CAAA;IACxE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAErD,OAAO,CACL,6BAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;QAChE,oBAAC,MAAM,IACL,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,KAAK,EACjB,SAAS,EAAE,QAAQ,EACnB,GAAG,EAAE,gBAAgB,eACX,wBAAwB,EAClC,kBAAkB,EAAC,WAAW,EAC9B,SAAS,EAAE,MAAM,CAAC,YAAY,WAGvB;QACT,oBAAC,OAAO,IAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,IAC3F,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CACrB,CACN,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ @use '../../../../styles/constants' as c;
2
+
3
+ .root {
4
+ display: flex;
5
+ align-items: center;
6
+ }
7
+
8
+ .separator {
9
+ border-left: 1px solid c.$colorNeutralLight;
10
+ }
11
+
12
+ .content {
13
+ padding: c.$grid * 2;
14
+ color: c.$colorNeutralLighter;
15
+ background: c.$colorBrandSecondary;
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: start;
19
+ gap: c.$grid * 2;
20
+ }
@@ -0,0 +1 @@
1
+ export * from './AppHeaderMenu';
@@ -0,0 +1,2 @@
1
+ export * from './AppHeaderMenu';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/AppHeaderMenu/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface EnvironmentBadgeProps {
3
+ environment: string;
4
+ }
5
+ export declare const EnvironmentBadge: ({ environment }: EnvironmentBadgeProps) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Box } from 'react-feather';
3
+ import { Icon } from '../../Icon';
4
+ import styles from './EnvironmentBadge.module.scss';
5
+ export const EnvironmentBadge = ({ environment }) => {
6
+ return (React.createElement("span", { className: styles.root, "data-test": "environment-badge" },
7
+ React.createElement(Icon, { icon: Box }),
8
+ environment));
9
+ };
10
+ //# sourceMappingURL=EnvironmentBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentBadge.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/EnvironmentBadge/EnvironmentBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,MAAM,MAAM,gCAAgC,CAAA;AAMnD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,WAAW,EAAyB,EAAE,EAAE;IACzE,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,IAAI,eAAY,mBAAmB;QACzD,oBAAC,IAAI,IAAC,IAAI,EAAE,GAAG,GAAI;QAClB,WAAW,CACP,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,13 @@
1
+ @use '../../../../styles/constants' as c;
2
+
3
+ .root {
4
+ display: inline-flex;
5
+ align-items: center;
6
+ gap: c.$grid * 2;
7
+ color: #000;
8
+ background: c.$colorError;
9
+ border-radius: c.$grid * 3.5;
10
+ padding: 0 c.$grid * 3;
11
+ height: c.$grid * 7;
12
+ text-transform: capitalize;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './EnvironmentBadge';
@@ -0,0 +1,2 @@
1
+ export * from './EnvironmentBadge';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/EnvironmentBadge/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ export type SelectClusterProps = {
3
+ clusterVersions?: Record<string, string | null> | null;
4
+ clusterName: string | null;
5
+ clusterNames: string[] | null;
6
+ isReadOnly?: boolean;
7
+ onChange: (value: string | null) => void;
8
+ };
9
+ export declare const SelectCluster: FC<SelectClusterProps>;
@@ -0,0 +1,37 @@
1
+ import cn from 'classnames';
2
+ import React, { useMemo } from 'react';
3
+ import { CheckCircle } from 'react-feather';
4
+ import { SelectField } from '../../Select';
5
+ import { CenteredLoader } from '../../CenteredLoader';
6
+ import styles from './SelectCluster.module.scss';
7
+ const getSafeValue = (clusterName, clusterNames) => {
8
+ if (!(clusterNames === null || clusterNames === void 0 ? void 0 : clusterNames.length)) {
9
+ return { status: 'disabled', value: 'No Clusters' };
10
+ }
11
+ if (!clusterName) {
12
+ return {
13
+ status: 'disconnected',
14
+ value: 'Select Cluster',
15
+ };
16
+ }
17
+ return {
18
+ status: clusterNames.includes(clusterName) ? 'connected' : 'disconnected',
19
+ value: clusterName,
20
+ };
21
+ };
22
+ export const SelectCluster = ({ clusterVersions, clusterName, clusterNames, isReadOnly, onChange }) => {
23
+ const options = useMemo(() => (clusterNames !== null && clusterNames !== void 0 ? clusterNames : []).map((name) => ({
24
+ label: name,
25
+ value: name,
26
+ trailingNote: clusterVersions && clusterVersions[name] ? (React.createElement("span", { "data-test": "cluster-version" }, clusterVersions[name])) : (React.createElement(CenteredLoader, { size: "small" })),
27
+ })), [clusterVersions, clusterNames]);
28
+ const { status, value } = getSafeValue(clusterName, clusterNames);
29
+ const disabled = isReadOnly || status === 'disabled';
30
+ return (React.createElement(SelectField, { name: "cluster", label: "Select Cluster", showAriaLabel: true, size: "small", "data-test": "select-cluster", className: cn(styles.select, { [styles.disabled]: disabled }), classNames: {
31
+ menuPortal: () => styles.menuPortal,
32
+ }, disabled: disabled, iconLeft: CheckCircle, iconLeftAriaLabel: "Select cluster", iconLeftContainerClassName: styles.selectIconLeftContainer, iconLeftClassName: cn(styles.selectIconLeft, {
33
+ [styles.disabled]: status === 'disabled',
34
+ [styles.disconnected]: status === 'disconnected',
35
+ }), isClearable: false, onChange: onChange, options: options, value: value }));
36
+ };
37
+ //# sourceMappingURL=SelectCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectCluster.js","sourceRoot":"","sources":["../../../../src/components/AppHeader/SelectCluster/SelectCluster.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EAAE,EAAM,OAAO,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAEhD,MAAM,YAAY,GAAG,CACnB,WAA0B,EAC1B,YAA6B,EAI7B,EAAE;IACF,IAAI,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,CAAA,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA;IACrD,CAAC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO;YACL,MAAM,EAAE,cAAc;YACtB,KAAK,EAAE,gBAAgB;SACxB,CAAA;IACH,CAAC;IAED,OAAO;QACL,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc;QACzE,KAAK,EAAE,WAAW;KACnB,CAAA;AACH,CAAC,CAAA;AAUD,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5H,MAAM,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE,CACH,CAAC,YAAY,aAAZ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