synapse-react-client 4.0.38 → 4.0.40

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 (222) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/aridhia-queries/useAridhiaQuery.d.ts +6 -2
  3. package/dist/aridhia-queries/useAridhiaQuery.d.ts.map +1 -1
  4. package/dist/aridhia-queries/useAridhiaQuery.js +3 -0
  5. package/dist/aridhia-queries/useAridhiaQuery.js.map +1 -1
  6. package/dist/components/Aridhia/AridhiaAccessStatus.d.ts +2 -1
  7. package/dist/components/Aridhia/AridhiaAccessStatus.d.ts.map +1 -1
  8. package/dist/components/Aridhia/AridhiaAccessStatus.js +60 -37
  9. package/dist/components/Aridhia/AridhiaAccessStatus.js.map +1 -1
  10. package/dist/components/Aridhia/AridhiaDarStatusPopover.d.ts +12 -0
  11. package/dist/components/Aridhia/AridhiaDarStatusPopover.d.ts.map +1 -0
  12. package/dist/components/Aridhia/AridhiaDarStatusPopover.js +56 -0
  13. package/dist/components/Aridhia/AridhiaDarStatusPopover.js.map +1 -0
  14. package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.d.ts.map +1 -1
  15. package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.js +38 -30
  16. package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.js.map +1 -1
  17. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js +15 -14
  18. package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js.map +1 -1
  19. package/dist/components/Aridhia/RdcaDapEligibilityDialog.d.ts +11 -0
  20. package/dist/components/Aridhia/RdcaDapEligibilityDialog.d.ts.map +1 -0
  21. package/dist/components/Aridhia/RdcaDapEligibilityDialog.js +37 -0
  22. package/dist/components/Aridhia/RdcaDapEligibilityDialog.js.map +1 -0
  23. package/dist/components/Aridhia/aridhiaAccessStatusUtils.js +2 -2
  24. package/dist/components/Aridhia/aridhiaAccessStatusUtils.js.map +1 -1
  25. package/dist/components/Aridhia/aridhiaFairPortalUrls.d.ts +10 -0
  26. package/dist/components/Aridhia/aridhiaFairPortalUrls.d.ts.map +1 -0
  27. package/dist/components/Aridhia/aridhiaFairPortalUrls.js +11 -0
  28. package/dist/components/Aridhia/aridhiaFairPortalUrls.js.map +1 -0
  29. package/dist/components/Aridhia/rdcaDapConstants.d.ts +3 -0
  30. package/dist/components/Aridhia/rdcaDapConstants.d.ts.map +1 -0
  31. package/dist/components/Aridhia/rdcaDapConstants.js +6 -0
  32. package/dist/components/Aridhia/rdcaDapConstants.js.map +1 -0
  33. package/dist/components/DataExplorer/DataExplorer.css +1 -1
  34. package/dist/components/DataExplorer/DataExplorer.d.ts.map +1 -1
  35. package/dist/components/DataExplorer/DataExplorer.js +50 -50
  36. package/dist/components/DataExplorer/DataExplorer.js.map +1 -1
  37. package/dist/components/DataExplorer/DataExplorer.module.js +16 -16
  38. package/dist/components/DataExplorer/DataExplorer.module.js.map +1 -1
  39. package/dist/components/DataExplorer/DataExplorer.module.scss +29 -6
  40. package/dist/components/DataGrid/columns/DateTimeColumn.d.ts +16 -7
  41. package/dist/components/DataGrid/columns/DateTimeColumn.d.ts.map +1 -1
  42. package/dist/components/DataGrid/columns/DateTimeColumn.js +79 -57
  43. package/dist/components/DataGrid/columns/DateTimeColumn.js.map +1 -1
  44. package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
  45. package/dist/components/DataGrid/utils/columnFactory.js +11 -8
  46. package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
  47. package/dist/components/DatePicker/DatePicker.d.ts +10 -0
  48. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
  49. package/dist/components/DatePicker/DatePicker.js +18 -0
  50. package/dist/components/DatePicker/DatePicker.js.map +1 -0
  51. package/dist/components/EntityCitation/EntityCitation.d.ts.map +1 -1
  52. package/dist/components/EntityCitation/EntityCitation.js +8 -5
  53. package/dist/components/EntityCitation/EntityCitation.js.map +1 -1
  54. package/dist/components/HasAccess/AccessIcon.d.ts +3 -1
  55. package/dist/components/HasAccess/AccessIcon.d.ts.map +1 -1
  56. package/dist/components/HasAccess/AccessIcon.js +11 -1
  57. package/dist/components/HasAccess/AccessIcon.js.map +1 -1
  58. package/dist/components/PortalHomePageHeader/PortalHomePageHeader.d.ts +2 -1
  59. package/dist/components/PortalHomePageHeader/PortalHomePageHeader.d.ts.map +1 -1
  60. package/dist/components/PortalHomePageHeader/PortalHomePageHeader.js +81 -53
  61. package/dist/components/PortalHomePageHeader/PortalHomePageHeader.js.map +1 -1
  62. package/dist/components/ProjectInfo/ProjectInfo.d.ts.map +1 -1
  63. package/dist/components/ProjectInfo/ProjectInfo.js +3 -2
  64. package/dist/components/ProjectInfo/ProjectInfo.js.map +1 -1
  65. package/dist/components/QueryBuilder/FilterConditionRow.css +1 -0
  66. package/dist/components/QueryBuilder/FilterConditionRow.d.ts +6 -0
  67. package/dist/components/QueryBuilder/FilterConditionRow.d.ts.map +1 -0
  68. package/dist/components/QueryBuilder/FilterConditionRow.js +257 -0
  69. package/dist/components/QueryBuilder/FilterConditionRow.js.map +1 -0
  70. package/dist/components/QueryBuilder/FilterConditionRow.module.js +17 -0
  71. package/dist/components/QueryBuilder/FilterConditionRow.module.js.map +1 -0
  72. package/dist/components/QueryBuilder/FilterConditionRow.module.scss +106 -0
  73. package/dist/components/QueryBuilder/FilterGroupNode.css +1 -0
  74. package/dist/components/QueryBuilder/FilterGroupNode.d.ts +7 -0
  75. package/dist/components/QueryBuilder/FilterGroupNode.d.ts.map +1 -0
  76. package/dist/components/QueryBuilder/FilterGroupNode.js +100 -0
  77. package/dist/components/QueryBuilder/FilterGroupNode.js.map +1 -0
  78. package/dist/components/QueryBuilder/FilterGroupNode.module.js +15 -0
  79. package/dist/components/QueryBuilder/FilterGroupNode.module.js.map +1 -0
  80. package/dist/components/QueryBuilder/FilterGroupNode.module.scss +83 -0
  81. package/dist/components/QueryBuilder/QueryBuilderControls.css +1 -0
  82. package/dist/components/QueryBuilder/QueryBuilderControls.d.ts +21 -0
  83. package/dist/components/QueryBuilder/QueryBuilderControls.d.ts.map +1 -0
  84. package/dist/components/QueryBuilder/QueryBuilderControls.js +138 -0
  85. package/dist/components/QueryBuilder/QueryBuilderControls.js.map +1 -0
  86. package/dist/components/QueryBuilder/QueryBuilderControls.module.js +17 -0
  87. package/dist/components/QueryBuilder/QueryBuilderControls.module.js.map +1 -0
  88. package/dist/components/QueryBuilder/QueryBuilderControls.module.scss +79 -0
  89. package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts +39 -0
  90. package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts.map +1 -0
  91. package/dist/components/QueryBuilder/QueryBuilderInternalContext.js +19 -0
  92. package/dist/components/QueryBuilder/QueryBuilderInternalContext.js.map +1 -0
  93. package/dist/components/QueryBuilder/qbTreeToReadable.d.ts +14 -0
  94. package/dist/components/QueryBuilder/qbTreeToReadable.d.ts.map +1 -0
  95. package/dist/components/QueryBuilder/qbTreeToReadable.js +89 -0
  96. package/dist/components/QueryBuilder/qbTreeToReadable.js.map +1 -0
  97. package/dist/components/QueryBuilder/queryBuilderId.d.ts +2 -0
  98. package/dist/components/QueryBuilder/queryBuilderId.d.ts.map +1 -0
  99. package/dist/components/QueryBuilder/queryBuilderId.js +9 -0
  100. package/dist/components/QueryBuilder/queryBuilderId.js.map +1 -0
  101. package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts +24 -0
  102. package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts.map +1 -0
  103. package/dist/components/QueryBuilder/queryBuilderMetadata.js +91 -0
  104. package/dist/components/QueryBuilder/queryBuilderMetadata.js.map +1 -0
  105. package/dist/components/QueryBuilder/queryBuilderOperations.d.ts +58 -0
  106. package/dist/components/QueryBuilder/queryBuilderOperations.d.ts.map +1 -0
  107. package/dist/components/QueryBuilder/queryBuilderOperations.js +200 -0
  108. package/dist/components/QueryBuilder/queryBuilderOperations.js.map +1 -0
  109. package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts +3 -2
  110. package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts.map +1 -1
  111. package/dist/components/QueryBuilder/queryBuilderTranslation.js +82 -84
  112. package/dist/components/QueryBuilder/queryBuilderTranslation.js.map +1 -1
  113. package/dist/components/QueryBuilder/useQBCombinedSql.d.ts +11 -0
  114. package/dist/components/QueryBuilder/useQBCombinedSql.d.ts.map +1 -0
  115. package/dist/components/QueryBuilder/useQBCombinedSql.js +29 -0
  116. package/dist/components/QueryBuilder/useQBCombinedSql.js.map +1 -0
  117. package/dist/components/QueryBuilder/useQBFacetSourceMetadata.d.ts +18 -0
  118. package/dist/components/QueryBuilder/useQBFacetSourceMetadata.d.ts.map +1 -0
  119. package/dist/components/QueryBuilder/useQBFacetSourceMetadata.js +27 -0
  120. package/dist/components/QueryBuilder/useQBFacetSourceMetadata.js.map +1 -0
  121. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +14 -1
  122. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  123. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +185 -120
  124. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  125. package/dist/components/RssFeedCards/RssFeedCards.d.ts +1 -0
  126. package/dist/components/RssFeedCards/RssFeedCards.d.ts.map +1 -1
  127. package/dist/components/RssFeedCards/RssFeedCards.js +11 -11
  128. package/dist/components/RssFeedCards/RssFeedCards.js.map +1 -1
  129. package/dist/components/SynapseChat/SynapseChat.d.ts +7 -1
  130. package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
  131. package/dist/components/SynapseChat/SynapseChat.js +76 -71
  132. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  133. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts +3 -1
  134. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts.map +1 -1
  135. package/dist/components/SynapseChat/SynapsePortalChatDialog.js +24 -13
  136. package/dist/components/SynapseChat/SynapsePortalChatDialog.js.map +1 -1
  137. package/dist/components/SynapseChat/portalChatSessionStorage.d.ts +23 -0
  138. package/dist/components/SynapseChat/portalChatSessionStorage.d.ts.map +1 -0
  139. package/dist/components/SynapseChat/portalChatSessionStorage.js +29 -0
  140. package/dist/components/SynapseChat/portalChatSessionStorage.js.map +1 -0
  141. package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.d.ts +6 -0
  142. package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.d.ts.map +1 -1
  143. package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.js +92 -79
  144. package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.js.map +1 -1
  145. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts +3 -4
  146. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
  147. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +2 -2
  148. package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
  149. package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace.js +1 -1
  150. package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace.js.map +1 -1
  151. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
  152. package/dist/components/entity/page/action_menu/EntityActionMenu.js +9 -2
  153. package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
  154. package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +1 -1
  155. package/dist/components/entity/page/title_bar/EntityPageTitleBar.js.map +1 -1
  156. package/dist/components/menu/ComplexMenu.js +1 -1
  157. package/dist/components/menu/ComplexMenu.js.map +1 -1
  158. package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
  159. package/dist/components/menu/DropdownMenu.js +4 -0
  160. package/dist/components/menu/DropdownMenu.js.map +1 -1
  161. package/dist/features/entity/metadata-task/hooks/useMarkCurationTaskInProgress.d.ts +10 -0
  162. package/dist/features/entity/metadata-task/hooks/useMarkCurationTaskInProgress.d.ts.map +1 -0
  163. package/dist/features/entity/metadata-task/hooks/useMarkCurationTaskInProgress.js +20 -0
  164. package/dist/features/entity/metadata-task/hooks/useMarkCurationTaskInProgress.js.map +1 -0
  165. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts.map +1 -1
  166. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js +29 -20
  167. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js.map +1 -1
  168. package/dist/mocks/accessRequirement/mockFormTemplates.d.ts +16 -0
  169. package/dist/mocks/accessRequirement/mockFormTemplates.d.ts.map +1 -0
  170. package/dist/mocks/accessRequirement/mockFormTemplates.js +70 -0
  171. package/dist/mocks/accessRequirement/mockFormTemplates.js.map +1 -0
  172. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts +7 -0
  173. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts.map +1 -0
  174. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js +47 -0
  175. package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js.map +1 -0
  176. package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts +24 -0
  177. package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts.map +1 -0
  178. package/dist/mocks/accessRequirement/mockJsonSchemas.js +62 -0
  179. package/dist/mocks/accessRequirement/mockJsonSchemas.js.map +1 -0
  180. package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts +18 -1
  181. package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts.map +1 -1
  182. package/dist/mocks/msw/handlers/aridhiaHandlers.js +39 -33
  183. package/dist/mocks/msw/handlers/aridhiaHandlers.js.map +1 -1
  184. package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts +5 -0
  185. package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts.map +1 -0
  186. package/dist/mocks/msw/handlers/formTemplateHandlers.js +65 -0
  187. package/dist/mocks/msw/handlers/formTemplateHandlers.js.map +1 -0
  188. package/dist/mocks/msw/handlers.d.ts.map +1 -1
  189. package/dist/mocks/msw/handlers.js +49 -47
  190. package/dist/mocks/msw/handlers.js.map +1 -1
  191. package/dist/style/abstracts/_cssVariables.scss +7 -0
  192. package/dist/style/components/_query-wrapper-plot-nav.scss +9 -0
  193. package/dist/style/main.css +1 -1
  194. package/dist/synapse-queries/KeyFactory.d.ts +6 -1
  195. package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
  196. package/dist/synapse-queries/KeyFactory.js +17 -2
  197. package/dist/synapse-queries/KeyFactory.js.map +1 -1
  198. package/dist/synapse-queries/chat/useChat.d.ts.map +1 -1
  199. package/dist/synapse-queries/chat/useChat.js +2 -4
  200. package/dist/synapse-queries/chat/useChat.js.map +1 -1
  201. package/dist/synapse-queries/dataaccess/index.d.ts +2 -0
  202. package/dist/synapse-queries/dataaccess/index.d.ts.map +1 -1
  203. package/dist/synapse-queries/dataaccess/index.js +5 -3
  204. package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts +41 -0
  205. package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts.map +1 -0
  206. package/dist/synapse-queries/dataaccess/useFormTemplate.js +63 -0
  207. package/dist/synapse-queries/dataaccess/useFormTemplate.js.map +1 -0
  208. package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts +21 -0
  209. package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts.map +1 -0
  210. package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js +34 -0
  211. package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js.map +1 -0
  212. package/dist/synapse-queries/index.js +190 -180
  213. package/dist/testutils/ReactQueryMockUtils.js.map +1 -1
  214. package/dist/tsconfig.build.tsbuildinfo +1 -1
  215. package/dist/utils/featureflag/FeatureFlags.d.ts +0 -1
  216. package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
  217. package/dist/utils/featureflag/FeatureFlags.js +1 -1
  218. package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
  219. package/dist/utils/jsonschema/getType.d.ts.map +1 -1
  220. package/dist/utils/jsonschema/getType.js +4 -1
  221. package/dist/utils/jsonschema/getType.js.map +1 -1
  222. package/package.json +7 -7
