@databiosphere/findable-ui 24.0.0 → 25.1.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 (291) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +51 -0
  3. package/lib/common/entities.d.ts +1 -0
  4. package/lib/components/DataDictionary/components/Entities/constants.d.ts +2 -2
  5. package/lib/components/DataDictionary/components/Entities/constants.js +1 -1
  6. package/lib/components/DataDictionary/components/Entities/entities.js +3 -3
  7. package/lib/components/DataDictionary/components/Entity/constants.d.ts +2 -2
  8. package/lib/components/DataDictionary/components/Entity/constants.js +1 -1
  9. package/lib/components/DataDictionary/components/Entity/entity.js +4 -4
  10. package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +2 -2
  11. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.js +1 -1
  12. package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +2 -1
  13. package/lib/components/Filter/components/Filter/filter.js +2 -1
  14. package/lib/components/Filter/components/FilterLabel/filterLabel.js +2 -2
  15. package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
  16. package/lib/components/Filter/components/Filters/filters.js +2 -1
  17. package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +3 -2
  18. package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.js +2 -2
  19. package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +3 -2
  20. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +2 -1
  21. package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +2 -2
  22. package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +3 -2
  23. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
  24. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +17 -0
  25. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +13 -0
  26. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.js +12 -0
  27. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +9 -0
  28. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +9 -0
  29. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.d.ts +3 -0
  30. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +86 -0
  31. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +105 -0
  32. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +196 -0
  33. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.d.ts +2 -0
  34. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.js +7 -0
  35. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.d.ts +3 -0
  36. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.js +29 -0
  37. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.d.ts +1 -0
  38. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.js +1 -0
  39. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.d.ts +4 -0
  40. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.js +70 -0
  41. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.d.ts +7 -0
  42. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +19 -0
  43. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.d.ts +6 -0
  44. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.js +1 -0
  45. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.d.ts +1 -0
  46. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.js +1 -0
  47. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.d.ts +7 -0
  48. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.js +1 -0
  49. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.d.ts +3 -0
  50. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.js +11 -0
  51. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.d.ts +3 -0
  52. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +96 -0
  53. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.d.ts +6 -0
  54. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +16 -0
  55. package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +6 -0
  56. package/lib/components/Index/components/EntitiesView/components/ChartView/types.js +1 -0
  57. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.d.ts +14 -0
  58. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.js +21 -0
  59. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +2 -0
  60. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +16 -0
  61. package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +3 -0
  62. package/lib/components/Index/components/EntitiesView/components/EntityList/types.js +1 -0
  63. package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +2 -0
  64. package/lib/components/Index/components/EntitiesView/entitiesView.js +15 -0
  65. package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +3 -0
  66. package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +20 -0
  67. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +2 -0
  68. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.js +14 -0
  69. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.d.ts +13 -0
  70. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.js +5 -0
  71. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +8 -0
  72. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +50 -0
  73. package/lib/components/Index/components/EntitiesView/types.d.ts +8 -0
  74. package/lib/components/Index/components/EntitiesView/types.js +1 -0
  75. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +2 -1
  76. package/lib/components/Index/index.d.ts +2 -13
  77. package/lib/components/Index/index.js +6 -2
  78. package/lib/components/Index/index.stories.js +3 -2
  79. package/lib/components/Index/types.d.ts +12 -0
  80. package/lib/components/Index/types.js +1 -0
  81. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.d.ts +1 -1
  82. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +5 -4
  83. package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.d.ts +6 -0
  84. package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.js +18 -0
  85. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.js +3 -3
  86. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +1 -1
  87. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
  88. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.js +2 -2
  89. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.js +2 -2
  90. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
  91. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.js +5 -3
  92. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.d.ts +5 -1
  93. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -3
  94. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.js +2 -2
  95. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.js +2 -2
  96. package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.js +2 -2
  97. package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +2 -1
  98. package/lib/components/Layout/components/Sidebar/sidebar.js +4 -1
  99. package/lib/components/Loading/loading.d.ts +2 -1
  100. package/lib/components/Loading/loading.js +2 -2
  101. package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
  102. package/lib/components/Login/components/Section/components/Consent/consent.js +3 -3
  103. package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
  104. package/lib/components/Login/components/Section/components/Consent/consent.styles.js +2 -2
  105. package/lib/components/Login/components/Section/components/Consent/types.d.ts +2 -2
  106. package/lib/components/NoResults/noResults.d.ts +1 -8
  107. package/lib/components/NoResults/noResults.js +9 -8
  108. package/lib/components/NoResults/noResults.styles.d.ts +2 -2
  109. package/lib/components/NoResults/noResults.styles.js +4 -2
  110. package/lib/components/NoResults/types.d.ts +8 -0
  111. package/lib/components/NoResults/types.js +1 -0
  112. package/lib/components/Plot/components/BarX/barX.d.ts +2 -0
  113. package/lib/components/Plot/components/BarX/barX.js +13 -0
  114. package/lib/components/Plot/components/BarX/types.d.ts +5 -0
  115. package/lib/components/Plot/components/BarX/types.js +1 -0
  116. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.js +2 -2
  117. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +1 -1
  118. package/lib/components/Stepper/components/Step/step.styles.d.ts +1 -1
  119. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.js +2 -2
  120. package/lib/components/Table/components/Pagination/pagination.js +6 -6
  121. package/lib/components/Table/components/PaginationSummary/paginationSummary.js +2 -1
  122. package/lib/components/Table/components/TableHead/tableHead.js +2 -2
  123. package/lib/components/Table/components/TableRows/tableRows.js +7 -3
  124. package/lib/components/Table/table.js +11 -11
  125. package/lib/components/TableCreator/tableCreator.js +1 -6
  126. package/lib/components/common/AnchorLink/anchorLink.js +2 -2
  127. package/lib/components/common/Breadcrumbs/breadcrumbs.js +2 -2
  128. package/lib/components/common/Breadcrumbs/typeGuard.d.ts +13 -0
  129. package/lib/components/common/Breadcrumbs/typeGuard.js +23 -0
  130. package/lib/components/common/Button/components/DropdownButton/dropdownButton.js +2 -2
  131. package/lib/components/common/Button/components/NavigationButton/navigationButton.js +2 -2
  132. package/lib/components/common/CopyToClipboard/copyToClipboard.js +2 -2
  133. package/lib/components/common/Dialog/components/DialogTitle/dialogTitle.js +2 -2
  134. package/lib/components/common/Drawer/components/DrawerTitle/drawerTitle.js +2 -2
  135. package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
  136. package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.d.ts +2 -3
  137. package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.js +3 -3
  138. package/lib/components/common/Form/components/Select/select.js +1 -2
  139. package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
  140. package/lib/components/common/Form/components/UploadFile/uploadFile.js +2 -2
  141. package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
  142. package/lib/components/common/Input/input.styles.d.ts +1 -1
  143. package/lib/components/common/LoginDialog/loginDialog.styles.js +1 -1
  144. package/lib/components/common/Paper/paper.d.ts +2 -1
  145. package/lib/components/common/Paper/paper.js +2 -2
  146. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +2 -3
  147. package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.d.ts +2 -0
  148. package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.js +10 -0
  149. package/lib/components/types.d.ts +3 -0
  150. package/lib/config/entities.d.ts +2 -0
  151. package/lib/hooks/useCategoryFilter.js +1 -0
  152. package/lib/hooks/useResizeObserver.d.ts +2 -1
  153. package/lib/hooks/useResizeObserver.js +5 -2
  154. package/lib/styles/common/mui/palette.d.ts +47 -0
  155. package/lib/styles/common/mui/palette.js +47 -0
  156. package/lib/tests/testIds.d.ts +18 -0
  157. package/lib/tests/testIds.js +18 -0
  158. package/lib/theme/common/components.js +4 -0
  159. package/lib/theme/common/typography.d.ts +1 -1
  160. package/lib/theme/theme.js +5 -3
  161. package/lib/views/ExploreView/exploreView.js +6 -25
  162. package/package.json +6 -4
  163. package/src/common/entities.ts +1 -0
  164. package/src/components/DataDictionary/components/Entities/constants.ts +2 -2
  165. package/src/components/DataDictionary/components/Entities/entities.tsx +4 -4
  166. package/src/components/DataDictionary/components/Entity/constants.ts +2 -2
  167. package/src/components/DataDictionary/components/Entity/entity.tsx +6 -6
  168. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.tsx +1 -1
  169. package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +7 -1
  170. package/src/components/Filter/components/Filter/filter.tsx +2 -0
  171. package/src/components/Filter/components/FilterLabel/filterLabel.tsx +2 -2
  172. package/src/components/Filter/components/Filters/filters.tsx +7 -1
  173. package/src/components/Filter/components/HighlightedLabel/highlightedLabel.tsx +4 -2
  174. package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
  175. package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +2 -0
  176. package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +2 -2
  177. package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
  178. package/src/components/Index/components/EntitiesView/components/ChartView/chartView.styles.ts +14 -0
  179. package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +38 -0
  180. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +13 -0
  181. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +104 -0
  182. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +229 -0
  183. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.ts +30 -0
  184. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.tsx +16 -0
  185. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.ts +1 -0
  186. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.ts +74 -0
  187. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +29 -0
  188. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.ts +9 -0
  189. package/src/components/Index/components/EntitiesView/components/ChartView/constants.ts +1 -0
  190. package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.ts +8 -0
  191. package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.ts +29 -0
  192. package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +99 -0
  193. package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +25 -0
  194. package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +7 -0
  195. package/src/components/Index/components/EntitiesView/components/ChartView/utils.ts +26 -0
  196. package/src/components/Index/components/EntitiesView/components/EntityList/entityList.tsx +29 -0
  197. package/src/components/Index/components/EntitiesView/components/EntityList/types.ts +3 -0
  198. package/src/components/Index/components/EntitiesView/entitiesView.styles.ts +21 -0
  199. package/src/components/Index/components/EntitiesView/entitiesView.tsx +30 -0
  200. package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.ts +15 -0
  201. package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.ts +16 -0
  202. package/src/components/Index/components/EntitiesView/stories/entitiesView.stories.tsx +76 -0
  203. package/src/components/Index/components/EntitiesView/types.ts +9 -0
  204. package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +2 -0
  205. package/src/components/Index/index.stories.tsx +3 -2
  206. package/src/components/Index/index.tsx +15 -15
  207. package/src/components/Index/types.ts +13 -0
  208. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +19 -14
  209. package/src/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.tsx +24 -0
  210. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx +3 -3
  211. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.tsx +2 -2
  212. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.tsx +2 -2
  213. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +8 -3
  214. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.tsx +5 -2
  215. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.tsx +2 -2
  216. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.tsx +2 -2
  217. package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.tsx +2 -2
  218. package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +2 -0
  219. package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -1
  220. package/src/components/Loading/loading.tsx +11 -3
  221. package/src/components/Login/components/Section/components/Consent/consent.styles.ts +2 -2
  222. package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -4
  223. package/src/components/Login/components/Section/components/Consent/types.ts +2 -2
  224. package/src/components/NoResults/noResults.styles.ts +4 -2
  225. package/src/components/NoResults/noResults.tsx +16 -22
  226. package/src/components/NoResults/types.ts +13 -0
  227. package/src/components/Plot/components/BarX/barX.tsx +20 -0
  228. package/src/components/Plot/components/BarX/types.ts +6 -0
  229. package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +1 -1
  230. package/src/components/Stepper/components/Step/components/StepContent/stepContent.tsx +2 -2
  231. package/src/components/Support/components/SupportRequest/components/Dialog/dialog.tsx +2 -2
  232. package/src/components/Table/components/Pagination/pagination.tsx +6 -6
  233. package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +2 -1
  234. package/src/components/Table/components/TableHead/tableHead.tsx +2 -2
  235. package/src/components/Table/components/TableRows/tableRows.tsx +10 -3
  236. package/src/components/Table/table.tsx +42 -38
  237. package/src/components/TableCreator/tableCreator.tsx +8 -18
  238. package/src/components/common/AnchorLink/anchorLink.tsx +2 -2
  239. package/src/components/common/Breadcrumbs/breadcrumbs.tsx +2 -2
  240. package/src/components/common/Breadcrumbs/typeGuard.ts +24 -0
  241. package/src/components/common/Button/components/DropdownButton/dropdownButton.tsx +2 -2
  242. package/src/components/common/Button/components/NavigationButton/navigationButton.tsx +2 -2
  243. package/src/components/common/CopyToClipboard/copyToClipboard.tsx +2 -2
  244. package/src/components/common/Dialog/components/DialogTitle/dialogTitle.tsx +2 -2
  245. package/src/components/common/Drawer/components/DrawerTitle/drawerTitle.tsx +2 -2
  246. package/src/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.tsx +5 -6
  247. package/src/components/common/Form/components/Select/select.tsx +1 -8
  248. package/src/components/common/Form/components/UploadFile/uploadFile.tsx +2 -2
  249. package/src/components/common/LoginDialog/loginDialog.styles.ts +1 -1
  250. package/src/components/common/Paper/paper.tsx +9 -3
  251. package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +2 -3
  252. package/src/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.ts +17 -0
  253. package/src/components/types.ts +4 -0
  254. package/src/config/entities.ts +2 -0
  255. package/src/hooks/useCategoryFilter.ts +1 -0
  256. package/src/hooks/useResizeObserver.ts +5 -2
  257. package/src/styles/common/mui/palette.ts +47 -0
  258. package/src/tests/testIds.ts +18 -0
  259. package/src/theme/common/components.ts +4 -0
  260. package/src/theme/common/typography.ts +1 -1
  261. package/src/theme/theme.ts +46 -42
  262. package/src/views/ExploreView/exploreView.tsx +10 -43
  263. package/tests/chart.test.tsx +170 -0
  264. package/tests/chartView.test.tsx +36 -0
  265. package/tests/entitiesView.test.tsx +32 -0
  266. package/tests/setup.ts +13 -0
  267. package/types/data-explorer-ui.d.ts +36 -80
  268. package/lib/components/Index/components/Cell/cell.d.ts +0 -7
  269. package/lib/components/Index/components/Cell/cell.js +0 -10
  270. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -8
  271. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +0 -57
  272. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +0 -4
  273. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +0 -10
  274. package/lib/components/Index/components/NTag/nTag.d.ts +0 -10
  275. package/lib/components/Index/components/NTag/nTag.js +0 -8
  276. package/lib/components/Index/components/NTagCell/nTagCell.d.ts +0 -11
  277. package/lib/components/Index/components/NTagCell/nTagCell.js +0 -29
  278. package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +0 -16
  279. package/lib/components/Index/components/NTagCell/nTagCell.stories.js +0 -16
  280. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +0 -6
  281. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +0 -10
  282. package/lib/components/TableCreator/tableCreator.styles.d.ts +0 -4
  283. package/lib/components/TableCreator/tableCreator.styles.js +0 -4
  284. package/src/components/Index/components/Cell/cell.tsx +0 -22
  285. package/src/components/Index/components/NTag/components/Tooltip/tooltip.styles.ts +0 -11
  286. package/src/components/Index/components/NTag/components/Tooltip/tooltip.tsx +0 -90
  287. package/src/components/Index/components/NTag/nTag.tsx +0 -25
  288. package/src/components/Index/components/NTagCell/nTagCell.stories.tsx +0 -22
  289. package/src/components/Index/components/NTagCell/nTagCell.tsx +0 -74
  290. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.tsx +0 -16
  291. package/src/components/TableCreator/tableCreator.styles.ts +0 -5
