@databiosphere/findable-ui 34.1.0 → 35.0.2

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 (272) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +26 -0
  3. package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +6 -0
  4. package/lib/components/DataDictionary/components/Table/columns/columnDef.js +33 -0
  5. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +5 -0
  6. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +5 -0
  7. package/lib/components/DataDictionary/components/Table/columns/types.d.ts +2 -0
  8. package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +4 -0
  9. package/lib/components/DataDictionary/components/Table/components/BasicCell/types.js +1 -0
  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/Filter/components/Filter/filter.stories.d.ts +25 -0
  13. package/lib/components/Filter/components/Filter/filter.stories.js +42 -0
  14. package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +16 -0
  15. package/lib/components/Filter/components/FilterTag/filterTag.stories.js +17 -0
  16. package/lib/components/Filter/components/Filters/filters.stories.d.ts +6 -0
  17. package/lib/components/Filter/components/Filters/filters.stories.js +91 -0
  18. package/lib/components/Index/components/Cell/cell.d.ts +7 -0
  19. package/lib/components/Index/components/Cell/cell.js +10 -0
  20. package/lib/components/Index/components/EntitiesView/constants.d.ts +1 -0
  21. package/lib/components/Index/components/EntitiesView/constants.js +1 -0
  22. package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +13 -0
  23. package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.js +18 -0
  24. package/lib/components/Index/components/Hero/hero.stories.d.ts +23 -0
  25. package/lib/components/Index/components/Hero/hero.stories.js +22 -0
  26. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +8 -0
  27. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +57 -0
  28. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +4 -0
  29. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +10 -0
  30. package/lib/components/Index/components/NTag/nTag.d.ts +10 -0
  31. package/lib/components/Index/components/NTag/nTag.js +8 -0
  32. package/lib/components/Index/components/NTagCell/nTagCell.d.ts +11 -0
  33. package/lib/components/Index/components/NTagCell/nTagCell.js +29 -0
  34. package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -0
  35. package/lib/components/Index/components/NTagCell/nTagCell.stories.js +16 -0
  36. package/lib/components/Index/components/TitleCell/titleCell.d.ts +6 -0
  37. package/lib/components/Index/components/TitleCell/titleCell.js +10 -0
  38. package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +3 -0
  39. package/lib/components/Index/components/TitleCell/titleCell.styles.js +6 -0
  40. package/lib/components/Index/index.stories.d.ts +6 -0
  41. package/lib/components/Index/index.stories.js +26 -0
  42. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +6 -0
  43. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +10 -0
  44. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +5 -0
  45. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +29 -0
  46. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +6 -0
  47. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +13 -0
  48. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +36 -0
  49. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +9 -0
  50. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +5 -0
  51. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +10 -0
  52. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +36 -0
  53. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +9 -0
  54. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +5 -0
  55. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +19 -0
  56. package/lib/components/Layout/components/Outline/common/constants.d.ts +2 -0
  57. package/lib/components/Layout/components/Outline/common/constants.js +1 -0
  58. package/lib/components/Login/login.stories.d.ts +6 -0
  59. package/lib/components/Login/login.stories.js +31 -0
  60. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +16 -0
  61. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +28 -0
  62. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +5 -0
  63. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +46 -0
  64. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +3 -0
  65. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +21 -0
  66. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +2 -0
  67. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +37 -0
  68. package/lib/components/TableCreator/common/constants.d.ts +6 -0
  69. package/lib/components/TableCreator/common/constants.js +19 -0
  70. package/lib/components/TableCreator/common/entities.d.ts +5 -0
  71. package/lib/components/TableCreator/common/entities.js +1 -0
  72. package/lib/components/TableCreator/tableCreator.styles.d.ts +4 -0
  73. package/lib/components/TableCreator/tableCreator.styles.js +4 -0
  74. package/lib/components/common/Alert/alert.stories.d.ts +6 -0
  75. package/lib/components/common/Alert/alert.stories.js +36 -0
  76. package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +4 -0
  77. package/lib/components/common/Alert/components/AlertText/alertText.styles.js +19 -0
  78. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +7 -0
  79. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +5 -0
  80. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +3 -0
  81. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +19 -0
  82. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +10 -0
  83. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +16 -0
  84. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +3 -0
  85. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +21 -0
  86. package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +3 -0
  87. package/lib/components/common/Button/components/LoginButton/loginButton.js +6 -0
  88. package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +7 -0
  89. package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +11 -0
  90. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +5 -0
  91. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +10 -0
  92. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +3 -0
  93. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +9 -0
  94. package/lib/hooks/stateSyncManager/hook.d.ts +19 -0
  95. package/lib/hooks/stateSyncManager/hook.js +35 -0
  96. package/lib/hooks/stateSyncManager/hooks/UseBeforePopState/hook.d.ts +1 -0
  97. package/lib/hooks/stateSyncManager/hooks/UseBeforePopState/hook.js +21 -0
  98. package/lib/hooks/stateSyncManager/hooks/UseMetaCommands/hook.d.ts +2 -0
  99. package/lib/hooks/stateSyncManager/hooks/UseMetaCommands/hook.js +23 -0
  100. package/lib/hooks/stateSyncManager/hooks/UseMetaCommands/types.d.ts +4 -0
  101. package/lib/hooks/stateSyncManager/hooks/UseStateSync/hook.d.ts +2 -0
  102. package/lib/hooks/stateSyncManager/hooks/UseStateSync/hook.js +40 -0
  103. package/lib/hooks/stateSyncManager/hooks/UseStateSync/utils.d.ts +30 -0
  104. package/lib/hooks/stateSyncManager/hooks/UseStateSync/utils.js +41 -0
  105. package/lib/hooks/stateSyncManager/types.d.ts +26 -0
  106. package/lib/hooks/stateSyncManager/types.js +1 -0
  107. package/lib/hooks/useAuthentication/common/constants.d.ts +4 -0
  108. package/lib/hooks/useAuthentication/common/constants.js +19 -0
  109. package/lib/hooks/useAuthentication/common/entities.d.ts +25 -0
  110. package/lib/hooks/useAuthentication/common/entities.js +11 -0
  111. package/lib/hooks/useAuthentication/common/utils.d.ts +15 -0
  112. package/lib/hooks/useAuthentication/common/utils.js +25 -0
  113. package/lib/hooks/useAuthentication/useAuthentication.d.ts +6 -0
  114. package/lib/hooks/useAuthentication/useAuthentication.js +9 -0
  115. package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +6 -0
  116. package/lib/hooks/useAuthentication/useAuthenticationComplete.js +55 -0
  117. package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +20 -0
  118. package/lib/hooks/useAuthentication/useAuthenticationForm.js +88 -0
  119. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +18 -0
  120. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +50 -0
  121. package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +20 -0
  122. package/lib/hooks/useAuthentication/useAuthenticationStatus.js +32 -0
  123. package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +21 -0
  124. package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +41 -0
  125. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +18 -0
  126. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +62 -0
  127. package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +24 -0
  128. package/lib/hooks/useAuthentication/useFetchTerraProfile.js +62 -0
  129. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +15 -0
  130. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +62 -0
  131. package/lib/hooks/useAuthentication/useTokenClient.d.ts +11 -0
  132. package/lib/hooks/useAuthentication/useTokenClient.js +29 -0
  133. package/lib/hooks/useAuthenticationConfig.d.ts +6 -0
  134. package/lib/hooks/useAuthenticationConfig.js +14 -0
  135. package/lib/hooks/useCategoryConfigs.d.ts +6 -0
  136. package/lib/hooks/useCategoryConfigs.js +17 -0
  137. package/lib/hooks/useEntityListRelatedView.d.ts +15 -0
  138. package/lib/hooks/useEntityListRelatedView.js +62 -0
  139. package/lib/hooks/useExploreMode.d.ts +14 -0
  140. package/lib/hooks/useExploreMode.js +20 -0
  141. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +15 -0
  142. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +27 -0
  143. package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +5 -0
  144. package/lib/hooks/useFileManifest/useFileManifestURL.js +11 -0
  145. package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +9 -0
  146. package/lib/hooks/useFileManifest/useRequestFileManifest.js +37 -0
  147. package/lib/hooks/useLayoutState.d.ts +6 -0
  148. package/lib/hooks/useLayoutState.js +9 -0
  149. package/lib/hooks/useMenu.d.ts +10 -0
  150. package/lib/hooks/useMenu.js +17 -0
  151. package/lib/hooks/useMenuWithPosition.d.ts +14 -0
  152. package/lib/hooks/useMenuWithPosition.js +33 -0
  153. package/lib/hooks/useSessionTimeout.d.ts +11 -0
  154. package/lib/hooks/useSessionTimeout.js +28 -0
  155. package/lib/providers/authentication.d.ts +51 -0
  156. package/lib/providers/authentication.js +110 -0
  157. package/lib/providers/exploreState/actions/stateToUrl/action.d.ts +9 -0
  158. package/lib/providers/exploreState/actions/stateToUrl/action.js +14 -0
  159. package/lib/providers/exploreState/actions/stateToUrl/dispatch.d.ts +7 -0
  160. package/lib/providers/exploreState/actions/{syncStateFromUrl → stateToUrl}/dispatch.js +3 -3
  161. package/lib/providers/exploreState/actions/stateToUrl/types.d.ts +12 -0
  162. package/lib/providers/exploreState/actions/stateToUrl/types.js +5 -0
  163. package/lib/providers/exploreState/actions/urlToState/action.d.ts +9 -0
  164. package/lib/providers/exploreState/actions/urlToState/action.js +38 -0
  165. package/lib/providers/exploreState/actions/urlToState/dispatch.d.ts +7 -0
  166. package/lib/providers/exploreState/actions/urlToState/dispatch.js +12 -0
  167. package/lib/providers/exploreState/actions/urlToState/types.d.ts +9 -0
  168. package/lib/providers/exploreState/actions/urlToState/types.js +1 -0
  169. package/lib/providers/exploreState/actions/urlToState/utils.d.ts +7 -0
  170. package/lib/providers/exploreState/actions/urlToState/utils.js +13 -0
  171. package/lib/providers/{exploreStateSync/hooks/UseMetaCommands/utils.d.ts → exploreState/entities/query/buildQuery.d.ts} +10 -14
  172. package/lib/providers/{exploreStateSync/hooks/UseMetaCommands/utils.js → exploreState/entities/query/buildQuery.js} +13 -21
  173. package/lib/providers/exploreState/entities/state.d.ts +10 -0
  174. package/lib/providers/exploreState/entities/state.js +36 -0
  175. package/lib/providers/exploreState/entities/types.d.ts +16 -0
  176. package/lib/providers/exploreState/entities/types.js +1 -0
  177. package/lib/providers/exploreState/entities.d.ts +1 -1
  178. package/lib/providers/exploreState/initializer/constants.js +1 -0
  179. package/lib/providers/exploreState/initializer/utils.js +26 -1
  180. package/lib/providers/exploreState.d.ts +8 -4
  181. package/lib/providers/exploreState.js +20 -15
  182. package/lib/providers/layoutState.d.ts +40 -0
  183. package/lib/providers/layoutState.js +47 -0
  184. package/lib/providers/services/provider.d.ts +14 -0
  185. package/lib/providers/services/provider.js +18 -0
  186. package/lib/providers/services/wasPop/context.d.ts +2 -0
  187. package/lib/providers/services/wasPop/context.js +5 -0
  188. package/lib/providers/services/wasPop/hook.d.ts +2 -0
  189. package/lib/providers/services/wasPop/hook.js +5 -0
  190. package/lib/providers/services/wasPop/provider.d.ts +16 -0
  191. package/lib/providers/services/wasPop/provider.js +30 -0
  192. package/lib/providers/services/wasPop/types.d.ts +6 -0
  193. package/lib/providers/services/wasPop/types.js +1 -0
  194. package/lib/services/beforePopState/popStateBus.d.ts +20 -0
  195. package/lib/services/beforePopState/popStateBus.js +58 -0
  196. package/lib/services/beforePopState/types.d.ts +11 -0
  197. package/lib/services/beforePopState/types.js +1 -0
  198. package/lib/services/beforePopState/useOnPopState.d.ts +2 -0
  199. package/lib/services/beforePopState/useOnPopState.js +10 -0
  200. package/lib/services/beforePopState/usePopStateBus.d.ts +6 -0
  201. package/lib/services/beforePopState/usePopStateBus.js +12 -0
  202. package/lib/styles/common/mixins/shadows.d.ts +3 -0
  203. package/lib/styles/common/mixins/shadows.js +4 -0
  204. package/lib/styles/common/mui/palette.d.ts +47 -0
  205. package/lib/styles/common/mui/palette.js +47 -0
  206. package/lib/theme/common/entities.d.ts +6 -0
  207. package/lib/theme/common/entities.js +1 -0
  208. package/lib/views/ExploreView/exploreView.js +15 -2
  209. package/lib/views/ExploreView/utils.d.ts +14 -0
  210. package/lib/views/ExploreView/utils.js +17 -0
  211. package/package.json +1 -1
  212. package/src/hooks/stateSyncManager/hook.ts +47 -0
  213. package/src/hooks/stateSyncManager/hooks/UseBeforePopState/hook.ts +30 -0
  214. package/src/hooks/stateSyncManager/hooks/UseMetaCommands/hook.ts +30 -0
  215. package/src/hooks/stateSyncManager/hooks/UseMetaCommands/types.ts +4 -0
  216. package/src/hooks/stateSyncManager/hooks/UseStateSync/hook.ts +52 -0
  217. package/src/hooks/stateSyncManager/hooks/UseStateSync/utils.ts +58 -0
  218. package/src/hooks/stateSyncManager/types.ts +34 -0
  219. package/src/providers/exploreState/actions/stateToUrl/action.ts +20 -0
  220. package/src/providers/exploreState/actions/stateToUrl/dispatch.ts +14 -0
  221. package/src/providers/exploreState/actions/stateToUrl/types.ts +15 -0
  222. package/src/providers/exploreState/actions/urlToState/action.ts +74 -0
  223. package/src/providers/exploreState/actions/urlToState/dispatch.ts +14 -0
  224. package/src/providers/exploreState/actions/urlToState/types.ts +11 -0
  225. package/src/providers/exploreState/actions/urlToState/utils.ts +18 -0
  226. package/src/providers/{exploreStateSync/hooks/UseMetaCommands/utils.ts → exploreState/entities/query/buildQuery.ts} +23 -26
  227. package/src/providers/exploreState/entities/state.ts +50 -0
  228. package/src/providers/exploreState/entities/types.ts +19 -0
  229. package/src/providers/exploreState/entities.ts +1 -1
  230. package/src/providers/exploreState/initializer/constants.ts +1 -0
  231. package/src/providers/exploreState/initializer/utils.ts +30 -1
  232. package/src/providers/exploreState.tsx +27 -20
  233. package/src/providers/services/provider.tsx +25 -0
  234. package/src/providers/services/wasPop/context.ts +7 -0
  235. package/src/providers/services/wasPop/hook.ts +7 -0
  236. package/src/providers/services/wasPop/provider.tsx +45 -0
  237. package/src/providers/services/wasPop/types.ts +7 -0
  238. package/src/services/beforePopState/popStateBus.ts +64 -0
  239. package/src/services/beforePopState/types.ts +15 -0
  240. package/src/services/beforePopState/useOnPopState.ts +15 -0
  241. package/src/services/beforePopState/usePopStateBus.ts +14 -0
  242. package/src/views/ExploreView/exploreView.tsx +17 -3
  243. package/src/views/ExploreView/utils.ts +25 -0
  244. package/lib/providers/exploreState/actions/syncStateFromUrl/action.d.ts +0 -10
  245. package/lib/providers/exploreState/actions/syncStateFromUrl/action.js +0 -25
  246. package/lib/providers/exploreState/actions/syncStateFromUrl/dispatch.d.ts +0 -7
  247. package/lib/providers/exploreState/actions/syncStateFromUrl/types.d.ts +0 -8
  248. package/lib/providers/exploreState/actions/syncStateFromUrl/utils.d.ts +0 -9
  249. package/lib/providers/exploreState/actions/syncStateFromUrl/utils.js +0 -23
  250. package/lib/providers/exploreState/hooks/UseBeforePopState/useBeforePopState.d.ts +0 -18
  251. package/lib/providers/exploreState/hooks/UseBeforePopState/useBeforePopState.js +0 -41
  252. package/lib/providers/exploreState/hooks/UseBeforePopState/utils.d.ts +0 -23
  253. package/lib/providers/exploreState/hooks/UseBeforePopState/utils.js +0 -68
  254. package/lib/providers/exploreStateSync/hooks/UseMetaCommands/handlers.d.ts +0 -10
  255. package/lib/providers/exploreStateSync/hooks/UseMetaCommands/handlers.js +0 -18
  256. package/lib/providers/exploreStateSync/hooks/UseMetaCommands/hook.d.ts +0 -1
  257. package/lib/providers/exploreStateSync/hooks/UseMetaCommands/hook.js +0 -33
  258. package/lib/providers/exploreStateSync/hooks/UseMetaCommands/types.d.ts +0 -11
  259. package/lib/providers/exploreStateSync/provider.d.ts +0 -19
  260. package/lib/providers/exploreStateSync/provider.js +0 -22
  261. package/src/providers/exploreState/actions/syncStateFromUrl/action.ts +0 -44
  262. package/src/providers/exploreState/actions/syncStateFromUrl/dispatch.ts +0 -16
  263. package/src/providers/exploreState/actions/syncStateFromUrl/types.ts +0 -13
  264. package/src/providers/exploreState/actions/syncStateFromUrl/utils.ts +0 -31
  265. package/src/providers/exploreState/hooks/UseBeforePopState/useBeforePopState.ts +0 -46
  266. package/src/providers/exploreState/hooks/UseBeforePopState/utils.ts +0 -93
  267. package/src/providers/exploreStateSync/hooks/UseMetaCommands/handlers.ts +0 -25
  268. package/src/providers/exploreStateSync/hooks/UseMetaCommands/hook.ts +0 -38
  269. package/src/providers/exploreStateSync/hooks/UseMetaCommands/types.ts +0 -13
  270. package/src/providers/exploreStateSync/provider.tsx +0 -29
  271. /package/lib/{providers/exploreState/actions/syncStateFromUrl → components/DataDictionary/components/Table/columns}/types.js +0 -0
  272. /package/lib/{providers/exploreStateSync → hooks/stateSyncManager}/hooks/UseMetaCommands/types.js +0 -0
