@databiosphere/findable-ui 24.0.0 → 25.0.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 (356) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +39 -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/Detail/components/Table/components/TableHead/tableHead.d.ts +8 -0
  11. package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +36 -0
  12. package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +2 -2
  13. package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.js +1 -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/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +2 -2
  17. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
  18. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +17 -0
  19. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +13 -0
  20. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.js +12 -0
  21. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +9 -0
  22. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +9 -0
  23. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.d.ts +3 -0
  24. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +86 -0
  25. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +105 -0
  26. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +196 -0
  27. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.d.ts +2 -0
  28. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.js +7 -0
  29. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.d.ts +3 -0
  30. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.js +29 -0
  31. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.d.ts +1 -0
  32. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.js +1 -0
  33. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.d.ts +4 -0
  34. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.js +70 -0
  35. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.d.ts +7 -0
  36. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +19 -0
  37. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.d.ts +6 -0
  38. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.js +1 -0
  39. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.d.ts +1 -0
  40. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.js +1 -0
  41. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.d.ts +7 -0
  42. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.js +1 -0
  43. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.d.ts +3 -0
  44. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.js +11 -0
  45. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.d.ts +3 -0
  46. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +96 -0
  47. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.d.ts +6 -0
  48. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +16 -0
  49. package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +6 -0
  50. package/lib/components/Index/components/EntitiesView/components/ChartView/types.js +1 -0
  51. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.d.ts +14 -0
  52. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.js +21 -0
  53. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +2 -0
  54. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +16 -0
  55. package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +3 -0
  56. package/lib/components/Index/components/EntitiesView/components/EntityList/types.js +1 -0
  57. package/lib/components/Index/components/EntitiesView/constants.d.ts +1 -0
  58. package/lib/components/Index/components/EntitiesView/constants.js +1 -0
  59. package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +2 -0
  60. package/lib/components/Index/components/EntitiesView/entitiesView.js +14 -0
  61. package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +3 -0
  62. package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +20 -0
  63. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +2 -0
  64. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.js +14 -0
  65. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.d.ts +13 -0
  66. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.js +5 -0
  67. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +8 -0
  68. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +50 -0
  69. package/lib/components/Index/components/EntitiesView/types.d.ts +8 -0
  70. package/lib/components/Index/components/EntitiesView/types.js +1 -0
  71. package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -16
  72. package/lib/components/Index/components/NTagCell/nTagCell.stories.js +8 -8
  73. package/lib/components/Index/components/TitleCell/titleCell.d.ts +6 -0
  74. package/lib/components/Index/components/TitleCell/titleCell.js +10 -0
  75. package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +3 -0
  76. package/lib/components/Index/components/TitleCell/titleCell.styles.js +6 -0
  77. package/lib/components/Index/index.d.ts +2 -13
  78. package/lib/components/Index/index.js +6 -2
  79. package/lib/components/Index/index.stories.js +3 -2
  80. package/lib/components/Index/types.d.ts +12 -0
  81. package/lib/components/Index/types.js +1 -0
  82. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.d.ts +1 -1
  83. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +5 -4
  84. package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.d.ts +6 -0
  85. package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.js +18 -0
  86. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.js +3 -3
  87. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +5 -0
  88. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +29 -0
  89. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +1 -1
  90. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
  91. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +6 -0
  92. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +13 -0
  93. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +36 -0
  94. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +9 -0
  95. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.js +2 -2
  96. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.js +2 -2
  97. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
  98. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.js +5 -3
  99. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.d.ts +5 -1
  100. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -3
  101. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +5 -0
  102. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +10 -0
  103. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +36 -0
  104. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +9 -0
  105. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.js +2 -2
  106. package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.js +2 -2
  107. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +5 -0
  108. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +19 -0
  109. package/lib/components/Layout/components/Outline/common/constants.d.ts +2 -0
  110. package/lib/components/Layout/components/Outline/common/constants.js +1 -0
  111. package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.js +2 -2
  112. package/lib/components/Loading/loading.d.ts +2 -1
  113. package/lib/components/Loading/loading.js +2 -2
  114. package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
  115. package/lib/components/Login/components/Section/components/Consent/consent.js +3 -3
  116. package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
  117. package/lib/components/Login/components/Section/components/Consent/consent.styles.js +2 -2
  118. package/lib/components/Login/components/Section/components/Consent/types.d.ts +2 -2
  119. package/lib/components/Login/login.stories.d.ts +6 -0
  120. package/lib/components/Login/login.stories.js +31 -0
  121. package/lib/components/NoResults/noResults.d.ts +1 -8
  122. package/lib/components/NoResults/noResults.js +9 -8
  123. package/lib/components/NoResults/noResults.styles.d.ts +2 -2
  124. package/lib/components/NoResults/noResults.styles.js +4 -2
  125. package/lib/components/NoResults/types.d.ts +8 -0
  126. package/lib/components/NoResults/types.js +1 -0
  127. package/lib/components/Plot/components/BarX/barX.d.ts +2 -0
  128. package/lib/components/Plot/components/BarX/barX.js +13 -0
  129. package/lib/components/Plot/components/BarX/types.d.ts +5 -0
  130. package/lib/components/Plot/components/BarX/types.js +1 -0
  131. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.js +2 -2
  132. package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +1 -1
  133. package/lib/components/Stepper/components/Step/step.styles.d.ts +1 -1
  134. package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.js +2 -2
  135. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +16 -0
  136. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +28 -0
  137. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +5 -0
  138. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +46 -0
  139. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +3 -0
  140. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +21 -0
  141. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +2 -0
  142. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +37 -0
  143. package/lib/components/Table/components/Pagination/pagination.js +3 -4
  144. package/lib/components/Table/components/TableHead/tableHead.js +2 -2
  145. package/lib/components/Table/table.js +11 -11
  146. package/lib/components/TableCreator/common/constants.d.ts +6 -0
  147. package/lib/components/TableCreator/common/constants.js +19 -0
  148. package/lib/components/TableCreator/common/entities.d.ts +5 -0
  149. package/lib/components/TableCreator/common/entities.js +1 -0
  150. package/lib/components/TableCreator/tableCreator.js +1 -6
  151. package/lib/components/common/Alert/alert.stories.d.ts +6 -0
  152. package/lib/components/common/Alert/alert.stories.js +36 -0
  153. package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +4 -0
  154. package/lib/components/common/Alert/components/AlertText/alertText.styles.js +19 -0
  155. package/lib/components/common/AnchorLink/anchorLink.js +2 -2
  156. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +7 -0
  157. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +5 -0
  158. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +3 -0
  159. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +19 -0
  160. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +10 -0
  161. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +16 -0
  162. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +3 -0
  163. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +21 -0
  164. package/lib/components/common/Breadcrumbs/breadcrumbs.js +2 -2
  165. package/lib/components/common/Breadcrumbs/typeGuard.d.ts +13 -0
  166. package/lib/components/common/Breadcrumbs/typeGuard.js +23 -0
  167. package/lib/components/common/Button/components/DropdownButton/dropdownButton.js +2 -2
  168. package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +3 -0
  169. package/lib/components/common/Button/components/LoginButton/loginButton.js +6 -0
  170. package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +7 -0
  171. package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +11 -0
  172. package/lib/components/common/Button/components/NavigationButton/navigationButton.js +2 -2
  173. package/lib/components/common/CopyToClipboard/copyToClipboard.js +2 -2
  174. package/lib/components/common/Dialog/components/DialogTitle/dialogTitle.js +2 -2
  175. package/lib/components/common/Drawer/components/DrawerTitle/drawerTitle.js +2 -2
  176. package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
  177. package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.d.ts +2 -3
  178. package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.js +3 -3
  179. package/lib/components/common/Form/components/Select/select.js +1 -2
  180. package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
  181. package/lib/components/common/Form/components/UploadFile/uploadFile.js +2 -2
  182. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +5 -0
  183. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +10 -0
  184. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +3 -0
  185. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +9 -0
  186. package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
  187. package/lib/components/common/Input/input.styles.d.ts +1 -1
  188. package/lib/components/common/LoginDialog/loginDialog.styles.js +1 -1
  189. package/lib/components/common/Paper/paper.d.ts +2 -1
  190. package/lib/components/common/Paper/paper.js +2 -2
  191. package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +2 -3
  192. package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.d.ts +2 -0
  193. package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.js +10 -0
  194. package/lib/components/types.d.ts +3 -0
  195. package/lib/config/entities.d.ts +2 -0
  196. package/lib/hooks/useAuthentication/common/constants.d.ts +4 -0
  197. package/lib/hooks/useAuthentication/common/constants.js +19 -0
  198. package/lib/hooks/useAuthentication/common/entities.d.ts +25 -0
  199. package/lib/hooks/useAuthentication/common/entities.js +11 -0
  200. package/lib/hooks/useAuthentication/common/utils.d.ts +15 -0
  201. package/lib/hooks/useAuthentication/common/utils.js +25 -0
  202. package/lib/hooks/useAuthentication/useAuthentication.d.ts +6 -0
  203. package/lib/hooks/useAuthentication/useAuthentication.js +9 -0
  204. package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +6 -0
  205. package/lib/hooks/useAuthentication/useAuthenticationComplete.js +55 -0
  206. package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +20 -0
  207. package/lib/hooks/useAuthentication/useAuthenticationForm.js +88 -0
  208. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +18 -0
  209. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +50 -0
  210. package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +20 -0
  211. package/lib/hooks/useAuthentication/useAuthenticationStatus.js +32 -0
  212. package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +21 -0
  213. package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +41 -0
  214. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +18 -0
  215. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +62 -0
  216. package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +24 -0
  217. package/lib/hooks/useAuthentication/useFetchTerraProfile.js +62 -0
  218. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +15 -0
  219. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +62 -0
  220. package/lib/hooks/useAuthentication/useTokenClient.d.ts +11 -0
  221. package/lib/hooks/useAuthentication/useTokenClient.js +29 -0
  222. package/lib/hooks/useAuthenticationConfig.d.ts +6 -0
  223. package/lib/hooks/useAuthenticationConfig.js +14 -0
  224. package/lib/hooks/useCategoryConfigs.d.ts +6 -0
  225. package/lib/hooks/useCategoryConfigs.js +17 -0
  226. package/lib/hooks/useCategoryFilter.js +1 -0
  227. package/lib/hooks/useEntityListRelatedView.d.ts +15 -0
  228. package/lib/hooks/useEntityListRelatedView.js +62 -0
  229. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +15 -0
  230. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +27 -0
  231. package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +5 -0
  232. package/lib/hooks/useFileManifest/useFileManifestURL.js +11 -0
  233. package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +9 -0
  234. package/lib/hooks/useFileManifest/useRequestFileManifest.js +37 -0
  235. package/lib/hooks/useLayoutState.d.ts +6 -0
  236. package/lib/hooks/useLayoutState.js +9 -0
  237. package/lib/hooks/useMenu.d.ts +10 -0
  238. package/lib/hooks/useMenu.js +17 -0
  239. package/lib/hooks/useMenuWithPosition.d.ts +14 -0
  240. package/lib/hooks/useMenuWithPosition.js +33 -0
  241. package/lib/hooks/useResizeObserver.d.ts +2 -1
  242. package/lib/hooks/useResizeObserver.js +5 -2
  243. package/lib/hooks/useSessionTimeout.d.ts +11 -0
  244. package/lib/hooks/useSessionTimeout.js +28 -0
  245. package/lib/providers/authentication.d.ts +51 -0
  246. package/lib/providers/authentication.js +110 -0
  247. package/lib/providers/layoutState.d.ts +40 -0
  248. package/lib/providers/layoutState.js +47 -0
  249. package/lib/styles/common/mui/palette.d.ts +47 -0
  250. package/lib/styles/common/mui/palette.js +47 -0
  251. package/lib/theme/common/components.js +4 -0
  252. package/lib/theme/common/typography.d.ts +1 -1
  253. package/lib/theme/theme.js +1 -0
  254. package/lib/views/ExploreView/exploreView.js +4 -24
  255. package/package.json +6 -4
  256. package/src/common/entities.ts +1 -0
  257. package/src/components/DataDictionary/components/Entities/constants.ts +2 -2
  258. package/src/components/DataDictionary/components/Entities/entities.tsx +4 -4
  259. package/src/components/DataDictionary/components/Entity/constants.ts +2 -2
  260. package/src/components/DataDictionary/components/Entity/entity.tsx +6 -6
  261. package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.tsx +1 -1
  262. package/src/components/Filter/components/FilterLabel/filterLabel.tsx +2 -2
  263. package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +2 -2
  264. package/src/components/Index/components/EntitiesView/components/ChartView/chartView.styles.ts +14 -0
  265. package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +38 -0
  266. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +13 -0
  267. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +104 -0
  268. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +229 -0
  269. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.ts +30 -0
  270. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.tsx +16 -0
  271. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.ts +1 -0
  272. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.ts +74 -0
  273. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +29 -0
  274. package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.ts +9 -0
  275. package/src/components/Index/components/EntitiesView/components/ChartView/constants.ts +1 -0
  276. package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.ts +8 -0
  277. package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.ts +29 -0
  278. package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +99 -0
  279. package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +25 -0
  280. package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +7 -0
  281. package/src/components/Index/components/EntitiesView/components/ChartView/utils.ts +26 -0
  282. package/src/components/Index/components/EntitiesView/components/EntityList/entityList.tsx +29 -0
  283. package/src/components/Index/components/EntitiesView/components/EntityList/types.ts +3 -0
  284. package/src/components/Index/components/EntitiesView/constants.ts +1 -0
  285. package/src/components/Index/components/EntitiesView/entitiesView.styles.ts +21 -0
  286. package/src/components/Index/components/EntitiesView/entitiesView.tsx +30 -0
  287. package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.ts +15 -0
  288. package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.ts +16 -0
  289. package/src/components/Index/components/EntitiesView/stories/entitiesView.stories.tsx +76 -0
  290. package/src/components/Index/components/EntitiesView/types.ts +9 -0
  291. package/src/components/Index/index.stories.tsx +3 -2
  292. package/src/components/Index/index.tsx +15 -15
  293. package/src/components/Index/types.ts +13 -0
  294. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +19 -14
  295. package/src/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.tsx +24 -0
  296. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx +3 -3
  297. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.tsx +2 -2
  298. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.tsx +2 -2
  299. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +8 -3
  300. package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.tsx +5 -2
  301. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.tsx +2 -2
  302. package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.tsx +2 -2
  303. package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.tsx +2 -2
  304. package/src/components/Loading/loading.tsx +11 -3
  305. package/src/components/Login/components/Section/components/Consent/consent.styles.ts +2 -2
  306. package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -4
  307. package/src/components/Login/components/Section/components/Consent/types.ts +2 -2
  308. package/src/components/NoResults/noResults.styles.ts +4 -2
  309. package/src/components/NoResults/noResults.tsx +16 -22
  310. package/src/components/NoResults/types.ts +13 -0
  311. package/src/components/Plot/components/BarX/barX.tsx +20 -0
  312. package/src/components/Plot/components/BarX/types.ts +6 -0
  313. package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +1 -1
  314. package/src/components/Stepper/components/Step/components/StepContent/stepContent.tsx +2 -2
  315. package/src/components/Support/components/SupportRequest/components/Dialog/dialog.tsx +2 -2
  316. package/src/components/Table/components/Pagination/pagination.tsx +3 -4
  317. package/src/components/Table/components/TableHead/tableHead.tsx +2 -2
  318. package/src/components/Table/table.tsx +42 -38
  319. package/src/components/TableCreator/tableCreator.tsx +8 -18
  320. package/src/components/common/AnchorLink/anchorLink.tsx +2 -2
  321. package/src/components/common/Breadcrumbs/breadcrumbs.tsx +2 -2
  322. package/src/components/common/Breadcrumbs/typeGuard.ts +24 -0
  323. package/src/components/common/Button/components/DropdownButton/dropdownButton.tsx +2 -2
  324. package/src/components/common/Button/components/NavigationButton/navigationButton.tsx +2 -2
  325. package/src/components/common/CopyToClipboard/copyToClipboard.tsx +2 -2
  326. package/src/components/common/Dialog/components/DialogTitle/dialogTitle.tsx +2 -2
  327. package/src/components/common/Drawer/components/DrawerTitle/drawerTitle.tsx +2 -2
  328. package/src/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.tsx +5 -6
  329. package/src/components/common/Form/components/Select/select.tsx +1 -8
  330. package/src/components/common/Form/components/UploadFile/uploadFile.tsx +2 -2
  331. package/src/components/common/LoginDialog/loginDialog.styles.ts +1 -1
  332. package/src/components/common/Paper/paper.tsx +9 -3
  333. package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +2 -3
  334. package/src/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.ts +17 -0
  335. package/src/components/types.ts +4 -0
  336. package/src/config/entities.ts +2 -0
  337. package/src/hooks/useCategoryFilter.ts +1 -0
  338. package/src/hooks/useResizeObserver.ts +5 -2
  339. package/src/styles/common/mui/palette.ts +47 -0
  340. package/src/theme/common/components.ts +4 -0
  341. package/src/theme/common/typography.ts +1 -1
  342. package/src/theme/theme.ts +1 -0
  343. package/src/views/ExploreView/exploreView.tsx +8 -42
  344. package/tests/chart.test.tsx +170 -0
  345. package/tests/chartView.test.tsx +36 -0
  346. package/tests/entitiesView.test.tsx +36 -0
  347. package/tests/setup.ts +13 -0
  348. package/types/data-explorer-ui.d.ts +36 -80
  349. package/src/components/Index/components/Cell/cell.tsx +0 -22
  350. package/src/components/Index/components/NTag/components/Tooltip/tooltip.styles.ts +0 -11
  351. package/src/components/Index/components/NTag/components/Tooltip/tooltip.tsx +0 -90
  352. package/src/components/Index/components/NTag/nTag.tsx +0 -25
  353. package/src/components/Index/components/NTagCell/nTagCell.stories.tsx +0 -22
  354. package/src/components/Index/components/NTagCell/nTagCell.tsx +0 -74
  355. package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.tsx +0 -16
  356. package/src/components/TableCreator/tableCreator.styles.ts +0 -5