@@ -13,9 +13,10 @@ export declare enum LOADING_PANEL_STYLE {
13
13
  }
14
14
  export interface LoadingProps {
15
15
  appear?: boolean;
16
+ autoPosition?: boolean;
16
17
  iconSize?: SvgIconProps["fontSize"];
17
18
  loading: boolean;
18
19
  panelStyle?: LoadingPanelStyle;
19
20
  text?: string;
20
21
  }
21
- export declare const Loading: ({ appear, iconSize, loading, panelStyle, text, }: LoadingProps) => JSX.Element | null;
22
+ export declare const Loading: ({ appear, autoPosition, iconSize, loading, panelStyle, text, }: LoadingProps) => JSX.Element | null;
@@ -10,8 +10,8 @@ export var LOADING_PANEL_STYLE;
10
10
  (function (LOADING_PANEL_STYLE) {
11
11
  LOADING_PANEL_STYLE["INHERIT"] = "INHERIT";
12
12
  })(LOADING_PANEL_STYLE || (LOADING_PANEL_STYLE = {}));
13
- export const Loading = ({ appear = true, iconSize = "large", loading, panelStyle = PAPER_PANEL_STYLE.ROUNDED, text, }) => {
14
- return (React.createElement(Fade, { appear: appear, in: loading, mountOnEnter: true, onEnter: (node) => onFadeEnter(node), onExited: (node) => onFadeExited(node), timeout: 300, unmountOnExit: true },
13
+ export const Loading = ({ appear = true, autoPosition = true, iconSize = "large", loading, panelStyle = PAPER_PANEL_STYLE.ROUNDED, text, }) => {
14
+ return (React.createElement(Fade, { appear: appear, in: loading, mountOnEnter: true, onEnter: autoPosition ? onFadeEnter : undefined, onExited: autoPosition ? onFadeExited : undefined, timeout: 300, unmountOnExit: true },
15
15
  React.createElement(LoadingPositioner, { panelStyle: panelStyle },
16
16
  React.createElement(LoadingPaper, { panelStyle: panelStyle },
17
17
  React.createElement(LoadingIcon, { color: "primary", fontSize: iconSize }),
@@ -1,5 +1,5 @@
1
1
  export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
3
- }, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
3
+ }, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "loading" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "fullWidth" | "disableElevation" | "disableFocusRipple" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  }, {}, {}>;
@@ -4,11 +4,11 @@ import { TEXT_BODY_400 } from "../../../../../../theme/common/typography";
4
4
  import { CheckedIcon } from "../../../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
5
5
  import { UncheckedErrorIcon } from "../../../../../common/CustomIcon/components/UncheckedErrorIcon/uncheckedErrorIcon";
6
6
  import { UncheckedIcon } from "../../../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
7
- import { StyledGrid2 } from "./consent.styles";
8
- export const Consent = ({ children, className, handleConsent, isDisabled, isError, ...props /* Mui Grid2Props */ }) => {
7
+ import { StyledGrid } from "./consent.styles";
8
+ export const Consent = ({ children, className, handleConsent, isDisabled, isError, ...props /* Mui GridProps */ }) => {
9
9
  if (isDisabled)
10
10
  return null;
11
- return (React.createElement(StyledGrid2, { className: className, ...props },
11
+ return (React.createElement(StyledGrid, { className: className, ...props },
12
12
  React.createElement(Checkbox, { checkedIcon: React.createElement(CheckedIcon, null), icon: isError ? React.createElement(UncheckedErrorIcon, null) : React.createElement(UncheckedIcon, null), onChange: handleConsent }),
13
13
  React.createElement(Typography, { variant: TEXT_BODY_400 }, children)));
14
14
  };
@@ -1,4 +1,4 @@
1
- export declare const StyledGrid2: import("@emotion/styled").StyledComponent<import("@mui/material").GridBaseProps & {
1
+ export declare const StyledGrid: import("@emotion/styled").StyledComponent<import("@mui/material").GridBaseProps & {
2
2
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
3
3
  } & import("@mui/system").SystemProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import styled from "@emotion/styled";
2
- import { Grid2 } from "@mui/material";
3
- export const StyledGrid2 = styled(Grid2) `
2
+ import { Grid } from "@mui/material";
3
+ export const StyledGrid = styled(Grid) `
4
4
  align-items: center;
5
5
  align-self: flex-start;
6
6
  display: flex;
@@ -1,6 +1,6 @@
1
- import { Grid2Props } from "@mui/material";
1
+ import { GridProps } from "@mui/material";
2
2
  import { ReactNode } from "react";
3
3
  import { UseUserConsent } from "../../../../hooks/useUserConsent/types";
4
- export interface ConsentProps extends Grid2Props, Pick<UseUserConsent, "handleConsent">, Pick<UseUserConsent["state"], "isDisabled" | "isError"> {
4
+ export interface ConsentProps extends GridProps, Pick<UseUserConsent, "handleConsent">, Pick<UseUserConsent["state"], "isDisabled" | "isError"> {
5
5
  children: ReactNode;
6
6
  }
@@ -1,9 +1,2 @@
1
- import { ReactNode } from "react";
2
- import { FlatPaper, FluidPaper, RoundedPaper } from "../common/Paper/paper.styles";
3
- export interface NoResultsProps {
4
- actions?: ReactNode;
5
- description?: string;
6
- Paper?: typeof FlatPaper | typeof FluidPaper | typeof RoundedPaper;
7
- title: string;
8
- }
1
+ import { NoResultsProps } from "./types";
9
2
  export declare const NoResults: ({ actions, description, Paper, title, }: NoResultsProps) => JSX.Element;
@@ -1,17 +1,18 @@
1
1
  import { Typography } from "@mui/material";
2
- import React from "react";
2
+ import React, { Fragment } from "react";
3
+ import { TYPOGRAPHY_PROPS } from "../../styles/common/mui/typography";
3
4
  import { SearchOffIcon } from "../common/CustomIcon/components/SearchOffIcon/searchOffIcon";
4
- import { RoundedPaper, } from "../common/Paper/paper.styles";
5
5
  import { SectionTitle } from "../common/Section/components/SectionTitle/sectionTitle";
6
6
  import { SectionActions } from "../common/Section/section.styles";
7
7
  import { PRIORITY, StatusIcon } from "../common/StatusIcon/statusIcon";
8
- import { NoResultsSection, NoResultsSectionContent } from "./noResults.styles";
9
- export const NoResults = ({ actions, description, Paper = RoundedPaper, title, }) => {
10
- return (React.createElement(Paper, null,
11
- React.createElement(NoResultsSection, null,
8
+ import { StyledSection, StyledSectionContent } from "./noResults.styles";
9
+ export const NoResults = ({ actions, description, Paper, title, }) => {
10
+ const StyledPaper = Paper ?? Fragment;
11
+ return (React.createElement(StyledPaper, null,
12
+ React.createElement(StyledSection, null,
12
13
  React.createElement(StatusIcon, { priority: PRIORITY.LOW, StatusIcon: SearchOffIcon }),
13
- React.createElement(NoResultsSectionContent, null,
14
+ React.createElement(StyledSectionContent, null,
14
15
  React.createElement(SectionTitle, { title: title }),
15
- description && (React.createElement(Typography, { color: "ink.light", variant: "text-body-400-2lines" }, description))),
16
+ description && (React.createElement(Typography, { color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, variant: TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_400_2_LINES }, description))),
16
17
  actions && React.createElement(SectionActions, null, actions))));
17
18
  };
@@ -1,10 +1,10 @@
1
- export declare const NoResultsSection: import("@emotion/styled").StyledComponent<{
1
+ export declare const StyledSection: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
5
5
  theme?: import("@emotion/react").Theme;
6
6
  }, {}, {}>;
7
- export declare const NoResultsSectionContent: import("@emotion/styled").StyledComponent<{
7
+ export declare const StyledSectionContent: import("@emotion/styled").StyledComponent<{
8
8
  theme?: import("@emotion/react").Theme;
9
9
  as?: React.ElementType;
10
10
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
@@ -1,10 +1,12 @@
1
1
  import styled from "@emotion/styled";
2
+ import { white } from "../../styles/common/mixins/colors";
2
3
  import { Section, SectionContent } from "../common/Section/section.styles";
3
- export const NoResultsSection = styled(Section) `
4
+ export const StyledSection = styled(Section) `
4
5
  align-items: center;
6
+ background-color: ${white};
5
7
  padding: 40px !important; /* Overrides section padding. */
6
8
  `;
7
- export const NoResultsSectionContent = styled(SectionContent) `
9
+ export const StyledSectionContent = styled(SectionContent) `
8
10
  max-width: 456px;
9
11
  text-align: center;
10
12
  `;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ import { FlatPaper, FluidPaper, RoundedPaper } from "../common/Paper/paper.styles";
3
+ export interface NoResultsProps {
4
+ actions?: ReactNode;
5
+ description?: string;
6
+ Paper: typeof FlatPaper | typeof FluidPaper | typeof RoundedPaper | null;
7
+ title: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { BarXProps } from "./types";
2
+ export declare const BarX: ({ className, options, testId, }: BarXProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import * as Plot from "@observablehq/plot";
2
+ import React, { useEffect, useRef } from "react";
3
+ export const BarX = ({ className, options, testId, }) => {
4
+ const chartRef = useRef(null);
5
+ useEffect(() => {
6
+ if (chartRef.current)
7
+ chartRef.current.innerHTML = "";
8
+ const chart = Plot.plot(options);
9
+ chartRef.current?.appendChild(chart);
10
+ return () => chart.remove();
11
+ }, [options]);
12
+ return React.createElement("div", { className: className, "data-testid": testId, ref: chartRef });
13
+ };
@@ -0,0 +1,5 @@
1
+ import { PlotOptions } from "@observablehq/plot";
2
+ import { BaseComponentProps, TestIdProps } from "../../../types";
3
+ export interface BarXProps extends BaseComponentProps, TestIdProps {
4
+ options?: PlotOptions;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { Grid2 } from "@mui/material";
1
+ import { Grid } from "@mui/material";
2
2
  import React from "react";
3
3
  import { StyledStepContent } from "./stepContent.styles";
4
4
  export const StepContent = ({ children, className, ...props /* MuiStepContentProps */ }) => {
5
5
  return (React.createElement(StyledStepContent, { className: className, ...props },
6
- React.createElement(Grid2, null, children)));
6
+ React.createElement(Grid, null, children)));
7
7
  };
@@ -5,7 +5,7 @@ import { sectionPadding } from "../../../../../common/Section/section.styles";
5
5
  export const StyledStepContent = styled(StepContent) `
6
6
  &.MuiStepContent-root {
7
7
  .MuiCollapse-wrapperInner.MuiCollapse-vertical {
8
- > .MuiGrid2-root {
8
+ > .MuiGrid-root {
9
9
  ${sectionPadding};
10
10
  border-top: 1px solid ${smokeMain};
11
11
  display: grid;
@@ -1,5 +1,5 @@
1
1
  export declare const StyledStep: import("@emotion/styled").StyledComponent<import("@mui/material").StepOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, "style" | "className" | "classes" | "children" | "sx" | "disabled" | "expanded" | "active" | "last" | "completed" | "index"> & {
3
+ }, "style" | "className" | "classes" | "children" | "sx" | "disabled" | "expanded" | "index" | "active" | "last" | "completed"> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  }, {}, {}>;
@@ -1,4 +1,4 @@
1
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
1
+ import { CloseRounded } from "@mui/icons-material";
2
2
  import React, { useState, } from "react";
3
3
  import { FeedbackIcon } from "../../../../../common/CustomIcon/components/FeedbackIcon/feedbackIcon";
4
4
  import { Fab, Popover } from "./dialog.styles";
@@ -12,7 +12,7 @@ export const FormDialog = ({ children, setFormSubmitted, }) => {
12
12
  setAnchorEl(null);
13
13
  };
14
14
  return (React.createElement(React.Fragment, null,
15
- React.createElement(Fab, { color: "primary", onClick: toggleOpen, open: open, size: "medium" }, open ? React.createElement(CloseRoundedIcon, null) : React.createElement(FeedbackIcon, { fontSize: "medium" })),
15
+ React.createElement(Fab, { color: "primary", onClick: toggleOpen, open: open, size: "medium" }, open ? React.createElement(CloseRounded, null) : React.createElement(FeedbackIcon, { fontSize: "medium" })),
16
16
  React.createElement(Popover, { anchorEl: anchorEl, anchorOrigin: {
17
17
  horizontal: "right",
18
18
  vertical: -8,
@@ -1,19 +1,19 @@
1
- import EastRoundedIcon from "@mui/icons-material/EastRounded";
2
- import WestRoundedIcon from "@mui/icons-material/WestRounded";
1
+ import { EastRounded, WestRounded } from "@mui/icons-material";
3
2
  import { Typography } from "@mui/material";
4
3
  import React from "react";
4
+ import { TEST_IDS } from "../../../../tests/testIds";
5
5
  import { IconButton } from "../../../common/IconButton/iconButton";
6
6
  import { Stack } from "../../../common/Stack/stack";
7
7
  import { Pagination as TablePagination } from "./pagination.styles";
8
8
  export const Pagination = ({ canNextPage = true, canPreviousPage = true, currentPage, onNextPage, onPreviousPage, totalPage, }) => {
9
- return (React.createElement(TablePagination, null,
10
- React.createElement("div", null,
9
+ return (React.createElement(TablePagination, { "data-testid": TEST_IDS.TABLE_PAGINATION },
10
+ React.createElement("div", { "data-testid": TEST_IDS.TABLE_PAGINATION_PAGE },
11
11
  React.createElement(Typography, { variant: "text-body-400" }, "Page "),
12
12
  React.createElement(Typography, { variant: "text-body-500" },
13
13
  currentPage,
14
14
  " of ",
15
15
  totalPage)),
16
16
  React.createElement(Stack, { direction: "row", gap: 2 },
17
- React.createElement(IconButton, { color: "secondary", disabled: !canPreviousPage, Icon: WestRoundedIcon, onClick: onPreviousPage }),
18
- React.createElement(IconButton, { color: "secondary", disabled: !canNextPage, Icon: EastRoundedIcon, onClick: onNextPage }))));
17
+ React.createElement(IconButton, { color: "secondary", disabled: !canPreviousPage, Icon: WestRounded, onClick: onPreviousPage }),
18
+ React.createElement(IconButton, { color: "secondary", disabled: !canNextPage, Icon: EastRounded, onClick: onNextPage }))));
19
19
  };
@@ -1,8 +1,9 @@
1
1
  import { Fade, Typography } from "@mui/material";
2
2
  import React from "react";
3
+ import { TEST_IDS } from "../../../../tests/testIds";
3
4
  export const PaginationSummary = ({ firstResult, lastResult, totalResult, }) => {
4
5
  return (React.createElement(Fade, { in: totalResult > 0 },
5
- React.createElement("div", null,
6
+ React.createElement("div", { "data-testid": TEST_IDS.TABLE_PAGINATION_RESULTS },
6
7
  React.createElement(Typography, { variant: "text-body-400" }, "Results "),
7
8
  React.createElement(Typography, { variant: "text-body-small-500" },
8
9
  firstResult,
@@ -1,4 +1,4 @@
1
- import SouthRoundedIcon from "@mui/icons-material/SouthRounded";
1
+ import { SouthRounded } from "@mui/icons-material";
2
2
  import { TableHead as MTableHead, TableRow as MTableRow, TableCell, TableSortLabel, } from "@mui/material";
3
3
  import { flexRender } from "@tanstack/react-table";
4
4
  import React, { Fragment } from "react";
@@ -14,6 +14,6 @@ export const TableHead = ({ rowDirection, tableInstance, }) => {
14
14
  const { columnDef, getIsGrouped, getIsSorted } = column;
15
15
  const annotation = columnDef.meta?.annotation;
16
16
  return getIsGrouped() ? null : (React.createElement(TableCell, { key: id, align: getTableCellAlign(column), padding: getTableCellPadding(id) },
17
- React.createElement(Tooltip, { description: annotation?.description, title: annotation?.label }, shouldSortColumn(tableInstance, column) ? (React.createElement(TableSortLabel, { IconComponent: SouthRoundedIcon, active: Boolean(getIsSorted()), direction: getIsSorted() || undefined, disabled: isSortDisabled(tableInstance), onClick: (mouseEvent) => handleToggleSorting(mouseEvent, tableInstance, column) }, flexRender(columnDef.header, getContext()))) : (flexRender(columnDef.header, getContext())))));
17
+ React.createElement(Tooltip, { description: annotation?.description, title: annotation?.label }, shouldSortColumn(tableInstance, column) ? (React.createElement(TableSortLabel, { IconComponent: SouthRounded, active: Boolean(getIsSorted()), direction: getIsSorted() || undefined, disabled: isSortDisabled(tableInstance), onClick: (mouseEvent) => handleToggleSorting(mouseEvent, tableInstance, column) }, flexRender(columnDef.header, getContext()))) : (flexRender(columnDef.header, getContext())))));
18
18
  })))))));
19
19
  };
@@ -1,19 +1,23 @@
1
1
  import { TableCell } from "@mui/material";
2
2
  import { flexRender } from "@tanstack/react-table";
3
3
  import React, { Fragment } from "react";
4
+ import { TEST_IDS } from "../../../../tests/testIds";
4
5
  import { getTableCellAlign, getTableCellPadding, } from "../TableCell/common/utils";
5
6
  import { TableRow } from "../TableRow/tableRow.styles";
6
7
  export const TableRows = ({ rows, virtualizer, }) => {
7
8
  const virtualItems = virtualizer.getVirtualItems();
8
9
  return (React.createElement(Fragment, null, virtualItems.map((virtualRow) => {
9
- const row = rows[virtualRow.index];
10
+ const rowIndex = virtualRow.index;
11
+ const row = rows[rowIndex];
10
12
  const { getIsGrouped, getIsPreview } = row;
11
- return (React.createElement(TableRow, { key: row.id, "data-index": virtualRow.index, isGrouped: getIsGrouped(), isPreview: getIsPreview(), ref: virtualizer.measureElement }, row.getVisibleCells().map((cell) => {
13
+ return (React.createElement(TableRow, { key: row.id, "data-index": rowIndex, isGrouped: getIsGrouped(), isPreview: getIsPreview(), ref: virtualizer.measureElement }, row.getVisibleCells().map((cell, i) => {
12
14
  if (cell.getIsAggregated())
13
15
  return null; // Display of aggregated cells is currently not supported.
14
16
  if (cell.getIsPlaceholder())
15
17
  return null; // Display of placeholder cells is currently not supported.
16
- return (React.createElement(TableCell, { key: cell.id, align: getTableCellAlign(cell.column), padding: getTableCellPadding(cell.column.id) }, flexRender(cell.column.columnDef.cell, cell.getContext())));
18
+ return (React.createElement(TableCell, { "data-testid": rowIndex === 0 && i === 0
19
+ ? TEST_IDS.TABLE_FIRST_CELL
20
+ : undefined, key: cell.id, align: getTableCellAlign(cell.column), padding: getTableCellPadding(cell.column.id) }, flexRender(cell.column.columnDef.cell, cell.getContext())));
17
21
  })));
18
22
  })));
19
23
  };
@@ -1,6 +1,6 @@
1
1
  import { TableContainer } from "@mui/material";
2
2
  import { getCoreRowModel, getFacetedRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from "@tanstack/react-table";
3
- import React, { useCallback, useEffect, useMemo } from "react";
3
+ import React, { Fragment, useCallback, useEffect, useMemo } from "react";
4
4
  import { track } from "../../common/analytics/analytics";
5
5
  import { EVENT_NAME, EVENT_PARAM, PAGINATION_DIRECTION, SORT_DIRECTION, } from "../../common/analytics/entities";
6
6
  import { BREAKPOINT_FN_NAME, useBreakpointHelper, } from "../../hooks/useBreakpointHelper";
@@ -10,7 +10,7 @@ import { useScroll } from "../../hooks/useScroll";
10
10
  import { ExploreActionKind } from "../../providers/exploreState";
11
11
  import { DEFAULT_PAGINATION_STATE } from "../../providers/exploreState/initializer/constants";
12
12
  import { TABLET } from "../../theme/common/breakpoints";
13
- import { FluidPaper, GridPaper } from "../common/Paper/paper.styles";
13
+ import { Loading, LOADING_PANEL_STYLE } from "../Loading/loading";
14
14
  import { NoResults } from "../NoResults/noResults";
15
15
  import { getColumnTrackSizing } from "../TableCreator/options/columnTrackSizing/utils";
16
16
  import { ROW_DIRECTION } from "./common/entities";
@@ -38,7 +38,7 @@ export const TableComponent = ({ columns, getRowId, items, listView, tableOption
38
38
  const tabletDown = useBreakpointHelper(BREAKPOINT_FN_NAME.DOWN, TABLET);
39
39
  const exploreMode = useExploreMode();
40
40
  const { exploreDispatch, exploreState } = useExploreState();
41
- const { entityPageState, filterState, listItems, loading, paginationState, rowPreview, tabValue, } = exploreState;
41
+ const { entityPageState, filterState, listItems, loading = false, paginationState, rowPreview, tabValue, } = exploreState;
42
42
  const { columnVisibility, grouping, rowSelection, sorting } = entityPageState[tabValue];
43
43
  const { currentPage, pages, pageSize, rows: pageCount } = paginationState;
44
44
  const { disablePagination = false } = listView || {};
@@ -200,14 +200,14 @@ export const TableComponent = ({ columns, getRowId, items, listView, tableOption
200
200
  function canPreviousPage() {
201
201
  return currentPage > 1;
202
202
  }
203
- return noResults ? (React.createElement(NoResults, { Paper: FluidPaper, title: "No Results found" })) : (React.createElement(FluidPaper, { variant: "table" },
204
- React.createElement(GridPaper, null,
205
- React.createElement(TableToolbar, { listView: listView, rowDirection: rowDirection, tableInstance: tableInstance }),
206
- React.createElement(TableContainer, null,
207
- React.createElement(GridTable, { collapsable: true, gridTemplateColumns: getColumnTrackSizing(getVisibleFlatColumns()) },
208
- React.createElement(TableHead, { rowDirection: rowDirection, tableInstance: tableInstance }),
209
- React.createElement(TableBody, { rows: rows, rowDirection: rowDirection, tableInstance: tableInstance }))),
210
- !disablePagination && (React.createElement(DXPagination, { canNextPage: canNextPage(), canPreviousPage: canPreviousPage(), currentPage: currentPage, onNextPage: handleTableNextPage, onPreviousPage: handleTablePreviousPage, totalPage: pages ?? 0 })))));
203
+ return noResults ? (React.createElement(NoResults, { Paper: null, title: "No Results found" })) : (React.createElement(Fragment, null,
204
+ React.createElement(TableToolbar, { listView: listView, rowDirection: rowDirection, tableInstance: tableInstance }),
205
+ React.createElement(Loading, { appear: false, autoPosition: false, loading: loading, panelStyle: LOADING_PANEL_STYLE.INHERIT }),
206
+ React.createElement(TableContainer, null,
207
+ React.createElement(GridTable, { collapsable: true, gridTemplateColumns: getColumnTrackSizing(getVisibleFlatColumns()) },
208
+ React.createElement(TableHead, { rowDirection: rowDirection, tableInstance: tableInstance }),
209
+ React.createElement(TableBody, { rows: rows, rowDirection: rowDirection, tableInstance: tableInstance }))),
210
+ !disablePagination && (React.createElement(DXPagination, { canNextPage: canNextPage(), canPreviousPage: canPreviousPage(), currentPage: currentPage, onNextPage: handleTableNextPage, onPreviousPage: handleTablePreviousPage, totalPage: pages ?? 0 }))));
211
211
  };
212
212
  // TODO(Dave) review whether memo is necessary - flash between tabs / loading state.
213
213
  export const Table = React.memo(TableComponent);
@@ -1,13 +1,10 @@
1
1
  import React, { useMemo } from "react";
2
- import { PAPER_PANEL_STYLE } from "../common/Paper/paper";
3
2
  import { ComponentCreator } from "../ComponentCreator/ComponentCreator";
4
- import { Loading } from "../Loading/loading";
5
3
  import { COLUMN_DEF } from "../Table/common/columnDef";
6
4
  import { arrIncludesSome, sortingFn } from "../Table/common/utils";
7
5
  import { Table } from "../Table/table";
8
6
  import { buildBaseColumnDef } from "./common/utils";
9
7
  import { useTableOptions } from "./options/hook";
10
- import { TableCreator as TableCreatorContainer } from "./tableCreator.styles";
11
8
  const createCell = (config) => function CellCreator(cellContext) {
12
9
  return (React.createElement(ComponentCreator, { components: [config.componentConfig], response: cellContext.row.original, viewContext: { cellContext } }));
13
10
  };
@@ -27,7 +24,5 @@ export const TableCreator = ({ columns, getRowId, items, listView, loading, }) =
27
24
  /* Initialize column definitions with the "row selection" column */
28
25
  COLUMN_DEF.ROW_SELECTION,
29
26
  ]), [columns]);
30
- return (React.createElement(TableCreatorContainer, null,
31
- React.createElement(Loading, { appear: false, loading: loading || false, panelStyle: PAPER_PANEL_STYLE.FLUID }),
32
- React.createElement(Table, { columns: columnDefs, getRowId: getRowId, items: items, listView: listView, loading: loading, tableOptions: tableOptions })));
27
+ return (React.createElement(Table, { columns: columnDefs, getRowId: getRowId, items: items, listView: listView, loading: loading, tableOptions: tableOptions }));
33
28
  };
@@ -1,7 +1,7 @@
1
- import LinkRoundedIcon from "@mui/icons-material/LinkRounded";
1
+ import { LinkRounded } from "@mui/icons-material";
2
2
  import React from "react";
3
3
  import { AnchorLink as Link } from "./anchorLink.styles";
4
4
  export const AnchorLink = ({ anchorLink, className, }) => {
5
5
  return (React.createElement(Link, { "aria-label": anchorLink, className: className, href: `#${anchorLink}` },
6
- React.createElement(LinkRoundedIcon, { fontSize: "xsmall" })));
6
+ React.createElement(LinkRounded, { fontSize: "xsmall" })));
7
7
  };
@@ -1,8 +1,8 @@
1
- import ChevronRightRoundedIcon from "@mui/icons-material/ChevronRightRounded";
1
+ import { ChevronRightRounded } from "@mui/icons-material";
2
2
  import { Link, Breadcrumbs as MBreadcrumbs, Typography } from "@mui/material";
3
3
  import NLink from "next/link";
4
4
  import React from "react";
5
5
  import { LINK_PROPS } from "./constants";
6
- export const Breadcrumbs = ({ breadcrumbs, className, Separator = React.createElement(ChevronRightRoundedIcon, { fontSize: "xxsmall" }), }) => {
6
+ export const Breadcrumbs = ({ breadcrumbs, className, Separator = React.createElement(ChevronRightRounded, { fontSize: "xxsmall" }), }) => {
7
7
  return (React.createElement(React.Fragment, null, breadcrumbs.length > 0 ? (React.createElement(MBreadcrumbs, { className: className, separator: Separator }, breadcrumbs.map(({ path, text }, b) => path ? (React.createElement(Link, { ...LINK_PROPS, component: NLink, key: b, href: path }, text)) : (React.createElement(Typography, { key: `${path}${b}`, maxWidth: 180, noWrap: true }, text))))) : null));
8
8
  };
@@ -0,0 +1,13 @@
1
+ import { Breadcrumb } from "./breadcrumbs";
2
+ /**
3
+ * Checks if the given value is an array of breadcrumbs.
4
+ * @param value - Value.
5
+ * @returns True if the value is an array of breadcrumbs.
6
+ */
7
+ export declare function isBreadcrumbArray(value: unknown): value is Breadcrumb[];
8
+ /**
9
+ * Checks if the given value is a breadcrumb.
10
+ * @param value - Value.
11
+ * @returns True if the value is a breadcrumb.
12
+ */
13
+ export declare function isBreadcrumb(value: unknown): value is Breadcrumb;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Checks if the given value is an array of breadcrumbs.
3
+ * @param value - Value.
4
+ * @returns True if the value is an array of breadcrumbs.
5
+ */
6
+ export function isBreadcrumbArray(value) {
7
+ return Array.isArray(value) && value.every(isBreadcrumb);
8
+ }
9
+ /**
10
+ * Checks if the given value is a breadcrumb.
11
+ * @param value - Value.
12
+ * @returns True if the value is a breadcrumb.
13
+ */
14
+ export function isBreadcrumb(value) {
15
+ if (value === null)
16
+ return false;
17
+ if (typeof value !== "object")
18
+ return false;
19
+ if ("path" in value && "text" in value) {
20
+ return typeof value.path === "string" && typeof value.text === "string";
21
+ }
22
+ return false;
23
+ }
@@ -1,6 +1,6 @@
1
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
1
+ import { ArrowDropDownRounded } from "@mui/icons-material";
2
2
  import React from "react";
3
3
  import { DropdownButton as Button } from "./dropdownButton.styles";
4
4
  export const DropdownButton = ({ children, disabled = false, open = false, ...props /* Spread props to allow for Mui ButtonProps specific prop overrides e.g. "onClick". */ }) => {
5
- return (React.createElement(Button, { disabled: disabled, EndIcon: ArrowDropDownRoundedIcon, open: open, ...props }, children));
5
+ return (React.createElement(Button, { disabled: disabled, EndIcon: ArrowDropDownRounded, open: open, ...props }, children));
6
6
  };
@@ -1,6 +1,6 @@
1
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
1
+ import { ArrowDropDownRounded } from "@mui/icons-material";
2
2
  import React from "react";
3
3
  import { Button } from "./navigationButton.styles";
4
4
  export const NavigationButton = ({ children, isActive, ...props /* Spread props to allow for Button specific props ButtonProps e.g. "onClick". */ }) => {
5
- return (React.createElement(Button, { EndIcon: ArrowDropDownRoundedIcon, isActive: isActive, variant: "nav", ...props }, children));
5
+ return (React.createElement(Button, { EndIcon: ArrowDropDownRounded, isActive: isActive, variant: "nav", ...props }, children));
6
6
  };
@@ -1,4 +1,4 @@
1
- import ContentCopyRoundedIcon from "@mui/icons-material/ContentCopyRounded";
1
+ import { ContentCopyRounded } from "@mui/icons-material";
2
2
  import { IconButton, Tooltip } from "@mui/material";
3
3
  import copy from "copy-to-clipboard";
4
4
  import React, { useEffect } from "react";
@@ -23,5 +23,5 @@ export const CopyToClipboard = ({ copyStr, }) => {
23
23
  }, [showTooltip]);
24
24
  return (React.createElement(Tooltip, { arrow: true, disableHoverListener: true, open: showTooltip, placement: "top", title: "Link Copied" },
25
25
  React.createElement(IconButton, { onClick: () => onCopyToClipboard(copyStr), size: "xxsmall" },
26
- React.createElement(ContentCopyRoundedIcon, { color: "primary", fontSize: "small" }))));
26
+ React.createElement(ContentCopyRounded, { color: "primary", fontSize: "small" }))));
27
27
  };
@@ -1,9 +1,9 @@
1
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
1
+ import { CloseRounded } from "@mui/icons-material";
2
2
  import { IconButton, DialogTitle as MDialogTitle } from "@mui/material";
3
3
  import React from "react";
4
4
  export const DialogTitle = ({ className, onClose, title, }) => {
5
5
  return (React.createElement(MDialogTitle, { className: className },
6
6
  title,
7
7
  onClose && (React.createElement(IconButton, { color: "ink", edge: "end", onClick: onClose, size: "xsmall" },
8
- React.createElement(CloseRoundedIcon, null)))));
8
+ React.createElement(CloseRounded, null)))));
9
9
  };
@@ -1,4 +1,4 @@
1
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
1
+ import { CloseRounded } from "@mui/icons-material";
2
2
  import { IconButton } from "@mui/material";
3
3
  import React from "react";
4
4
  import { DrawerTitle as Title } from "./drawerTitle.styles";
@@ -6,5 +6,5 @@ export const DrawerTitle = ({ className, onClose, title, }) => {
6
6
  return (React.createElement(Title, { className: className },
7
7
  title,
8
8
  onClose && (React.createElement(IconButton, { color: "ink", edge: "end", onClick: onClose, size: "xsmall" },
9
- React.createElement(CloseRoundedIcon, { color: "inkLight", fontSize: "small" })))));
9
+ React.createElement(CloseRounded, { color: "inkLight", fontSize: "small" })))));
10
10
  };