@@ -0,0 +1,10 @@
1
+ import { Typography } from "@mui/material";
2
+ import React from "react";
3
+ import { TEXT_BODY_400 } from "../../../../theme/common/typography";
4
+ import { Link } from "../../../Links/components/Link/link";
5
+ import { TitleCell as Cell } from "./titleCell.styles";
6
+ export const TitleCell = ({ title, ...props }) => {
7
+ return (React.createElement(Cell, { gridSx: { gap: 1 } },
8
+ typeof title === "string" ? (React.createElement(Typography, { variant: TEXT_BODY_400 }, title)) : (title),
9
+ React.createElement(Link, { ...props })));
10
+ };
@@ -0,0 +1,3 @@
1
+ export declare const TitleCell: import("@emotion/styled").StyledComponent<import("../../../common/Grid/grid").GridProps & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -0,0 +1,6 @@
1
+ import styled from "@emotion/styled";
2
+ import { textBodySmall400 } from "../../../../styles/common/mixins/fonts";
3
+ import { Grid } from "../../../common/Grid/grid";
4
+ export const TitleCell = styled(Grid) `
5
+ ${textBodySmall400};
6
+ `;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { Index } from "./index";
3
+ declare const _default: Meta<typeof Index>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof Index>;
6
+ export declare const IndexStory: Story;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { Summaries } from "./components/Hero/components/Summaries/summaries";
3
+ import { SummariesStory } from "./components/Hero/components/Summaries/summaries.stories";
4
+ import { Index } from "./index";
5
+ export default {
6
+ argTypes: {
7
+ Summaries: { table: { disable: true } },
8
+ Tabs: { table: { disable: true } },
9
+ list: { table: { disable: true } },
10
+ title: { table: { disable: true } },
11
+ },
12
+ component: Index,
13
+ parameters: {
14
+ layout: "fullscreen",
15
+ },
16
+ title: "Views/ExploreView",
17
+ };
18
+ export const IndexStory = {
19
+ args: {
20
+ Summaries: React.createElement(Summaries, { ...SummariesStory.args }),
21
+ Tabs: undefined,
22
+ chart: undefined,
23
+ list: undefined,
24
+ title: "Explore Data",
25
+ },
26
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { BackPageHero } from "./backPageHero";
3
+ declare const _default: Meta<typeof BackPageHero>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof BackPageHero>;
6
+ export declare const BackPageHeroStory: Story;
@@ -0,0 +1,10 @@
1
+ import { BackPageHero } from "./backPageHero";
2
+ export default {
3
+ component: BackPageHero,
4
+ title: "Components/Hero",
5
+ };
6
+ export const BackPageHeroStory = {
7
+ args: {
8
+ title: "A Single-Cell Transcriptomic Map of the Human and Mouse Pancreas Reveals Inter- and Intra-cell Population Structure",
9
+ },
10
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta } from "@storybook/react";
2
+ import { AuthenticationMenu } from "./authenticationMenu";
3
+ declare const _default: Meta<typeof AuthenticationMenu>;
4
+ export default _default;
5
+ export declare const AuthenticationMenuStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./authenticationMenu").AuthenticationMenuProps>;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { AuthenticationMenu } from "./authenticationMenu";
3
+ export default {
4
+ argTypes: {
5
+ onLogout: {
6
+ description: "Callback to be called when 'Logout' button is clicked",
7
+ },
8
+ userProfile: {
9
+ description: "User profile with name and avatar",
10
+ },
11
+ },
12
+ component: AuthenticationMenu,
13
+ title: "Components/Navigation/AuthenticationMenu",
14
+ };
15
+ const AuthenticationMenuTemplate = (args) => React.createElement(AuthenticationMenu, { ...args });
16
+ export const AuthenticationMenuStory = AuthenticationMenuTemplate.bind({});
17
+ AuthenticationMenuStory.args = {
18
+ userProfile: {
19
+ email: "john@smith.com",
20
+ email_verified: true,
21
+ family_name: "Smith",
22
+ given_name: "John",
23
+ hd: "",
24
+ locale: "",
25
+ name: "john_smith",
26
+ picture: "https://i.pravatar.cc/200",
27
+ sub: "",
28
+ },
29
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface RequestAuthenticationProps {
3
+ closeMenu: () => void;
4
+ requestAuthorization: () => void;
5
+ }
6
+ export declare const RequestAuthentication: ({ closeMenu, requestAuthorization, }: RequestAuthenticationProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import LoginRoundedIcon from "@mui/icons-material/LoginRounded";
2
+ import { IconButton as MIconButton } from "@mui/material";
3
+ import React from "react";
4
+ import { useBreakpoint } from "../../../../../../../../../../../../hooks/useBreakpoint";
5
+ import { Button } from "./requestAuthentication.styles";
6
+ export const RequestAuthentication = ({ closeMenu, requestAuthorization, }) => {
7
+ const { mdUp } = useBreakpoint();
8
+ return mdUp ? (React.createElement(Button, { onClick: requestAuthorization, startIcon: React.createElement(LoginRoundedIcon, null), variant: "nav" }, "Sign in")) : (React.createElement(MIconButton, { color: "ink", onClick: () => {
9
+ closeMenu();
10
+ requestAuthorization();
11
+ } },
12
+ React.createElement(LoginRoundedIcon, null)));
13
+ };
@@ -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
+ `;
@@ -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
+ `;
@@ -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 = "";
@@ -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
+ };
@@ -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;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EntityViewToggle = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const useExploreState_1 = require("../../../../hooks/useExploreState");
9
+ const exploreState_1 = require("../../../../providers/exploreState");
10
+ const toggleButtonGroup_1 = require("../../../common/ToggleButtonGroup/toggleButtonGroup");
11
+ const EntityViewToggle = () => {
12
+ const { exploreDispatch } = (0, useExploreState_1.useExploreState)();
13
+ const toggleButtons = [
14
+ {
15
+ label: "Exact Match",
16
+ onToggle: () => onChange(exploreState_1.ENTITY_VIEW.EXACT),
17
+ value: exploreState_1.ENTITY_VIEW.EXACT,
18
+ },
19
+ {
20
+ label: "Related Match",
21
+ onToggle: () => onChange(exploreState_1.ENTITY_VIEW.RELATED),
22
+ value: exploreState_1.ENTITY_VIEW.RELATED,
23
+ },
24
+ ];
25
+ /**
26
+ * Callback fired when toggle button value changes.
27
+ * @param entityView - Entity list view.
28
+ */
29
+ const onChange = (entityView) => {
30
+ exploreDispatch({
31
+ payload: entityView,
32
+ type: exploreState_1.ExploreActionKind.ToggleEntityView,
33
+ });
34
+ };
35
+ return react_1.default.createElement(toggleButtonGroup_1.ToggleButtonGroup, { toggleButtons: toggleButtons });
36
+ };
37
+ exports.EntityViewToggle = EntityViewToggle;
@@ -0,0 +1,6 @@
1
+ import { RowData } from "@tanstack/react-table";
2
+ import { BaseColumnConfig } from "./entities";
3
+ export declare const ACCESSOR_KEYS: {
4
+ SELECT: string;
5
+ };
6
+ export declare const COLUMN_CONFIGS: Record<string, BaseColumnConfig<RowData, unknown>>;
@@ -0,0 +1,19 @@
1
+ import { RowSelectionCell } from "../../Table/components/TableCell/components/RowSelectionCell/rowSelectionCell";
2
+ export const ACCESSOR_KEYS = {
3
+ SELECT: "select",
4
+ };
5
+ export const COLUMN_CONFIGS = {
6
+ SELECT: {
7
+ columnPinned: false,
8
+ columnVisible: false,
9
+ componentConfig: { component: RowSelectionCell },
10
+ disableHiding: true,
11
+ disableSorting: true,
12
+ header: ACCESSOR_KEYS.SELECT,
13
+ id: ACCESSOR_KEYS.SELECT,
14
+ meta: {
15
+ header: "",
16
+ },
17
+ width: "max-content",
18
+ },
19
+ };
@@ -0,0 +1,5 @@
1
+ import { ColumnMeta } from "@tanstack/react-table";
2
+ import { ColumnConfig } from "../../../config/entities";
3
+ export interface BaseColumnConfig<T, TValue> extends ColumnConfig<T> {
4
+ meta?: ColumnMeta<T, TValue>;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const TableCreator: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,4 @@
1
+ import styled from "@emotion/styled";
2
+ export const TableCreator = styled.div `
3
+ position: relative; // Required; when the table mounts, the loading element should not transition in and therefore to position the loading element correctly, the parent container must be styled with position relative.
4
+ `;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { Alert } from "./alert";
3
+ declare const _default: Meta<typeof Alert>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof Alert>;
6
+ export declare const AlertStory: Story;
@@ -0,0 +1,36 @@
1
+ import { Alert } from "./alert";
2
+ export default {
3
+ argTypes: {
4
+ children: {
5
+ control: "text",
6
+ description: "Inner text",
7
+ },
8
+ color: {
9
+ description: "Color of alert",
10
+ },
11
+ icon: {
12
+ control: "text",
13
+ description: "Top left icon. If provided will replace severity.",
14
+ },
15
+ severity: {
16
+ description: "Top left predefined icon. Combine with color.",
17
+ },
18
+ title: {
19
+ control: "text",
20
+ description: "Highlighted text",
21
+ },
22
+ variant: {
23
+ description: "Type of the alert",
24
+ },
25
+ },
26
+ component: Alert,
27
+ title: "Components/Common/Alert",
28
+ };
29
+ export const AlertStory = {
30
+ args: {
31
+ children: "Something certainly happened",
32
+ color: "warning",
33
+ severity: "warning",
34
+ title: "Ouch!",
35
+ },
36
+ };
@@ -0,0 +1,4 @@
1
+ export declare const AlertText: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,19 @@
1
+ import styled from "@emotion/styled";
2
+ export const AlertText = styled.div `
3
+ ul {
4
+ padding-left: 24px;
5
+ margin: 8px 0;
6
+
7
+ li {
8
+ margin: 4px 0;
9
+
10
+ &:last-child {
11
+ margin-bottom: 0;
12
+ }
13
+ }
14
+ }
15
+
16
+ *:last-child {
17
+ margin-bottom: 0;
18
+ }
19
+ `;
@@ -0,0 +1,7 @@
1
+ import { AlertProps as MAlertProps } from "@mui/material";
2
+ import { ReactNode } from "react";
3
+ export interface BannerPrimaryProps extends MAlertProps {
4
+ children: ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare const BannerPrimary: ({ children, className, ...props }: BannerPrimaryProps) => JSX.Element;