@@ -2,13 +2,14 @@ import styled from "@emotion/styled";
2
2
  import { Dialog, Input } from "@mui/material";
3
3
  import { inkLight, smokeMain, } from "../../../../../../../../../../../../styles/common/mixins/colors";
4
4
  import { IconButton } from "../../../../../../../../../../../common/IconButton/iconButton";
5
- import { HEADER_HEIGHT } from "../../../../../../../../common/constants";
6
- export const SearchBar = styled(Dialog) `
5
+ export const SearchBar = styled(Dialog, {
6
+ shouldForwardProp: (prop) => prop !== "yOffset",
7
+ }) `
7
8
  .MuiDialog-container {
8
9
  width: 100%;
9
10
 
10
11
  .MuiDialog-paper {
11
- margin-top: ${HEADER_HEIGHT}px;
12
+ margin-top: ${(props) => props.yOffset}px;
12
13
  }
13
14
  }
14
15
  `;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface SearchProps {
3
+ openSearch: () => void;
4
+ }
5
+ export declare const SearchButton: ({ openSearch }: SearchProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { IconButton } from "@mui/material";
2
+ import React from "react";
3
+ import { useBreakpoint } from "../../../../../../../../../../../../hooks/useBreakpoint";
4
+ import { SearchIcon } from "../../../../../../../../../../../common/CustomIcon/components/SearchIcon/searchIcon";
5
+ import { Button } from "./searchButton.styles";
6
+ export const SearchButton = ({ openSearch }) => {
7
+ const { mdUp } = useBreakpoint();
8
+ return mdUp ? (React.createElement(Button, { onClick: openSearch, startIcon: React.createElement(SearchIcon, null), variant: "nav" }, "Search")) : (React.createElement(IconButton, { color: "ink", onClick: openSearch },
9
+ React.createElement(SearchIcon, { fontSize: "medium" })));
10
+ };
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ export declare const Button: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
5
+ color?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | undefined;
6
+ disabled?: boolean | undefined;
7
+ disableElevation?: boolean | undefined;
8
+ disableFocusRipple?: boolean | undefined;
9
+ endIcon?: import("react").ReactNode;
10
+ fullWidth?: boolean | undefined;
11
+ href?: string | undefined;
12
+ size?: "large" | "medium" | "small" | undefined;
13
+ startIcon?: import("react").ReactNode;
14
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
+ variant?: "nav" | "text" | "outlined" | "contained" | "activeNav" | "backNav" | undefined;
16
+ } & Omit<{
17
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
18
+ centerRipple?: boolean | undefined;
19
+ children?: import("react").ReactNode;
20
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
21
+ disabled?: boolean | undefined;
22
+ disableRipple?: boolean | undefined;
23
+ disableTouchRipple?: boolean | undefined;
24
+ focusRipple?: boolean | undefined;
25
+ focusVisibleClassName?: string | undefined;
26
+ LinkComponent?: import("react").ElementType<any> | undefined;
27
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
28
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
29
+ tabIndex?: number | undefined;
30
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
31
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
32
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
33
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
34
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "href" | "disabled" | "action" | "size" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & {
35
+ theme?: import("@emotion/react").Theme | undefined;
36
+ }, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import styled from "@emotion/styled";
2
+ import { Button as MButton } from "@mui/material";
3
+ import { textBody500 } from "../../../../../../../../../../../../styles/common/mixins/fonts";
4
+ export const Button = styled(MButton) `
5
+ & {
6
+ ${textBody500};
7
+ padding: 6px 12px;
8
+ }
9
+ `;
@@ -1,4 +1,4 @@
1
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
1
+ import { ArrowDropDownRounded } from "@mui/icons-material";
2
2
  import React, { useCallback } from "react";
3
3
  import { Button } from "../../../../../../../../../common/Button/button";
4
4
  import { BackArrowIcon } from "../../../../../../../../../common/CustomIcon/components/BackArrowIcon/backArrowIcon";
@@ -16,7 +16,7 @@ export const NavigationDrawer = ({ closeAncestor, headerProps, isMenuIn, isSelec
16
16
  closeAncestor?.();
17
17
  }, [closeAncestor, onClose]);
18
18
  return (React.createElement(React.Fragment, null,
19
- React.createElement(Button, { EndIcon: ArrowDropDownRoundedIcon, onClick: onOpen, variant: isSelected ? "activeNav" : "nav" }, menuLabel),
19
+ React.createElement(Button, { EndIcon: ArrowDropDownRounded, onClick: onOpen, variant: isSelected ? "activeNav" : "nav" }, menuLabel),
20
20
  React.createElement(Dialog, { ...DIALOG_PROPS, onClose: closeDrawers, open: open, TransitionComponent: Slide },
21
21
  React.createElement(AppBar, { component: "div", elevation: 1 },
22
22
  React.createElement(Toolbar, { onClose: closeDrawers, ...headerProps })),
@@ -1,4 +1,4 @@
1
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
1
+ import { ArrowDropDownRounded } from "@mui/icons-material";
2
2
  import { Grow, ClickAwayListener as MClickAwayListener, MenuList as MMenuList, Paper as MPaper, } from "@mui/material";
3
3
  import React, { Fragment, useEffect } from "react";
4
4
  import { useMenu } from "../../../../../../../../../common/Menu/hooks/useMenu";
@@ -17,7 +17,7 @@ export const NavigationMenu = ({ closeAncestor, isSelected = false, isSubMenu =
17
17
  };
18
18
  }, [isSubMenu, onDisableScrollLock, open]);
19
19
  return (React.createElement(MenuItem, null,
20
- React.createElement(Button, { EndIcon: ArrowDropDownRoundedIcon, isActive: open, onClick: onOpen, variant: isSelected ? "activeNav" : "nav" },
20
+ React.createElement(Button, { EndIcon: ArrowDropDownRounded, isActive: open, onClick: onOpen, variant: isSelected ? "activeNav" : "nav" },
21
21
  React.createElement(NavigationButtonLabel, { label: menuLabel })),
22
22
  React.createElement(StyledPopper, { ...POPPER_PROPS, ...popperProps, anchorEl: anchorEl, open: open }, ({ TransitionProps }) => (React.createElement(Grow, { ...TransitionProps, onEntered: () => {
23
23
  if (isSubMenu)
@@ -0,0 +1,5 @@
1
+ import { RefObject } from "react";
2
+ export interface UseMeasureHeader {
3
+ headerRef: RefObject<HTMLElement>;
4
+ }
5
+ export declare const useMeasureHeader: () => UseMeasureHeader;
@@ -0,0 +1,19 @@
1
+ import { useEffect, useRef } from "react";
2
+ import { useLayoutState } from "../../../../../hooks/useLayoutState";
3
+ import { getBorderBoxSizeHeight, useResizeObserver, } from "../../../../../hooks/useResizeObserver";
4
+ import { LayoutActionKind } from "../../../../../providers/layoutState";
5
+ export const useMeasureHeader = () => {
6
+ const { layoutDispatch } = useLayoutState();
7
+ const headerRef = useRef(null);
8
+ const { height } = useResizeObserver(headerRef, getBorderBoxSizeHeight) || {};
9
+ // Updates layout state header height.
10
+ useEffect(() => {
11
+ if (!height)
12
+ return;
13
+ layoutDispatch({
14
+ payload: height,
15
+ type: LayoutActionKind.UpdateHeaderHeight,
16
+ });
17
+ }, [height, layoutDispatch]);
18
+ return { headerRef };
19
+ };
@@ -0,0 +1,2 @@
1
+ import { TabProps as MTabProps } from "@mui/material";
2
+ export declare const DEFAULT_TAB_VALUE: MTabProps["value"];
@@ -0,0 +1 @@
1
+ export const DEFAULT_TAB_VALUE = "";
@@ -1,9 +1,9 @@
1
- import FilterListRoundedIcon from "@mui/icons-material/FilterListRounded";
1
+ import { FilterListRounded } from "@mui/icons-material";
2
2
  import React from "react";
3
3
  import { Badge, SidebarButton as Button } from "./sidebarButton.styles";
4
4
  export const SidebarButton = ({ className, count, label, onClick, ...props }) => {
5
5
  return (React.createElement(Button, { className: className, onClick: onClick, ...props },
6
- React.createElement(FilterListRoundedIcon, { fontSize: "small" }),
6
+ React.createElement(FilterListRounded, { fontSize: "small" }),
7
7
  label,
8
8
  count > 0 && React.createElement(Badge, null, count)));
9
9
  };
@@ -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
  }
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { Login } from "./login";
3
+ declare const _default: Meta<typeof Login>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof Login>;
6
+ export declare const LoginStory: Story;
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { HelpIconButton } from "../common/Button/components/HelpIconButton/helpIconButton";
3
+ import { Login } from "./login";
4
+ export default {
5
+ argTypes: {
6
+ isGoogle: { control: "boolean" },
7
+ termsOfService: { control: "object" },
8
+ text: { control: "object" },
9
+ title: { control: "text" },
10
+ warning: { control: "object" },
11
+ },
12
+ component: Login,
13
+ parameters: {
14
+ layout: "fullscreen",
15
+ },
16
+ title: "Components/Login",
17
+ };
18
+ export const LoginStory = {
19
+ args: {
20
+ isGoogle: true,
21
+ termsOfService: (React.createElement("p", null, "I have read and agree to privacy notice and terms of use")),
22
+ text: (React.createElement("p", null,
23
+ "Please sign in to your Data Explorer account",
24
+ " ",
25
+ React.createElement(HelpIconButton, { url: "https://www.google.com/" }))),
26
+ title: "Sign in to your account",
27
+ warning: (React.createElement("div", null,
28
+ React.createElement("p", null, "WARNING NOTICE"),
29
+ React.createElement("p", null, "This is a warning notice."))),
30
+ },
31
+ };
@@ -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,
@@ -0,0 +1,16 @@
1
+ type MenuListItemOnChangeFn = (event: unknown) => void;
2
+ type onResetFn = () => void;
3
+ export interface CheckboxMenuListItem {
4
+ checked: boolean;
5
+ disabled?: boolean;
6
+ label: string;
7
+ onChange: MenuListItemOnChangeFn;
8
+ value: string;
9
+ }
10
+ export interface CheckboxMenuProps {
11
+ label: string;
12
+ onReset: onResetFn;
13
+ options: CheckboxMenuListItem[];
14
+ }
15
+ export declare const CheckboxMenu: ({ label: buttonLabel, onReset, options, }: CheckboxMenuProps) => JSX.Element;
16
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Checkbox, ListItem, ListItemButton, ListItemText, } from "@mui/material";
2
+ import React, { useState } from "react";
3
+ import { ButtonTextPrimary } from "../../../common/Button/components/ButtonTextPrimary/buttonTextPrimary";
4
+ import { DropdownButton } from "../../../common/Button/components/DropdownButton/dropdownButton";
5
+ import { CheckedIcon } from "../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
6
+ import { UncheckedIcon } from "../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
7
+ import { Menu } from "./checkboxMenu.styles";
8
+ export const CheckboxMenu = ({ label: buttonLabel, onReset, options, }) => {
9
+ const [anchorEl, setAnchorEl] = useState(null);
10
+ const open = Boolean(anchorEl);
11
+ const onOpenMenu = (event) => {
12
+ setAnchorEl(event.currentTarget);
13
+ };
14
+ const onCloseMenu = () => {
15
+ setAnchorEl(null);
16
+ };
17
+ return (React.createElement(React.Fragment, null,
18
+ React.createElement(DropdownButton, { onClick: onOpenMenu, open: open }, buttonLabel),
19
+ React.createElement(Menu, { anchorEl: anchorEl, anchorOrigin: { horizontal: "right", vertical: "bottom" }, onClose: onCloseMenu, open: open, slotProps: { paper: { variant: "menu" } }, transformOrigin: {
20
+ horizontal: "right",
21
+ vertical: "top",
22
+ } },
23
+ options.map(({ checked, disabled = false, label, onChange, value }) => (React.createElement(ListItemButton, { disabled: disabled, key: value, onClick: onChange, role: undefined },
24
+ React.createElement(Checkbox, { checked: checked, checkedIcon: React.createElement(CheckedIcon, null), disabled: disabled, icon: React.createElement(UncheckedIcon, null) }),
25
+ React.createElement(ListItemText, { disableTypography: true, primary: React.createElement("span", null, label) })))),
26
+ React.createElement(ListItem, { component: "div" },
27
+ React.createElement(ButtonTextPrimary, { onClick: onReset }, "Reset")))));
28
+ };
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta } from "@storybook/react";
2
+ import { CheckboxMenu } from "./checkboxMenu";
3
+ declare const _default: ComponentMeta<typeof CheckboxMenu>;
4
+ export default _default;
5
+ export declare const CheckboxMenuStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./checkboxMenu").CheckboxMenuProps>;
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import { CheckboxMenu } from "./checkboxMenu";
3
+ export default {
4
+ argTypes: {
5
+ label: { control: "text" },
6
+ onReset: { control: { disabled: true } },
7
+ options: { control: "array" },
8
+ },
9
+ component: CheckboxMenu,
10
+ title: "Components/Common/Menu/CheckboxMenu",
11
+ };
12
+ const CheckboxMenuTemplate = (args) => (React.createElement(CheckboxMenu, { ...args }));
13
+ const onChange = () => {
14
+ // onChange function
15
+ };
16
+ const onReset = () => {
17
+ // onReset function
18
+ };
19
+ export const CheckboxMenuStory = CheckboxMenuTemplate.bind({});
20
+ CheckboxMenuStory.args = {
21
+ label: "Options",
22
+ onReset: onReset,
23
+ options: [
24
+ {
25
+ checked: true,
26
+ disabled: true,
27
+ label: "Item 1",
28
+ onChange,
29
+ value: "item_1",
30
+ },
31
+ {
32
+ checked: false,
33
+ disabled: false,
34
+ label: "Item 2",
35
+ onChange,
36
+ value: "item_2",
37
+ },
38
+ {
39
+ checked: true,
40
+ disabled: false,
41
+ label: "Item 3",
42
+ onChange,
43
+ value: "item_3",
44
+ },
45
+ ],
46
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Menu: import("@emotion/styled").StyledComponent<import("@mui/material").MenuProps & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -0,0 +1,21 @@
1
+ import styled from "@emotion/styled";
2
+ import { Menu as MMenu } from "@mui/material";
3
+ export const Menu = styled(MMenu) `
4
+ .MuiPaper-menu {
5
+ margin: 4px 0;
6
+ }
7
+
8
+ // List item button
9
+ .MuiListItemButton-root {
10
+ gap: 8px;
11
+ }
12
+
13
+ // List item
14
+ .MuiListItem-root {
15
+ padding: 10px 16px;
16
+ }
17
+
18
+ .MuiListItemButton-root.Mui-disabled {
19
+ opacity: 1;
20
+ }
21
+ `;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EntityViewToggle: () => JSX.Element;