@@ -3,7 +3,7 @@ interface Props {
3
3
  }
4
4
  export declare const InputFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
- }, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "focused" | "fullWidth" | "hiddenLabel"> & {
6
+ }, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "fullWidth" | "hiddenLabel" | "focused"> & {
7
7
  theme?: import("@emotion/react").Theme;
8
8
  } & Props, {}, {}>;
9
9
  export {};
@@ -1,3 +1,2 @@
1
- export declare const DropDownIcon: ({ ...props }: {
2
- [x: string]: any;
3
- }) => JSX.Element;
1
+ import { SvgIconProps } from "@mui/material";
2
+ export declare const DropDownIcon: ({ ...props }: SvgIconProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
1
+ import { ArrowDropDownRounded } from "@mui/icons-material";
2
2
  import React from "react";
3
- export const DropDownIcon = ({ ...props /* Spread props to allow for Mui SvgIconProps specific prop overrides e.g. "htmlColor". */ }) => {
4
- return (React.createElement(ArrowDropDownRoundedIcon, { color: "inkMain", fontSize: "small", ...props }));
3
+ export const DropDownIcon = ({ ...props /* MuiSvgIconProps */ }) => {
4
+ return React.createElement(ArrowDropDownRounded, { color: "inkMain", fontSize: "small", ...props });
5
5
  };
@@ -1,10 +1,9 @@
1
1
  import { Select as MSelect, Typography, } from "@mui/material";
2
2
  import React from "react";
3
3
  import { TEXT_BODY_400 } from "../../../../../theme/common/typography";
4
- import { DropDownIcon } from "./components/DropDownIcon/dropDownIcon";
5
4
  import { InputFormControl } from "./select.styles";
6
5
  export const Select = ({ children, className, isFilled, label, onBlur, ...props /* Spread props to allow for Mui SelectProps specific prop overrides e.g. "disabled". */ }) => {
7
6
  return (React.createElement(InputFormControl, { className: className, isFilled: isFilled },
8
7
  label && React.createElement(Typography, { variant: TEXT_BODY_400 }, label),
9
- React.createElement(MSelect, { fullWidth: true, IconComponent: DropDownIcon, inputProps: { onBlur }, size: "small", ...props }, children)));
8
+ React.createElement(MSelect, { fullWidth: true, inputProps: { onBlur }, size: "small", ...props }, children)));
10
9
  };
@@ -3,7 +3,7 @@ interface Props {
3
3
  }
4
4
  export declare const InputFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
- }, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "focused" | "fullWidth" | "hiddenLabel"> & {
6
+ }, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "fullWidth" | "hiddenLabel" | "focused"> & {
7
7
  theme?: import("@emotion/react").Theme;
8
8
  } & Props, {}, {}>;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
1
+ import { CloseRounded } from "@mui/icons-material";
2
2
  import { FormHelperText, Typography } from "@mui/material";
3
3
  import React from "react";
4
4
  import { TEXT_BODY_400 } from "../../../../../theme/common/typography";
@@ -17,7 +17,7 @@ export const UploadFile = ({ attachmentName, attachmentRejected, attachmentRejec
17
17
  "Drag or ",
18
18
  React.createElement(Underline, null, "Click"),
19
19
  " to attach file"))),
20
- isAttached && React.createElement(CloseRoundedIcon, { fontSize: "small" })),
20
+ isAttached && React.createElement(CloseRounded, { fontSize: "small" })),
21
21
  error && (React.createElement(FormHelperText, null,
22
22
  React.createElement(ErrorIcon, { fontSize: "xxsmall" }),
23
23
  getErrorMessage(attachmentRejections)))));