@@ -10,7 +10,7 @@ import { Button as c, Skeleton as l } from "@mui/material";
10
10
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
11
11
  import { DoiObjectType as p } from "@sage-bionetworks/synapse-client";
12
12
  //#region src/components/EntityCitation/EntityCitation.tsx
13
- var m = "10px 12px", h = ({ projectId: h, entityId: g, versionNumber: _ }) => {
13
+ var m = "8px", h = ({ projectId: h, entityId: g, versionNumber: _ }) => {
14
14
  let { data: v, isLoading: y } = e(g, _), [b, x] = s(null), [S, C] = s(void 0), [w, T] = s(null), [E, D] = s(void 0), O = o(null), k = b ? "cite-as-popover" : void 0, A = a(g, _, h, v), { data: j, isLoading: M } = t({
15
15
  id: h,
16
16
  version: void 0,
@@ -31,6 +31,7 @@ var m = "10px 12px", h = ({ projectId: h, entityId: g, versionNumber: _ }) => {
31
31
  options: ["Cite this Project", "Cite only this page"],
32
32
  anchorRef: O,
33
33
  sx: {
34
+ height: "28px",
34
35
  width: {
35
36
  xs: "100%",
36
37
  sm: "initial"
@@ -42,7 +43,8 @@ var m = "10px 12px", h = ({ projectId: h, entityId: g, versionNumber: _ }) => {
42
43
  },
43
44
  "& .MuiButtonGroup-lastButton": {
44
45
  borderTopRightRadius: "6px",
45
- borderBottomRightRadius: "6px"
46
+ borderBottomRightRadius: "6px",
47
+ "& svg": { fontSize: "16px" }
46
48
  },
47
49
  "& .MuiButton-root": { fontWeight: 540 }
48
50
  },
@@ -67,12 +69,13 @@ var m = "10px 12px", h = ({ projectId: h, entityId: g, versionNumber: _ }) => {
67
69
  },
68
70
  borderRadius: "6px",
69
71
  fontWeight: 540,
70
- padding: m
72
+ padding: m,
73
+ height: "28px"
71
74
  },
72
75
  variant: "outlined",
73
76
  startIcon: /* @__PURE__ */ d(n, {
74
- width: 18,
75
- height: 18
77
+ width: 16,
78
+ height: 16
76
79
  }),
77
80
  children: F
78
81
  }), /* @__PURE__ */ d(r, {
@@ -1 +1 @@
1
- {"version":3,"file":"EntityCitation.js","names":[],"sources":["../../../src/components/EntityCitation/EntityCitation.tsx"],"sourcesContent":["import React from 'react'\nimport { ReactComponent as DoubleQuotes } from '@/assets/icons/DoubleQuotes.svg'\nimport { Button, Skeleton } from '@mui/material'\nimport { useGetDOIAssociation } from '@/synapse-queries/doi/useDOI'\nimport { useGetEntityBundle } from '@/synapse-queries/entity'\nimport { DoiObjectType } from '@sage-bionetworks/synapse-client'\nimport CitationPopoverContent from '../CitationPopover/CitationPopoverContent'\nimport { useRef, useState } from 'react'\nimport { useGetEntityDoiAssociation } from './EntityCitationUtils'\nimport DropdownSelect from '../DropdownSelect'\n\nconst CITATION_BUTTON_PADDING = '10px 12px'\n\nexport type EntityCitationProps = {\n projectId: string\n entityId: string\n versionNumber?: number\n}\n\nconst EntityCitation = ({\n projectId,\n entityId,\n versionNumber,\n}: EntityCitationProps): React.ReactNode => {\n const { data: bundle, isLoading: isEntityLoading } = useGetEntityBundle(\n entityId,\n versionNumber,\n )\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null)\n const [selectedDoi, setSelectedDoi] = useState<string | undefined>(undefined)\n const [citationAnchorEl, setCitationAnchorEl] = useState<HTMLElement | null>(\n null,\n )\n const [selectedIndex, setSelectedIndex] = useState<number | undefined>(\n undefined,\n )\n const citationButtonRef = useRef<HTMLDivElement>(null)\n\n const open = Boolean(anchorEl)\n const id = open ? 'cite-as-popover' : undefined\n\n const entityDoiAssociation = useGetEntityDoiAssociation(\n entityId,\n versionNumber,\n projectId,\n bundle,\n )\n\n // Get DOI association for the project\n // Projects are not versioned\n const { data: projectDoiAssociation, isLoading: isProjectLoading } =\n useGetDOIAssociation(\n {\n id: projectId,\n version: undefined,\n type: DoiObjectType.ENTITY,\n },\n {\n enabled: !!projectId,\n },\n )\n\n // If both project and entity have DOIs, we show the dropdown variant\n const isProjectAndEntityDoi = projectDoiAssociation && entityDoiAssociation\n\n function getButtonText() {\n if (isProjectAndEntityDoi) {\n return 'Cite as...'\n } else if (entityDoiAssociation && !projectDoiAssociation) {\n return 'Cite page'\n } else if (!entityDoiAssociation && projectDoiAssociation) {\n return 'Cite project'\n }\n return ''\n }\n\n const buttonText = getButtonText()\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n if (entityDoiAssociation && !projectDoiAssociation) {\n setSelectedDoi(entityDoiAssociation.doiUri)\n setCitationAnchorEl(event.currentTarget)\n } else if (!entityDoiAssociation && projectDoiAssociation) {\n setSelectedDoi(projectDoiAssociation.doiUri)\n setCitationAnchorEl(event.currentTarget)\n } else {\n // If both project and entity doi exist, show dropdown\n setAnchorEl(event.currentTarget)\n }\n }\n\n const popover = (\n <CitationPopoverContent\n doi={selectedDoi}\n anchorEl={citationAnchorEl}\n open={!!citationAnchorEl && !!selectedDoi}\n id={id}\n onClose={() => {\n setCitationAnchorEl(null)\n setSelectedDoi(undefined)\n }}\n />\n )\n\n const options: string[] = ['Cite this Project', 'Cite only this page']\n\n if (!projectDoiAssociation && !entityDoiAssociation) {\n return null\n }\n\n if (isEntityLoading || isProjectLoading) {\n return (\n <Skeleton\n sx={{\n width: { xs: '100%', sm: '140px' },\n height: '45px',\n }}\n />\n )\n }\n\n return (\n <>\n {isProjectAndEntityDoi ? (\n <DropdownSelect\n disabled={isEntityLoading && isProjectLoading}\n options={options}\n anchorRef={citationButtonRef}\n sx={{\n width: { xs: '100%', sm: 'initial' },\n '& .MuiButtonGroup-firstButton': {\n borderTopLeftRadius: '6px',\n borderBottomLeftRadius: '6px',\n padding: CITATION_BUTTON_PADDING,\n },\n '& .MuiButtonGroup-lastButton': {\n borderTopRightRadius: '6px',\n borderBottomRightRadius: '6px',\n },\n '& .MuiButton-root': {\n fontWeight: 540,\n },\n }}\n buttonText=\"Cite as...\"\n variant=\"outlined\"\n buttonGroupAriaLabel=\"Citation options\"\n selectedIndex={selectedIndex}\n setSelectedIndex={(index: number) => {\n setSelectedIndex(index)\n const selected =\n index === 0\n ? projectDoiAssociation?.doiUri\n : entityDoiAssociation?.doiUri\n if (selected) {\n setSelectedDoi(selected)\n setCitationAnchorEl(citationButtonRef.current)\n }\n }}\n />\n ) : (\n <Button\n onClick={handleButtonClick}\n disabled={isEntityLoading && isProjectLoading}\n sx={{\n width: { xs: '100%', sm: 'initial' },\n borderRadius: '6px',\n fontWeight: 540,\n padding: CITATION_BUTTON_PADDING,\n }}\n variant=\"outlined\"\n startIcon={<DoubleQuotes width={18} height={18} />}\n >\n {buttonText}\n </Button>\n )}\n {popover}\n </>\n )\n}\n\nexport default EntityCitation\n"],"mappings":";;;;;;;;;;;;AAWA,IAAM,IAA0B,aAQ1B,KAAkB,EACtB,cACA,aACA,uBAC0C;CAC1C,IAAM,EAAE,MAAM,GAAQ,WAAW,MAAoB,EACnD,GACA,CACF,GACM,CAAC,GAAU,KAAe,EAAmC,IAAI,GACjE,CAAC,GAAa,KAAkB,EAA6B,KAAA,CAAS,GACtE,CAAC,GAAkB,KAAuB,EAC9C,IACF,GACM,CAAC,GAAe,KAAoB,EACxC,KAAA,CACF,GACM,IAAoB,EAAuB,IAAI,GAG/C,IADe,IACH,oBAAoB,KAAA,GAEhC,IAAuB,EAC3B,GACA,GACA,GACA,CACF,GAIM,EAAE,MAAM,GAAuB,WAAW,MAC9C,EACE;EACE,IAAI;EACJ,SAAS,KAAA;EACT,MAAM,EAAc;CACtB,GACA,EACE,SAAS,CAAC,CAAC,EACb,CACF,GAGI,IAAwB,KAAyB;CAEvD,SAAS,IAAgB;EAQvB,OAPI,IACK,eACE,KAAwB,CAAC,IAC3B,cACE,CAAC,KAAwB,IAC3B,iBAEF;CACT;CAEA,IAAM,IAAa,EAAc;CA6CjC,OAfI,CAAC,KAAyB,CAAC,IACtB,OAGL,KAAmB,IAEnB,kBAAC,GAAD,EACE,IAAI;EACF,OAAO;GAAE,IAAI;GAAQ,IAAI;EAAQ;EACjC,QAAQ;CACV,EACD,CAAA,IAKH,kBAAA,GAAA,EAAA,UAAA,CACG,IACC,kBAAC,GAAD;EACE,UAAU,KAAmB;EACpB,UAtBU,qBAAqB,qBAsB/B;EACT,WAAW;EACX,IAAI;GACF,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,iCAAiC;IAC/B,qBAAqB;IACrB,wBAAwB;IACxB,SAAS;GACX;GACA,gCAAgC;IAC9B,sBAAsB;IACtB,yBAAyB;GAC3B;GACA,qBAAqB,EACnB,YAAY,IACd;EACF;EACA,YAAW;EACX,SAAQ;EACR,sBAAqB;EACN;EACf,mBAAmB,MAAkB;GACnC,EAAiB,CAAK;GACtB,IAAM,IACJ,MAAU,IACN,GAAuB,SACvB,GAAsB;GAC5B,AAAI,MACF,EAAe,CAAQ,GACvB,EAAoB,EAAkB,OAAO;EAEjD;CACD,CAAA,IAED,kBAAC,GAAD;EACE,UAnFmB,MAA+C;GACxE,AAAI,KAAwB,CAAC,KAC3B,EAAe,EAAqB,MAAM,GAC1C,EAAoB,EAAM,aAAa,KAC9B,CAAC,KAAwB,KAClC,EAAe,EAAsB,MAAM,GAC3C,EAAoB,EAAM,aAAa,KAGvC,EAAY,EAAM,aAAa;EAEnC;EAyEQ,UAAU,KAAmB;EAC7B,IAAI;GACF,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,cAAc;GACd,YAAY;GACZ,SAAS;EACX;EACA,SAAQ;EACR,WAAW,kBAAC,GAAD;GAAc,OAAO;GAAI,QAAQ;EAAK,CAAA;YAEhD;CACK,CAAA,GAET,gBAnFH,EAAC,GAAD;EACE,KAAK;EACL,UAAU;EACV,MAAM,CAAC,CAAC,KAAoB,CAAC,CAAC;EAC1B;EACJ,eAAe;GAEb,AADA,EAAoB,IAAI,GACxB,EAAe,KAAA,CAAS;EAC1B;CACD,CA0EE,CACD,EAAA,CAAA;AAEN"}
1
+ {"version":3,"file":"EntityCitation.js","names":[],"sources":["../../../src/components/EntityCitation/EntityCitation.tsx"],"sourcesContent":["import React from 'react'\nimport { ReactComponent as DoubleQuotes } from '@/assets/icons/DoubleQuotes.svg'\nimport { Button, Skeleton } from '@mui/material'\nimport { useGetDOIAssociation } from '@/synapse-queries/doi/useDOI'\nimport { useGetEntityBundle } from '@/synapse-queries/entity'\nimport { DoiObjectType } from '@sage-bionetworks/synapse-client'\nimport CitationPopoverContent from '../CitationPopover/CitationPopoverContent'\nimport { useRef, useState } from 'react'\nimport { useGetEntityDoiAssociation } from './EntityCitationUtils'\nimport DropdownSelect from '../DropdownSelect'\n\nconst CITATION_BUTTON_PADDING = '8px'\n\nexport type EntityCitationProps = {\n projectId: string\n entityId: string\n versionNumber?: number\n}\n\nconst EntityCitation = ({\n projectId,\n entityId,\n versionNumber,\n}: EntityCitationProps): React.ReactNode => {\n const { data: bundle, isLoading: isEntityLoading } = useGetEntityBundle(\n entityId,\n versionNumber,\n )\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null)\n const [selectedDoi, setSelectedDoi] = useState<string | undefined>(undefined)\n const [citationAnchorEl, setCitationAnchorEl] = useState<HTMLElement | null>(\n null,\n )\n const [selectedIndex, setSelectedIndex] = useState<number | undefined>(\n undefined,\n )\n const citationButtonRef = useRef<HTMLDivElement>(null)\n\n const open = Boolean(anchorEl)\n const id = open ? 'cite-as-popover' : undefined\n\n const entityDoiAssociation = useGetEntityDoiAssociation(\n entityId,\n versionNumber,\n projectId,\n bundle,\n )\n\n // Get DOI association for the project\n // Projects are not versioned\n const { data: projectDoiAssociation, isLoading: isProjectLoading } =\n useGetDOIAssociation(\n {\n id: projectId,\n version: undefined,\n type: DoiObjectType.ENTITY,\n },\n {\n enabled: !!projectId,\n },\n )\n\n // If both project and entity have DOIs, we show the dropdown variant\n const isProjectAndEntityDoi = projectDoiAssociation && entityDoiAssociation\n\n function getButtonText() {\n if (isProjectAndEntityDoi) {\n return 'Cite as...'\n } else if (entityDoiAssociation && !projectDoiAssociation) {\n return 'Cite page'\n } else if (!entityDoiAssociation && projectDoiAssociation) {\n return 'Cite project'\n }\n return ''\n }\n\n const buttonText = getButtonText()\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n if (entityDoiAssociation && !projectDoiAssociation) {\n setSelectedDoi(entityDoiAssociation.doiUri)\n setCitationAnchorEl(event.currentTarget)\n } else if (!entityDoiAssociation && projectDoiAssociation) {\n setSelectedDoi(projectDoiAssociation.doiUri)\n setCitationAnchorEl(event.currentTarget)\n } else {\n // If both project and entity doi exist, show dropdown\n setAnchorEl(event.currentTarget)\n }\n }\n\n const popover = (\n <CitationPopoverContent\n doi={selectedDoi}\n anchorEl={citationAnchorEl}\n open={!!citationAnchorEl && !!selectedDoi}\n id={id}\n onClose={() => {\n setCitationAnchorEl(null)\n setSelectedDoi(undefined)\n }}\n />\n )\n\n const options: string[] = ['Cite this Project', 'Cite only this page']\n\n if (!projectDoiAssociation && !entityDoiAssociation) {\n return null\n }\n\n if (isEntityLoading || isProjectLoading) {\n return (\n <Skeleton\n sx={{\n width: { xs: '100%', sm: '140px' },\n height: '45px',\n }}\n />\n )\n }\n\n return (\n <>\n {isProjectAndEntityDoi ? (\n <DropdownSelect\n disabled={isEntityLoading && isProjectLoading}\n options={options}\n anchorRef={citationButtonRef}\n sx={{\n height: '28px',\n width: { xs: '100%', sm: 'initial' },\n '& .MuiButtonGroup-firstButton': {\n borderTopLeftRadius: '6px',\n borderBottomLeftRadius: '6px',\n padding: CITATION_BUTTON_PADDING,\n },\n '& .MuiButtonGroup-lastButton': {\n borderTopRightRadius: '6px',\n borderBottomRightRadius: '6px',\n '& svg': {\n fontSize: '16px',\n },\n },\n '& .MuiButton-root': {\n fontWeight: 540,\n },\n }}\n buttonText=\"Cite as...\"\n variant=\"outlined\"\n buttonGroupAriaLabel=\"Citation options\"\n selectedIndex={selectedIndex}\n setSelectedIndex={(index: number) => {\n setSelectedIndex(index)\n const selected =\n index === 0\n ? projectDoiAssociation?.doiUri\n : entityDoiAssociation?.doiUri\n if (selected) {\n setSelectedDoi(selected)\n setCitationAnchorEl(citationButtonRef.current)\n }\n }}\n />\n ) : (\n <Button\n onClick={handleButtonClick}\n disabled={isEntityLoading && isProjectLoading}\n sx={{\n width: { xs: '100%', sm: 'initial' },\n borderRadius: '6px',\n fontWeight: 540,\n padding: CITATION_BUTTON_PADDING,\n height: '28px',\n }}\n variant=\"outlined\"\n startIcon={<DoubleQuotes width={16} height={16} />}\n >\n {buttonText}\n </Button>\n )}\n {popover}\n </>\n )\n}\n\nexport default EntityCitation\n"],"mappings":";;;;;;;;;;;;AAWA,IAAM,IAA0B,OAQ1B,KAAkB,EACtB,cACA,aACA,uBAC0C;CAC1C,IAAM,EAAE,MAAM,GAAQ,WAAW,MAAoB,EACnD,GACA,CACF,GACM,CAAC,GAAU,KAAe,EAAmC,IAAI,GACjE,CAAC,GAAa,KAAkB,EAA6B,KAAA,CAAS,GACtE,CAAC,GAAkB,KAAuB,EAC9C,IACF,GACM,CAAC,GAAe,KAAoB,EACxC,KAAA,CACF,GACM,IAAoB,EAAuB,IAAI,GAG/C,IADe,IACH,oBAAoB,KAAA,GAEhC,IAAuB,EAC3B,GACA,GACA,GACA,CACF,GAIM,EAAE,MAAM,GAAuB,WAAW,MAC9C,EACE;EACE,IAAI;EACJ,SAAS,KAAA;EACT,MAAM,EAAc;CACtB,GACA,EACE,SAAS,CAAC,CAAC,EACb,CACF,GAGI,IAAwB,KAAyB;CAEvD,SAAS,IAAgB;EAQvB,OAPI,IACK,eACE,KAAwB,CAAC,IAC3B,cACE,CAAC,KAAwB,IAC3B,iBAEF;CACT;CAEA,IAAM,IAAa,EAAc;CA6CjC,OAfI,CAAC,KAAyB,CAAC,IACtB,OAGL,KAAmB,IAEnB,kBAAC,GAAD,EACE,IAAI;EACF,OAAO;GAAE,IAAI;GAAQ,IAAI;EAAQ;EACjC,QAAQ;CACV,EACD,CAAA,IAKH,kBAAA,GAAA,EAAA,UAAA,CACG,IACC,kBAAC,GAAD;EACE,UAAU,KAAmB;EACpB,UAtBU,qBAAqB,qBAsB/B;EACT,WAAW;EACX,IAAI;GACF,QAAQ;GACR,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,iCAAiC;IAC/B,qBAAqB;IACrB,wBAAwB;IACxB,SAAS;GACX;GACA,gCAAgC;IAC9B,sBAAsB;IACtB,yBAAyB;IACzB,SAAS,EACP,UAAU,OACZ;GACF;GACA,qBAAqB,EACnB,YAAY,IACd;EACF;EACA,YAAW;EACX,SAAQ;EACR,sBAAqB;EACN;EACf,mBAAmB,MAAkB;GACnC,EAAiB,CAAK;GACtB,IAAM,IACJ,MAAU,IACN,GAAuB,SACvB,GAAsB;GAC5B,AAAI,MACF,EAAe,CAAQ,GACvB,EAAoB,EAAkB,OAAO;EAEjD;CACD,CAAA,IAED,kBAAC,GAAD;EACE,UAvFmB,MAA+C;GACxE,AAAI,KAAwB,CAAC,KAC3B,EAAe,EAAqB,MAAM,GAC1C,EAAoB,EAAM,aAAa,KAC9B,CAAC,KAAwB,KAClC,EAAe,EAAsB,MAAM,GAC3C,EAAoB,EAAM,aAAa,KAGvC,EAAY,EAAM,aAAa;EAEnC;EA6EQ,UAAU,KAAmB;EAC7B,IAAI;GACF,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,cAAc;GACd,YAAY;GACZ,SAAS;GACT,QAAQ;EACV;EACA,SAAQ;EACR,WAAW,kBAAC,GAAD;GAAc,OAAO;GAAI,QAAQ;EAAK,CAAA;YAEhD;CACK,CAAA,GAET,gBAxFH,EAAC,GAAD;EACE,KAAK;EACL,UAAU;EACV,MAAM,CAAC,CAAC,KAAoB,CAAC,CAAC;EAC1B;EACJ,eAAe;GAEb,AADA,EAAoB,IAAI,GACxB,EAAe,KAAA,CAAS;EAC1B;CACD,CA+EE,CACD,EAAA,CAAA;AAEN"}
@@ -9,7 +9,9 @@ export declare enum RestrictionUiType {
9
9
  AccessBlockedByRestrictionWithRejectedRDCADAPRequest = "AccessBlockedByRestrictionWithRejectedRDCADAPRequest",
10
10
  AccessBlockedByACL = "AccessBlockedByACL",
11
11
  AccessBlockedToAnonymous = "AccessBlockedToAnonymous",
12
- AccessibleExternalFileHandle = "AccessibleExternalFileHandle"
12
+ AccessibleExternalFileHandle = "AccessibleExternalFileHandle",
13
+ AccessibleOnRDCADAP = "AccessibleOnRDCADAP",
14
+ AccessBlockedByRDCADAPAccountNotLinked = "AccessBlockedByRDCADAPAccountNotLinked"
13
15
  }
14
16
  declare function AccessIcon(props: {
15
17
  restrictionUiType: RestrictionUiType;
@@ -1 +1 @@
1
- {"version":3,"file":"AccessIcon.d.ts","sourceRoot":"","sources":["../../../src/components/HasAccess/AccessIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,eAAe,CAAA;AAGxD,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,0BAA0B,+BAA+B;IACzD,4CAA4C,iDAAiD;IAC7F,oDAAoD,yDAAyD;IAC7G,mDAAmD,wDAAwD;IAC3G,oDAAoD,yDAAyD;IAC7G,kBAAkB,uBAAuB;IACzC,wBAAwB,6BAA6B;IACrD,4BAA4B,iCAAiC;CAC9D;AA2DD,iBAAS,UAAU,CAAC,KAAK,EAAE;IACzB,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;CACpB,2CAqBA;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"AccessIcon.d.ts","sourceRoot":"","sources":["../../../src/components/HasAccess/AccessIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAY,MAAM,eAAe,CAAA;AAGxD,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,0BAA0B,+BAA+B;IACzD,4CAA4C,iDAAiD;IAC7F,oDAAoD,yDAAyD;IAC7G,mDAAmD,wDAAwD;IAC3G,oDAAoD,yDAAyD;IAC7G,kBAAkB,uBAAuB;IACzC,wBAAwB,6BAA6B;IACrD,4BAA4B,iCAAiC;IAC7D,mBAAmB,wBAAwB;IAC3C,sCAAsC,2CAA2C;CAClF;AAqED,iBAAS,UAAU,CAAC,KAAK,EAAE;IACzB,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;CACpB,2CAqBA;AAED,eAAe,UAAU,CAAA"}
@@ -3,7 +3,7 @@ import { useTheme as t } from "@mui/material";
3
3
  import { Fragment as n, jsx as r } from "react/jsx-runtime";
4
4
  //#region src/components/HasAccess/AccessIcon.tsx
5
5
  var i = /* @__PURE__ */ function(e) {
6
- return e.Accessible = "Accessible", e.AccessibleWithTerms = "AccessibleWithTerms", e.AccessBlockedByRestriction = "AccessBlockedByRestriction", e.AccessBlockedByRestrictionWithPendingRequest = "AccessBlockedByRestrictionWithPendingRequest", e.AccessBlockedByRestrictionWithPendingExternalRequest = "AccessBlockedByRestrictionWithPendingExternalRequest", e.AccessBlockedByRestrictionWithPendingRDCADAPRequest = "AccessBlockedByRestrictionWithPendingRDCADAPRequest", e.AccessBlockedByRestrictionWithRejectedRDCADAPRequest = "AccessBlockedByRestrictionWithRejectedRDCADAPRequest", e.AccessBlockedByACL = "AccessBlockedByACL", e.AccessBlockedToAnonymous = "AccessBlockedToAnonymous", e.AccessibleExternalFileHandle = "AccessibleExternalFileHandle", e;
6
+ return e.Accessible = "Accessible", e.AccessibleWithTerms = "AccessibleWithTerms", e.AccessBlockedByRestriction = "AccessBlockedByRestriction", e.AccessBlockedByRestrictionWithPendingRequest = "AccessBlockedByRestrictionWithPendingRequest", e.AccessBlockedByRestrictionWithPendingExternalRequest = "AccessBlockedByRestrictionWithPendingExternalRequest", e.AccessBlockedByRestrictionWithPendingRDCADAPRequest = "AccessBlockedByRestrictionWithPendingRDCADAPRequest", e.AccessBlockedByRestrictionWithRejectedRDCADAPRequest = "AccessBlockedByRestrictionWithRejectedRDCADAPRequest", e.AccessBlockedByACL = "AccessBlockedByACL", e.AccessBlockedToAnonymous = "AccessBlockedToAnonymous", e.AccessibleExternalFileHandle = "AccessibleExternalFileHandle", e.AccessibleOnRDCADAP = "AccessibleOnRDCADAP", e.AccessBlockedByRDCADAPAccountNotLinked = "AccessBlockedByRDCADAPAccountNotLinked", e;
7
7
  }({}), a = {
8
8
  AccessBlockedToAnonymous: {
9
9
  icon: "accessClosed",
@@ -35,6 +35,11 @@ var i = /* @__PURE__ */ function(e) {
35
35
  color: (e) => e.palette.warning.main,
36
36
  tooltipText: "Your access request has been denied by RDCA-DAP."
37
37
  },
38
+ AccessBlockedByRDCADAPAccountNotLinked: {
39
+ icon: "linkOff",
40
+ color: (e) => e.palette.warning.main,
41
+ tooltipText: "Link your RDCA-DAP account to request access to this item."
42
+ },
38
43
  AccessBlockedByACL: {
39
44
  icon: "accessClosed",
40
45
  color: (e) => e.palette.warning.main,
@@ -50,6 +55,11 @@ var i = /* @__PURE__ */ function(e) {
50
55
  color: (e) => e.palette.success.main,
51
56
  tooltipText: "You have access to this item."
52
57
  },
58
+ AccessibleOnRDCADAP: {
59
+ icon: "accessOpen",
60
+ color: (e) => e.palette.success.main,
61
+ tooltipText: "You have access to this item on RDCA-DAP."
62
+ },
53
63
  AccessibleExternalFileHandle: {
54
64
  icon: "linkOff",
55
65
  color: (e) => e.palette.grey[700],
@@ -1 +1 @@
1
- {"version":3,"file":"AccessIcon.js","names":[],"sources":["../../../src/components/HasAccess/AccessIcon.tsx"],"sourcesContent":["import { SxProps, Theme, useTheme } from '@mui/material'\nimport IconSvg, { IconName } from '../IconSvg/IconSvg'\n\nexport enum RestrictionUiType {\n Accessible = 'Accessible',\n AccessibleWithTerms = 'AccessibleWithTerms',\n AccessBlockedByRestriction = 'AccessBlockedByRestriction',\n AccessBlockedByRestrictionWithPendingRequest = 'AccessBlockedByRestrictionWithPendingRequest',\n AccessBlockedByRestrictionWithPendingExternalRequest = 'AccessBlockedByRestrictionWithPendingExternalRequest',\n AccessBlockedByRestrictionWithPendingRDCADAPRequest = 'AccessBlockedByRestrictionWithPendingRDCADAPRequest',\n AccessBlockedByRestrictionWithRejectedRDCADAPRequest = 'AccessBlockedByRestrictionWithRejectedRDCADAPRequest',\n AccessBlockedByACL = 'AccessBlockedByACL',\n AccessBlockedToAnonymous = 'AccessBlockedToAnonymous',\n AccessibleExternalFileHandle = 'AccessibleExternalFileHandle',\n}\n\nconst iconConfiguration: Record<\n RestrictionUiType,\n { icon: IconName; color: (theme: Theme) => string; tooltipText: string }\n> = {\n [RestrictionUiType.AccessBlockedToAnonymous]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You must sign in to access this item.',\n },\n [RestrictionUiType.AccessBlockedByRestriction]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You must request access to this restricted item.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingRequest]: {\n icon: 'accessPending',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request is pending approval.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingExternalRequest]: {\n icon: 'accessPendingCloud',\n color: theme => theme.palette.warning.main,\n tooltipText:\n 'Your access request is pending approval from an external system.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingRDCADAPRequest]: {\n icon: 'accessPendingCloud',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request is pending approval by RDCA-DAP.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithRejectedRDCADAPRequest]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request has been denied by RDCA-DAP.',\n },\n [RestrictionUiType.AccessBlockedByACL]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You do not have download access for this item.',\n },\n [RestrictionUiType.AccessibleWithTerms]: {\n icon: 'accessOpen',\n color: theme => theme.palette.success.main,\n tooltipText: 'View Terms',\n },\n [RestrictionUiType.Accessible]: {\n icon: 'accessOpen',\n color: theme => theme.palette.success.main,\n tooltipText: 'You have access to this item.',\n },\n [RestrictionUiType.AccessibleExternalFileHandle]: {\n icon: 'linkOff',\n color: theme => theme.palette.grey[700],\n tooltipText: 'Access may be controlled by an external system.',\n },\n}\n\nfunction AccessIcon(props: {\n restrictionUiType: RestrictionUiType\n wrap?: boolean\n sx?: SxProps<Theme>\n}) {\n const { restrictionUiType, wrap = true, sx } = props\n const theme = useTheme()\n if (restrictionUiType) {\n const configuration = iconConfiguration[restrictionUiType]\n return (\n <IconSvg\n icon={configuration.icon}\n label={configuration.tooltipText}\n wrap={wrap}\n sx={{\n color: configuration.color(theme),\n height: '16px',\n verticalAlign: 'text-top',\n ...sx,\n }}\n />\n )\n }\n // nothing is rendered until downloadType is determined\n return <></>\n}\n\nexport default AccessIcon\n"],"mappings":";;;;AAGA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,aAAA,cACA,EAAA,sBAAA,uBACA,EAAA,6BAAA,8BACA,EAAA,+CAAA,gDACA,EAAA,uDAAA,wDACA,EAAA,sDAAA,uDACA,EAAA,uDAAA,wDACA,EAAA,qBAAA,sBACA,EAAA,2BAAA,4BACA,EAAA,+BAAA;AACF,EAAA,CAAA,CAAA,GAEM,IAGF;2BAC4C;EAC5C,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;6BACgD;EAC9C,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;+CACkE;EAChE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;uDAC0E;EACxE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aACE;CACJ;sDACyE;EACvE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;uDAC0E;EACxE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;qBACwC;EACtC,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;sBACyC;EACvC,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;aACgC;EAC9B,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;+BACkD;EAChD,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,KAAK;EACnC,aAAa;CACf;AACF;AAEA,SAAS,EAAW,GAIjB;CACD,IAAM,EAAE,sBAAmB,UAAO,IAAM,UAAO,GACzC,IAAQ,EAAS;CACvB,IAAI,GAAmB;EACrB,IAAM,IAAgB,EAAkB;EACxC,OACE,kBAAC,GAAD;GACE,MAAM,EAAc;GACpB,OAAO,EAAc;GACf;GACN,IAAI;IACF,OAAO,EAAc,MAAM,CAAK;IAChC,QAAQ;IACR,eAAe;IACf,GAAG;GACL;EACD,CAAA;CAEL;CAEA,OAAO,kBAAA,GAAA,CAAI,CAAA;AACb"}
1
+ {"version":3,"file":"AccessIcon.js","names":[],"sources":["../../../src/components/HasAccess/AccessIcon.tsx"],"sourcesContent":["import { SxProps, Theme, useTheme } from '@mui/material'\nimport IconSvg, { IconName } from '../IconSvg/IconSvg'\n\nexport enum RestrictionUiType {\n Accessible = 'Accessible',\n AccessibleWithTerms = 'AccessibleWithTerms',\n AccessBlockedByRestriction = 'AccessBlockedByRestriction',\n AccessBlockedByRestrictionWithPendingRequest = 'AccessBlockedByRestrictionWithPendingRequest',\n AccessBlockedByRestrictionWithPendingExternalRequest = 'AccessBlockedByRestrictionWithPendingExternalRequest',\n AccessBlockedByRestrictionWithPendingRDCADAPRequest = 'AccessBlockedByRestrictionWithPendingRDCADAPRequest',\n AccessBlockedByRestrictionWithRejectedRDCADAPRequest = 'AccessBlockedByRestrictionWithRejectedRDCADAPRequest',\n AccessBlockedByACL = 'AccessBlockedByACL',\n AccessBlockedToAnonymous = 'AccessBlockedToAnonymous',\n AccessibleExternalFileHandle = 'AccessibleExternalFileHandle',\n AccessibleOnRDCADAP = 'AccessibleOnRDCADAP',\n AccessBlockedByRDCADAPAccountNotLinked = 'AccessBlockedByRDCADAPAccountNotLinked',\n}\n\nconst iconConfiguration: Record<\n RestrictionUiType,\n { icon: IconName; color: (theme: Theme) => string; tooltipText: string }\n> = {\n [RestrictionUiType.AccessBlockedToAnonymous]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You must sign in to access this item.',\n },\n [RestrictionUiType.AccessBlockedByRestriction]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You must request access to this restricted item.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingRequest]: {\n icon: 'accessPending',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request is pending approval.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingExternalRequest]: {\n icon: 'accessPendingCloud',\n color: theme => theme.palette.warning.main,\n tooltipText:\n 'Your access request is pending approval from an external system.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithPendingRDCADAPRequest]: {\n icon: 'accessPendingCloud',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request is pending approval by RDCA-DAP.',\n },\n [RestrictionUiType.AccessBlockedByRestrictionWithRejectedRDCADAPRequest]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Your access request has been denied by RDCA-DAP.',\n },\n [RestrictionUiType.AccessBlockedByRDCADAPAccountNotLinked]: {\n icon: 'linkOff',\n color: theme => theme.palette.warning.main,\n tooltipText: 'Link your RDCA-DAP account to request access to this item.',\n },\n [RestrictionUiType.AccessBlockedByACL]: {\n icon: 'accessClosed',\n color: theme => theme.palette.warning.main,\n tooltipText: 'You do not have download access for this item.',\n },\n [RestrictionUiType.AccessibleWithTerms]: {\n icon: 'accessOpen',\n color: theme => theme.palette.success.main,\n tooltipText: 'View Terms',\n },\n [RestrictionUiType.Accessible]: {\n icon: 'accessOpen',\n color: theme => theme.palette.success.main,\n tooltipText: 'You have access to this item.',\n },\n [RestrictionUiType.AccessibleOnRDCADAP]: {\n icon: 'accessOpen',\n color: theme => theme.palette.success.main,\n tooltipText: 'You have access to this item on RDCA-DAP.',\n },\n [RestrictionUiType.AccessibleExternalFileHandle]: {\n icon: 'linkOff',\n color: theme => theme.palette.grey[700],\n tooltipText: 'Access may be controlled by an external system.',\n },\n}\n\nfunction AccessIcon(props: {\n restrictionUiType: RestrictionUiType\n wrap?: boolean\n sx?: SxProps<Theme>\n}) {\n const { restrictionUiType, wrap = true, sx } = props\n const theme = useTheme()\n if (restrictionUiType) {\n const configuration = iconConfiguration[restrictionUiType]\n return (\n <IconSvg\n icon={configuration.icon}\n label={configuration.tooltipText}\n wrap={wrap}\n sx={{\n color: configuration.color(theme),\n height: '16px',\n verticalAlign: 'text-top',\n ...sx,\n }}\n />\n )\n }\n // nothing is rendered until downloadType is determined\n return <></>\n}\n\nexport default AccessIcon\n"],"mappings":";;;;AAGA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,aAAA,cACA,EAAA,sBAAA,uBACA,EAAA,6BAAA,8BACA,EAAA,+CAAA,gDACA,EAAA,uDAAA,wDACA,EAAA,sDAAA,uDACA,EAAA,uDAAA,wDACA,EAAA,qBAAA,sBACA,EAAA,2BAAA,4BACA,EAAA,+BAAA,gCACA,EAAA,sBAAA,uBACA,EAAA,yCAAA;AACF,EAAA,CAAA,CAAA,GAEM,IAGF;2BAC4C;EAC5C,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;6BACgD;EAC9C,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;+CACkE;EAChE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;uDAC0E;EACxE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aACE;CACJ;sDACyE;EACvE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;uDAC0E;EACxE,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;yCAC4D;EAC1D,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;qBACwC;EACtC,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;sBACyC;EACvC,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;aACgC;EAC9B,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;sBACyC;EACvC,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,QAAQ;EACtC,aAAa;CACf;+BACkD;EAChD,MAAM;EACN,QAAO,MAAS,EAAM,QAAQ,KAAK;EACnC,aAAa;CACf;AACF;AAEA,SAAS,EAAW,GAIjB;CACD,IAAM,EAAE,sBAAmB,UAAO,IAAM,UAAO,GACzC,IAAQ,EAAS;CACvB,IAAI,GAAmB;EACrB,IAAM,IAAgB,EAAkB;EACxC,OACE,kBAAC,GAAD;GACE,MAAM,EAAc;GACpB,OAAO,EAAc;GACf;GACN,IAAI;IACF,OAAO,EAAc,MAAM,CAAK;IAChC,QAAQ;IACR,eAAe;IACf,GAAG;GACL;EACD,CAAA;CAEL;CAEA,OAAO,kBAAA,GAAA,CAAI,CAAA;AACb"}
@@ -8,7 +8,8 @@ export type PortalHomePageHeaderProps = {
8
8
  backgroundMp4?: string;
9
9
  backgroundMp4Css?: string;
10
10
  textAreaWidth?: string;
11
+ children?: React.ReactNode;
11
12
  };
12
- declare const PortalHomePageHeader: ({ backgroundCss, buttonLink, title, subTitle, description, backgroundMp4, backgroundMp4Css, textAreaWidth, }: PortalHomePageHeaderProps) => React.ReactNode;
13
+ declare const PortalHomePageHeader: ({ backgroundCss, buttonLink, title, subTitle, description, backgroundMp4, backgroundMp4Css, textAreaWidth, children, }: PortalHomePageHeaderProps) => React.ReactNode;
13
14
  export default PortalHomePageHeader;
14
15
  //# sourceMappingURL=PortalHomePageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PortalHomePageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PortalHomePageHeader/PortalHomePageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,QAAA,MAAM,oBAAoB,GAAI,8GAS3B,yBAAyB,KAAG,KAAK,CAAC,SAiGpC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
1
+ {"version":3,"file":"PortalHomePageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PortalHomePageHeader/PortalHomePageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,oBAAoB,GAAI,wHAU3B,yBAAyB,KAAG,KAAK,CAAC,SA4HpC,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -2,7 +2,7 @@ import "react";
2
2
  import { Box as e, Button as t, Stack as n, Typography as r } from "@mui/material";
3
3
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
4
  //#region src/components/PortalHomePageHeader/PortalHomePageHeader.tsx
5
- var o = ({ backgroundCss: o, buttonLink: s, title: c, subTitle: l, description: u, backgroundMp4: d, backgroundMp4Css: f, textAreaWidth: p = "746px" }) => /* @__PURE__ */ a(e, {
5
+ var o = ({ backgroundCss: o, buttonLink: s, title: c, subTitle: l, description: u, backgroundMp4: d, backgroundMp4Css: f, textAreaWidth: p = "746px", children: m }) => /* @__PURE__ */ a(e, {
6
6
  "data-testid": "HeaderContainer",
7
7
  sx: {
8
8
  background: o,
@@ -33,67 +33,95 @@ var o = ({ backgroundCss: o, buttonLink: s, title: c, subTitle: l, description:
33
33
  type: "video/mp4"
34
34
  }), "Your browser does not support the video tag."]
35
35
  }), /* @__PURE__ */ a(n, {
36
+ direction: {
37
+ xs: "column",
38
+ lg: "row"
39
+ },
36
40
  sx: {
37
- alignItems: "flex-start",
41
+ alignItems: {
42
+ xs: "flex-start",
43
+ lg: m ? "center" : "flex-start"
44
+ },
45
+ justifyContent: "space-between",
38
46
  padding: {
39
47
  xs: "40px",
40
48
  md: "40px 0"
41
49
  },
42
- gap: "24px",
43
- width: {
44
- sm: "100%",
45
- md: p
50
+ gap: {
51
+ xs: "40px",
52
+ lg: "80px"
46
53
  }
47
54
  },
48
- children: [
49
- /* @__PURE__ */ i(r, {
50
- variant: "headline2",
51
- sx: {
52
- fontWeight: 300,
53
- lineHeight: "130%",
54
- fontSize: {
55
- xs: "36px",
56
- md: "42px"
57
- },
58
- color: "grey.1000"
55
+ children: [/* @__PURE__ */ a(n, {
56
+ sx: {
57
+ alignItems: "flex-start",
58
+ gap: "24px",
59
+ minWidth: 0,
60
+ flex: m ? { lg: "1 1 0" } : void 0,
61
+ width: m ? "100%" : {
62
+ sm: "100%",
63
+ md: p
59
64
  },
60
- children: c
61
- }),
62
- l && /* @__PURE__ */ i(r, {
63
- variant: "headline3",
64
- sx: {
65
- fontSize: "24px",
66
- fontWeight: "400",
67
- lineHeight: "160%",
68
- color: "grey.1000"
69
- },
70
- children: l
71
- }),
72
- /* @__PURE__ */ i(r, {
73
- sx: {
74
- fontSize: "18px",
75
- lineHeight: "140%",
76
- color: "grey.900"
77
- },
78
- children: u
79
- }),
80
- s && /* @__PURE__ */ i(t, {
81
- href: s,
82
- target: "_blank",
83
- variant: "contained",
84
- role: "button",
85
- sx: (e) => ({
86
- whiteSpace: "nowrap",
87
- alignSelf: "flex-start",
88
- padding: "6px 24px",
89
- fontWeight: 600,
90
- boxShadow: "0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",
91
- "&:hover": { boxShadow: "0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)" },
92
- [e.breakpoints.down("sm")]: { width: "100%" }
65
+ maxWidth: m ? { md: p } : void 0
66
+ },
67
+ children: [
68
+ /* @__PURE__ */ i(r, {
69
+ variant: "headline2",
70
+ sx: {
71
+ fontWeight: 300,
72
+ lineHeight: "130%",
73
+ fontSize: {
74
+ xs: "36px",
75
+ md: "42px"
76
+ },
77
+ color: "grey.1000"
78
+ },
79
+ children: c
80
+ }),
81
+ l && /* @__PURE__ */ i(r, {
82
+ variant: "headline3",
83
+ sx: {
84
+ fontSize: "24px",
85
+ fontWeight: "400",
86
+ lineHeight: "160%",
87
+ color: "grey.1000"
88
+ },
89
+ children: l
93
90
  }),
94
- children: "Learn more"
95
- })
96
- ]
91
+ /* @__PURE__ */ i(r, {
92
+ sx: {
93
+ fontSize: "18px",
94
+ lineHeight: "140%",
95
+ color: "grey.900"
96
+ },
97
+ children: u
98
+ }),
99
+ s && /* @__PURE__ */ i(t, {
100
+ href: s,
101
+ target: "_blank",
102
+ variant: "contained",
103
+ role: "button",
104
+ sx: (e) => ({
105
+ whiteSpace: "nowrap",
106
+ alignSelf: "flex-start",
107
+ padding: "6px 24px",
108
+ fontWeight: 600,
109
+ boxShadow: "0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",
110
+ "&:hover": { boxShadow: "0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)" },
111
+ [e.breakpoints.down("sm")]: { width: "100%" }
112
+ }),
113
+ children: "Learn more"
114
+ })
115
+ ]
116
+ }), m && /* @__PURE__ */ i(e, {
117
+ sx: {
118
+ flex: { lg: "1 1 0" },
119
+ minWidth: 0,
120
+ width: "100%",
121
+ maxWidth: { lg: "600px" }
122
+ },
123
+ children: m
124
+ })]
97
125
  })]
98
126
  });
99
127
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"PortalHomePageHeader.js","names":[],"sources":["../../../src/components/PortalHomePageHeader/PortalHomePageHeader.tsx"],"sourcesContent":["import React from 'react'\nimport { Box, Stack, Typography, Button } from '@mui/material'\n\nexport type PortalHomePageHeaderProps = {\n backgroundCss: string // background of entire header\n buttonLink?: string\n title: React.ReactNode\n subTitle?: React.ReactNode\n description: React.ReactNode\n backgroundMp4?: string\n backgroundMp4Css?: string // while video is loading, what should the background color be?\n textAreaWidth?: string // default is 746px. used for md and up screen sizes\n}\n\nconst PortalHomePageHeader = ({\n backgroundCss,\n buttonLink,\n title,\n subTitle,\n description,\n backgroundMp4,\n backgroundMp4Css,\n textAreaWidth = '746px',\n}: PortalHomePageHeaderProps): React.ReactNode => {\n return (\n <Box\n data-testid=\"HeaderContainer\"\n sx={{\n background: backgroundCss,\n padding: { xs: 0, md: '50px 80px' },\n position: 'relative',\n }}\n >\n {backgroundMp4 && (\n <Box\n component=\"video\"\n autoPlay\n loop\n muted\n playsInline\n sx={{\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'fill',\n zIndex: -1,\n background: backgroundMp4Css,\n }}\n >\n <source src={backgroundMp4} type=\"video/mp4\" />\n Your browser does not support the video tag.\n </Box>\n )}\n <Stack\n sx={{\n alignItems: 'flex-start',\n padding: { xs: '40px', md: '40px 0' },\n gap: '24px',\n width: { sm: '100%', md: textAreaWidth },\n }}\n >\n <Typography\n variant=\"headline2\"\n sx={{\n fontWeight: 300,\n lineHeight: '130%',\n fontSize: { xs: '36px', md: '42px' },\n color: 'grey.1000',\n }}\n >\n {title}\n </Typography>\n {subTitle && (\n <Typography\n variant=\"headline3\"\n sx={{\n fontSize: '24px',\n fontWeight: '400',\n lineHeight: '160%',\n color: 'grey.1000',\n }}\n >\n {subTitle}\n </Typography>\n )}\n <Typography\n sx={{ fontSize: '18px', lineHeight: '140%', color: 'grey.900' }}\n >\n {description}\n </Typography>\n {buttonLink && (\n <Button\n href={buttonLink}\n target=\"_blank\"\n variant=\"contained\"\n role=\"button\"\n sx={theme => ({\n whiteSpace: 'nowrap',\n alignSelf: 'flex-start',\n padding: '6px 24px',\n fontWeight: 600,\n boxShadow:\n '0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)',\n '&:hover': {\n boxShadow:\n '0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)',\n },\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n },\n })}\n >\n Learn more\n </Button>\n )}\n </Stack>\n </Box>\n )\n}\n\nexport default PortalHomePageHeader\n"],"mappings":";;;;AAcA,IAAM,KAAwB,EAC5B,kBACA,eACA,UACA,aACA,gBACA,kBACA,qBACA,mBAAgB,cAGd,kBAAC,GAAD;CACE,eAAY;CACZ,IAAI;EACF,YAAY;EACZ,SAAS;GAAE,IAAI;GAAG,IAAI;EAAY;EAClC,UAAU;CACZ;WANF,CAQG,KACC,kBAAC,GAAD;EACE,WAAU;EACV,UAAA;EACA,MAAA;EACA,OAAA;EACA,aAAA;EACA,IAAI;GACF,UAAU;GACV,KAAK;GACL,MAAM;GACN,OAAO;GACP,QAAQ;GACR,WAAW;GACX,QAAQ;GACR,YAAY;EACd;YAfF,CAiBE,kBAAC,UAAD;GAAQ,KAAK;GAAe,MAAK;EAAa,CAAA,GAAC,8CAE5C;KAEP,kBAAC,GAAD;EACE,IAAI;GACF,YAAY;GACZ,SAAS;IAAE,IAAI;IAAQ,IAAI;GAAS;GACpC,KAAK;GACL,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAc;EACzC;YANF;GAQE,kBAAC,GAAD;IACE,SAAQ;IACR,IAAI;KACF,YAAY;KACZ,YAAY;KACZ,UAAU;MAAE,IAAI;MAAQ,IAAI;KAAO;KACnC,OAAO;IACT;cAEC;GACS,CAAA;GACX,KACC,kBAAC,GAAD;IACE,SAAQ;IACR,IAAI;KACF,UAAU;KACV,YAAY;KACZ,YAAY;KACZ,OAAO;IACT;cAEC;GACS,CAAA;GAEd,kBAAC,GAAD;IACE,IAAI;KAAE,UAAU;KAAQ,YAAY;KAAQ,OAAO;IAAW;cAE7D;GACS,CAAA;GACX,KACC,kBAAC,GAAD;IACE,MAAM;IACN,QAAO;IACP,SAAQ;IACR,MAAK;IACL,KAAI,OAAU;KACZ,YAAY;KACZ,WAAW;KACX,SAAS;KACT,YAAY;KACZ,WACE;KACF,WAAW,EACT,WACE,kHACJ;MACC,EAAM,YAAY,KAAK,IAAI,IAAI,EAC9B,OAAO,OACT;IACF;cACD;GAEO,CAAA;EAEL;GACJ"}
1
+ {"version":3,"file":"PortalHomePageHeader.js","names":[],"sources":["../../../src/components/PortalHomePageHeader/PortalHomePageHeader.tsx"],"sourcesContent":["import React from 'react'\nimport { Box, Stack, Typography, Button } from '@mui/material'\n\nexport type PortalHomePageHeaderProps = {\n backgroundCss: string // background of entire header\n buttonLink?: string\n title: React.ReactNode\n subTitle?: React.ReactNode\n description: React.ReactNode\n backgroundMp4?: string\n backgroundMp4Css?: string // while video is loading, what should the background color be?\n textAreaWidth?: string // default is 746px. used for md and up screen sizes\n children?: React.ReactNode // rendered at the bottom of the header text area, e.g. a search box\n}\n\nconst PortalHomePageHeader = ({\n backgroundCss,\n buttonLink,\n title,\n subTitle,\n description,\n backgroundMp4,\n backgroundMp4Css,\n textAreaWidth = '746px',\n children,\n}: PortalHomePageHeaderProps): React.ReactNode => {\n return (\n <Box\n data-testid=\"HeaderContainer\"\n sx={{\n background: backgroundCss,\n padding: { xs: 0, md: '50px 80px' },\n position: 'relative',\n }}\n >\n {backgroundMp4 && (\n <Box\n component=\"video\"\n autoPlay\n loop\n muted\n playsInline\n sx={{\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'fill',\n zIndex: -1,\n background: backgroundMp4Css,\n }}\n >\n <source src={backgroundMp4} type=\"video/mp4\" />\n Your browser does not support the video tag.\n </Box>\n )}\n <Stack\n direction={{ xs: 'column', lg: 'row' }}\n sx={{\n alignItems: {\n xs: 'flex-start',\n lg: children ? 'center' : 'flex-start',\n },\n justifyContent: 'space-between',\n padding: { xs: '40px', md: '40px 0' },\n gap: { xs: '40px', lg: '80px' },\n }}\n >\n <Stack\n sx={{\n alignItems: 'flex-start',\n gap: '24px',\n minWidth: 0,\n flex: children ? { lg: '1 1 0' } : undefined,\n width: children ? '100%' : { sm: '100%', md: textAreaWidth },\n maxWidth: children ? { md: textAreaWidth } : undefined,\n }}\n >\n <Typography\n variant=\"headline2\"\n sx={{\n fontWeight: 300,\n lineHeight: '130%',\n fontSize: { xs: '36px', md: '42px' },\n color: 'grey.1000',\n }}\n >\n {title}\n </Typography>\n {subTitle && (\n <Typography\n variant=\"headline3\"\n sx={{\n fontSize: '24px',\n fontWeight: '400',\n lineHeight: '160%',\n color: 'grey.1000',\n }}\n >\n {subTitle}\n </Typography>\n )}\n <Typography\n sx={{ fontSize: '18px', lineHeight: '140%', color: 'grey.900' }}\n >\n {description}\n </Typography>\n {buttonLink && (\n <Button\n href={buttonLink}\n target=\"_blank\"\n variant=\"contained\"\n role=\"button\"\n sx={theme => ({\n whiteSpace: 'nowrap',\n alignSelf: 'flex-start',\n padding: '6px 24px',\n fontWeight: 600,\n boxShadow:\n '0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)',\n '&:hover': {\n boxShadow:\n '0px 16px 16px 0px rgba(0, 0, 0, 0.10), 0px 4px 4px 0px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)',\n },\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n },\n })}\n >\n Learn more\n </Button>\n )}\n </Stack>\n {children && (\n <Box\n sx={{\n flex: { lg: '1 1 0' },\n minWidth: 0,\n width: '100%',\n maxWidth: { lg: '600px' },\n }}\n >\n {children}\n </Box>\n )}\n </Stack>\n </Box>\n )\n}\n\nexport default PortalHomePageHeader\n"],"mappings":";;;;AAeA,IAAM,KAAwB,EAC5B,kBACA,eACA,UACA,aACA,gBACA,kBACA,qBACA,mBAAgB,SAChB,kBAGE,kBAAC,GAAD;CACE,eAAY;CACZ,IAAI;EACF,YAAY;EACZ,SAAS;GAAE,IAAI;GAAG,IAAI;EAAY;EAClC,UAAU;CACZ;WANF,CAQG,KACC,kBAAC,GAAD;EACE,WAAU;EACV,UAAA;EACA,MAAA;EACA,OAAA;EACA,aAAA;EACA,IAAI;GACF,UAAU;GACV,KAAK;GACL,MAAM;GACN,OAAO;GACP,QAAQ;GACR,WAAW;GACX,QAAQ;GACR,YAAY;EACd;YAfF,CAiBE,kBAAC,UAAD;GAAQ,KAAK;GAAe,MAAK;EAAa,CAAA,GAAC,8CAE5C;KAEP,kBAAC,GAAD;EACE,WAAW;GAAE,IAAI;GAAU,IAAI;EAAM;EACrC,IAAI;GACF,YAAY;IACV,IAAI;IACJ,IAAI,IAAW,WAAW;GAC5B;GACA,gBAAgB;GAChB,SAAS;IAAE,IAAI;IAAQ,IAAI;GAAS;GACpC,KAAK;IAAE,IAAI;IAAQ,IAAI;GAAO;EAChC;YAVF,CAYE,kBAAC,GAAD;GACE,IAAI;IACF,YAAY;IACZ,KAAK;IACL,UAAU;IACV,MAAM,IAAW,EAAE,IAAI,QAAQ,IAAI,KAAA;IACnC,OAAO,IAAW,SAAS;KAAE,IAAI;KAAQ,IAAI;IAAc;IAC3D,UAAU,IAAW,EAAE,IAAI,EAAc,IAAI,KAAA;GAC/C;aARF;IAUE,kBAAC,GAAD;KACE,SAAQ;KACR,IAAI;MACF,YAAY;MACZ,YAAY;MACZ,UAAU;OAAE,IAAI;OAAQ,IAAI;MAAO;MACnC,OAAO;KACT;eAEC;IACS,CAAA;IACX,KACC,kBAAC,GAAD;KACE,SAAQ;KACR,IAAI;MACF,UAAU;MACV,YAAY;MACZ,YAAY;MACZ,OAAO;KACT;eAEC;IACS,CAAA;IAEd,kBAAC,GAAD;KACE,IAAI;MAAE,UAAU;MAAQ,YAAY;MAAQ,OAAO;KAAW;eAE7D;IACS,CAAA;IACX,KACC,kBAAC,GAAD;KACE,MAAM;KACN,QAAO;KACP,SAAQ;KACR,MAAK;KACL,KAAI,OAAU;MACZ,YAAY;MACZ,WAAW;MACX,SAAS;MACT,YAAY;MACZ,WACE;MACF,WAAW,EACT,WACE,kHACJ;OACC,EAAM,YAAY,KAAK,IAAI,IAAI,EAC9B,OAAO,OACT;KACF;eACD;IAEO,CAAA;GAEL;MACN,KACC,kBAAC,GAAD;GACE,IAAI;IACF,MAAM,EAAE,IAAI,QAAQ;IACpB,UAAU;IACV,OAAO;IACP,UAAU,EAAE,IAAI,QAAQ;GAC1B;GAEC;EACE,CAAA,CAEF;GACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectInfo.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectInfo/ProjectInfo.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA8D1D"}
1
+ {"version":3,"file":"ProjectInfo.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectInfo/ProjectInfo.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA+D1D"}
@@ -7,7 +7,7 @@ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  import { DoiObjectType as c } from "@sage-bionetworks/synapse-client";
8
8
  import l from "@mui/icons-material/ArticleOutlined";
9
9
  //#region src/components/ProjectInfo/ProjectInfo.tsx
10
- var u = "10px 12px";
10
+ var u = "8px";
11
11
  function d(d) {
12
12
  let [f, p] = r(null), { projectId: m } = d, { data: h, isLoading: g } = e({
13
13
  id: m,
@@ -38,7 +38,8 @@ function d(d) {
38
38
  },
39
39
  borderRadius: "6px",
40
40
  fontWeight: 540,
41
- padding: u
41
+ padding: u,
42
+ height: "28px"
42
43
  },
43
44
  variant: "outlined",
44
45
  children: "Project Info"
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectInfo.js","names":[],"sources":["../../../src/components/ProjectInfo/ProjectInfo.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { useState } from 'react'\nimport ProjectInfoPopover from './ProjectInfoPopover'\nimport { useGetDOIAssociation } from '@/synapse-queries/doi/useDOI'\nimport { DoiObjectType } from '@sage-bionetworks/synapse-client'\nimport useGetEntityMetadata from '@/utils/hooks/useGetEntityMetadata'\nimport ArticleOutlinedIcon from '@mui/icons-material/ArticleOutlined'\n\nconst PROJECT_INFO_BUTTON_PADDING = '10px 12px'\n\nexport type ProjectInfoProps = {\n projectId: string\n}\n\nexport default function ProjectInfo(props: ProjectInfoProps) {\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null)\n\n const { projectId } = props\n\n const {\n data: projectDoiAssociation,\n isLoading: projectDoiAssociationIsLoading,\n } = useGetDOIAssociation({\n id: projectId,\n version: undefined,\n type: DoiObjectType.ENTITY,\n })\n\n const { uploadDestinationString, isLoading: entityMetadataIsLoading } =\n useGetEntityMetadata(projectId)\n\n const isLoading = projectDoiAssociationIsLoading || entityMetadataIsLoading\n\n const open = Boolean(anchorEl)\n const id = open ? 'project-info-popover' : undefined\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n const popover = (\n <ProjectInfoPopover\n id={id}\n projectId={projectId}\n open={open}\n anchorEl={anchorEl}\n onClose={handleClose}\n doi={projectDoiAssociation?.doiUri}\n projectStorageLocation={uploadDestinationString}\n isLoading={isLoading}\n />\n )\n\n return (\n <>\n <Button\n aria-describedby={id}\n onClick={handleButtonClick}\n startIcon={<ArticleOutlinedIcon />}\n sx={{\n width: { xs: '100%', sm: 'initial' },\n borderRadius: '6px',\n fontWeight: 540,\n padding: PROJECT_INFO_BUTTON_PADDING,\n }}\n variant=\"outlined\"\n >\n Project Info\n </Button>\n {popover}\n </>\n )\n}\n"],"mappings":";;;;;;;;;AAQA,IAAM,IAA8B;AAMpC,SAAwB,EAAY,GAAyB;CAC3D,IAAM,CAAC,GAAU,KAAe,EAAmC,IAAI,GAEjE,EAAE,iBAAc,GAEhB,EACJ,MAAM,GACN,WAAW,MACT,EAAqB;EACvB,IAAI;EACJ,SAAS,KAAA;EACT,MAAM,EAAc;CACtB,CAAC,GAEK,EAAE,4BAAyB,WAAW,MAC1C,EAAqB,CAAS,GAE1B,IAAY,KAAkC,GAE9C,IAAO,EAAQ,GACf,IAAK,IAAO,yBAAyB,KAAA,GAErC,KAAqB,MAA+C;EACxE,EAAY,EAAM,aAAa;CACjC,GAMM,IACJ,kBAAC,GAAD;EACM;EACO;EACL;EACI;EACV,eAVsB;GACxB,EAAY,IAAI;EAClB;EASI,KAAK,GAAuB;EAC5B,wBAAwB;EACb;CACZ,CAAA;CAGH,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,oBAAkB;EAClB,SAAS;EACT,WAAW,kBAAC,GAAD,CAAsB,CAAA;EACjC,IAAI;GACF,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,cAAc;GACd,YAAY;GACZ,SAAS;EACX;EACA,SAAQ;YACT;CAEO,CAAA,GACP,CACD,EAAA,CAAA;AAEN"}
1
+ {"version":3,"file":"ProjectInfo.js","names":[],"sources":["../../../src/components/ProjectInfo/ProjectInfo.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { useState } from 'react'\nimport ProjectInfoPopover from './ProjectInfoPopover'\nimport { useGetDOIAssociation } from '@/synapse-queries/doi/useDOI'\nimport { DoiObjectType } from '@sage-bionetworks/synapse-client'\nimport useGetEntityMetadata from '@/utils/hooks/useGetEntityMetadata'\nimport ArticleOutlinedIcon from '@mui/icons-material/ArticleOutlined'\n\nconst PROJECT_INFO_BUTTON_PADDING = '8px'\n\nexport type ProjectInfoProps = {\n projectId: string\n}\n\nexport default function ProjectInfo(props: ProjectInfoProps) {\n const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null)\n\n const { projectId } = props\n\n const {\n data: projectDoiAssociation,\n isLoading: projectDoiAssociationIsLoading,\n } = useGetDOIAssociation({\n id: projectId,\n version: undefined,\n type: DoiObjectType.ENTITY,\n })\n\n const { uploadDestinationString, isLoading: entityMetadataIsLoading } =\n useGetEntityMetadata(projectId)\n\n const isLoading = projectDoiAssociationIsLoading || entityMetadataIsLoading\n\n const open = Boolean(anchorEl)\n const id = open ? 'project-info-popover' : undefined\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n const popover = (\n <ProjectInfoPopover\n id={id}\n projectId={projectId}\n open={open}\n anchorEl={anchorEl}\n onClose={handleClose}\n doi={projectDoiAssociation?.doiUri}\n projectStorageLocation={uploadDestinationString}\n isLoading={isLoading}\n />\n )\n\n return (\n <>\n <Button\n aria-describedby={id}\n onClick={handleButtonClick}\n startIcon={<ArticleOutlinedIcon />}\n sx={{\n width: { xs: '100%', sm: 'initial' },\n borderRadius: '6px',\n fontWeight: 540,\n padding: PROJECT_INFO_BUTTON_PADDING,\n height: '28px',\n }}\n variant=\"outlined\"\n >\n Project Info\n </Button>\n {popover}\n </>\n )\n}\n"],"mappings":";;;;;;;;;AAQA,IAAM,IAA8B;AAMpC,SAAwB,EAAY,GAAyB;CAC3D,IAAM,CAAC,GAAU,KAAe,EAAmC,IAAI,GAEjE,EAAE,iBAAc,GAEhB,EACJ,MAAM,GACN,WAAW,MACT,EAAqB;EACvB,IAAI;EACJ,SAAS,KAAA;EACT,MAAM,EAAc;CACtB,CAAC,GAEK,EAAE,4BAAyB,WAAW,MAC1C,EAAqB,CAAS,GAE1B,IAAY,KAAkC,GAE9C,IAAO,EAAQ,GACf,IAAK,IAAO,yBAAyB,KAAA,GAErC,KAAqB,MAA+C;EACxE,EAAY,EAAM,aAAa;CACjC,GAMM,IACJ,kBAAC,GAAD;EACM;EACO;EACL;EACI;EACV,eAVsB;GACxB,EAAY,IAAI;EAClB;EASI,KAAK,GAAuB;EAC5B,wBAAwB;EACb;CACZ,CAAA;CAGH,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,oBAAkB;EAClB,SAAS;EACT,WAAW,kBAAC,GAAD,CAAsB,CAAA;EACjC,IAAI;GACF,OAAO;IAAE,IAAI;IAAQ,IAAI;GAAU;GACnC,cAAc;GACd,YAAY;GACZ,SAAS;GACT,QAAQ;EACV;EACA,SAAQ;YACT;CAEO,CAAA,GACP,CACD,EAAA,CAAA;AAEN"}
@@ -0,0 +1 @@
1
+ ._row_t1xbt_1{--qb-pill-color:var(--synapse-primary-action-color);align-items:center;gap:8px;min-height:30px;padding:4px 0;display:flex}._dragHandle_t1xbt_10{cursor:grab;color:var(--synapse-gray-deemphasized)}._remove_t1xbt_15{border:1px solid var(--synapse-border-color-gray);color:var(--synapse-gray-600)!important;border-radius:4px!important;padding:4px!important}._remove_t1xbt_15:hover{color:var(--synapse-error);border-color:var(--synapse-error);background-color:#0000!important}._propertyPicker_t1xbt_27 .MuiOutlinedInput-root,._operatorPicker_t1xbt_28 .MuiOutlinedInput-root,._rangeInput_t1xbt_29 .MuiOutlinedInput-root,._textInput_t1xbt_30 .MuiOutlinedInput-root{height:36px;font-size:14px}._propertyPicker_t1xbt_27{min-width:200px}._operatorPicker_t1xbt_28{min-width:120px}._rangeInput_t1xbt_29{width:120px}._textInput_t1xbt_30{min-width:200px}._pillGroupContainer_t1xbt_51{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}._pillFilter_t1xbt_59{max-width:260px}._pillGroupScroll_t1xbt_63{max-height:120px;overflow-y:auto}._pillGroup_t1xbt_51{flex-wrap:wrap;gap:6px;display:flex}._pillGroup_t1xbt_51 .MuiToggleButton-root,._pillGroup_t1xbt_51 .MuiToggleButtonGroup-grouped{text-transform:none;padding:2px 12px;font-size:13px;line-height:1.4;border:1px solid var(--synapse-gray-dark)!important;border-radius:999px!important;margin:0!important}._pillGroup_t1xbt_51 .MuiToggleButton-root.Mui-selected{background-color:var(--qb-pill-color);color:#fff;border-color:var(--qb-pill-color)}._pillGroup_t1xbt_51 .MuiToggleButton-root.Mui-selected:hover{background-color:var(--qb-pill-color)}
@@ -0,0 +1,6 @@
1
+ import { QBCondition } from './QueryBuilderTypes';
2
+ export type FilterConditionRowProps = {
3
+ condition: QBCondition;
4
+ };
5
+ export declare function FilterConditionRow(props: FilterConditionRowProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=FilterConditionRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterConditionRow.d.ts","sourceRoot":"","sources":["../../../src/components/QueryBuilder/FilterConditionRow.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAA;AAEhE,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,WAAW,CAAA;CACvB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAgKhE"}