@gen3/frontend 0.10.81 → 0.10.83

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 (211) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cjs/index.js +79 -54
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/dts/api/auth/credentialsLogin.js +1 -1
  5. package/dist/dts/api/auth/credentialsLogin.js.map +1 -1
  6. package/dist/dts/components/Buttons/ActionButton.d.ts.map +1 -1
  7. package/dist/dts/components/Buttons/ActionButton.js.map +1 -1
  8. package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.d.ts +2 -2
  9. package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.d.ts.map +1 -1
  10. package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js +1 -1
  11. package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js.map +1 -1
  12. package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.d.ts +1 -1
  13. package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.d.ts.map +1 -1
  14. package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.js.map +1 -1
  15. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.d.ts +1 -0
  16. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.d.ts.map +1 -1
  17. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.js.map +1 -1
  18. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.d.ts +7 -0
  19. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.d.ts.map +1 -0
  20. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.js +15 -0
  21. package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.js.map +1 -0
  22. package/dist/dts/components/Content/LandingPageContent.js +1 -1
  23. package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
  24. package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.d.ts +14 -0
  25. package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.d.ts.map +1 -0
  26. package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.js +19 -0
  27. package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.js.map +1 -0
  28. package/dist/dts/components/Details/DefaultDetailsPanel.d.ts.map +1 -1
  29. package/dist/dts/components/Details/DefaultDetailsPanel.js.map +1 -1
  30. package/dist/dts/components/Details/DetailsDrawer.js +1 -1
  31. package/dist/dts/components/Details/DetailsDrawer.js.map +1 -1
  32. package/dist/dts/components/Details/DetailsModal.d.ts.map +1 -1
  33. package/dist/dts/components/Details/DetailsModal.js.map +1 -1
  34. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
  35. package/dist/dts/components/Layout/TexturedSidePanel.d.ts.map +1 -1
  36. package/dist/dts/components/Layout/TexturedSidePanel.js.map +1 -1
  37. package/dist/dts/components/Modals/BaseModal.d.ts.map +1 -1
  38. package/dist/dts/components/Modals/BaseModal.js.map +1 -1
  39. package/dist/dts/components/Modals/CreateCredentialsAPIKeyModal.d.ts.map +1 -1
  40. package/dist/dts/components/Modals/CreateCredentialsAPIKeyModal.js.map +1 -1
  41. package/dist/dts/components/Modals/FirstTimeModal.d.ts.map +1 -1
  42. package/dist/dts/components/Modals/FirstTimeModal.js.map +1 -1
  43. package/dist/dts/components/Modals/GeneralErrorModal.d.ts.map +1 -1
  44. package/dist/dts/components/Modals/GeneralErrorModal.js.map +1 -1
  45. package/dist/dts/components/Modals/NoAccessModal.d.ts.map +1 -1
  46. package/dist/dts/components/Modals/NoAccessModal.js.map +1 -1
  47. package/dist/dts/components/Modals/SessionExpiredModal.d.ts +2 -2
  48. package/dist/dts/components/Modals/SessionExpiredModal.d.ts.map +1 -1
  49. package/dist/dts/components/Modals/SessionExpiredModal.js.map +1 -1
  50. package/dist/dts/components/OverflowTooltippedLabel.d.ts.map +1 -1
  51. package/dist/dts/components/OverflowTooltippedLabel.js.map +1 -1
  52. package/dist/dts/components/Profile/ExternalProvidersPanel.js +1 -1
  53. package/dist/dts/components/Profile/ExternalProvidersPanel.js.map +1 -1
  54. package/dist/dts/components/Profile/ResourcesPanel.js.map +1 -1
  55. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  56. package/dist/dts/components/Providers/Gen3Provider.js +26 -21
  57. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  58. package/dist/dts/components/Tables/TableIcons.d.ts.map +1 -1
  59. package/dist/dts/components/Tables/TableIcons.js.map +1 -1
  60. package/dist/dts/components/charts/ChartTitleBar.d.ts +1 -1
  61. package/dist/dts/components/charts/ChartTitleBar.d.ts.map +1 -1
  62. package/dist/dts/components/charts/ChartTitleBar.js +1 -1
  63. package/dist/dts/components/charts/ChartTitleBar.js.map +1 -1
  64. package/dist/dts/components/counts/CountsValue.d.ts.map +1 -1
  65. package/dist/dts/components/counts/CountsValue.js.map +1 -1
  66. package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
  67. package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
  68. package/dist/dts/features/Analysis/AnalysisPanel.d.ts +1 -0
  69. package/dist/dts/features/Analysis/AnalysisPanel.d.ts.map +1 -1
  70. package/dist/dts/features/Analysis/AnalysisPanel.js.map +1 -1
  71. package/dist/dts/features/Analysis/TextDescription.d.ts.map +1 -1
  72. package/dist/dts/features/Analysis/TextDescription.js +1 -1
  73. package/dist/dts/features/Analysis/TextDescription.js.map +1 -1
  74. package/dist/dts/features/Authz/Gen3Authz.d.ts.map +1 -1
  75. package/dist/dts/features/Authz/Gen3Authz.js.map +1 -1
  76. package/dist/dts/features/Authz/Policies/PoliciesPanel.d.ts.map +1 -1
  77. package/dist/dts/features/Authz/Policies/PoliciesPanel.js +1 -1
  78. package/dist/dts/features/Authz/Policies/PoliciesPanel.js.map +1 -1
  79. package/dist/dts/features/Authz/Provider.d.ts +2 -1
  80. package/dist/dts/features/Authz/Provider.d.ts.map +1 -1
  81. package/dist/dts/features/Authz/Provider.js.map +1 -1
  82. package/dist/dts/features/Authz/Resources/ResourcesPanel.d.ts.map +1 -1
  83. package/dist/dts/features/Authz/Resources/ResourcesPanel.js +1 -1
  84. package/dist/dts/features/Authz/Resources/ResourcesPanel.js.map +1 -1
  85. package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.d.ts +3 -3
  86. package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.d.ts.map +1 -1
  87. package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.js.map +1 -1
  88. package/dist/dts/features/Authz/Roles/RolesPanel.d.ts.map +1 -1
  89. package/dist/dts/features/Authz/Roles/RolesPanel.js.map +1 -1
  90. package/dist/dts/features/Authz/Users/Cards/UserDetails.d.ts.map +1 -1
  91. package/dist/dts/features/Authz/Users/Cards/UserDetails.js +6 -2
  92. package/dist/dts/features/Authz/Users/Cards/UserDetails.js.map +1 -1
  93. package/dist/dts/features/Authz/Users/Inputs.d.ts +4 -4
  94. package/dist/dts/features/Authz/Users/Inputs.d.ts.map +1 -1
  95. package/dist/dts/features/Authz/Users/Inputs.js +1 -1
  96. package/dist/dts/features/Authz/Users/Inputs.js.map +1 -1
  97. package/dist/dts/features/Authz/Users/NewUserPanel.d.ts.map +1 -1
  98. package/dist/dts/features/Authz/Users/NewUserPanel.js +1 -1
  99. package/dist/dts/features/Authz/Users/NewUserPanel.js.map +1 -1
  100. package/dist/dts/features/Authz/Users/UserDetailsPanel.d.ts.map +1 -1
  101. package/dist/dts/features/Authz/Users/UserDetailsPanel.js +1 -1
  102. package/dist/dts/features/Authz/Users/UserDetailsPanel.js.map +1 -1
  103. package/dist/dts/features/Authz/Users/UserPanel.d.ts.map +1 -1
  104. package/dist/dts/features/Authz/Users/UserPanel.js +3 -3
  105. package/dist/dts/features/Authz/Users/UserPanel.js.map +1 -1
  106. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -1
  107. package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -1
  108. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  109. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
  110. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.d.ts.map +1 -1
  111. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.js.map +1 -1
  112. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -1
  113. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -1
  114. package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.js +1 -1
  115. package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.js.map +1 -1
  116. package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.d.ts +1 -1
  117. package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.d.ts.map +1 -1
  118. package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js +1 -1
  119. package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js.map +1 -1
  120. package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.js.map +1 -1
  121. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
  122. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.js.map +1 -1
  123. package/dist/dts/features/CohortDiscovery/storage-persist.d.ts +12 -0
  124. package/dist/dts/features/CohortDiscovery/storage-persist.d.ts.map +1 -0
  125. package/dist/dts/features/CohortDiscovery/storage-persist.js +24 -0
  126. package/dist/dts/features/CohortDiscovery/storage-persist.js.map +1 -0
  127. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts.map +1 -1
  128. package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js.map +1 -1
  129. package/dist/dts/features/DataLibrary/DataLibrary.d.ts.map +1 -1
  130. package/dist/dts/features/DataLibrary/DataLibrary.js.map +1 -1
  131. package/dist/dts/features/DataLibrary/tables/QueriesTable.d.ts.map +1 -1
  132. package/dist/dts/features/DataLibrary/tables/QueriesTable.js.map +1 -1
  133. package/dist/dts/features/Dictionary/CategoryAccordionLabel.d.ts.map +1 -1
  134. package/dist/dts/features/Dictionary/CategoryAccordionLabel.js +1 -1
  135. package/dist/dts/features/Dictionary/CategoryAccordionLabel.js.map +1 -1
  136. package/dist/dts/features/Dictionary/Cell.d.ts.map +1 -1
  137. package/dist/dts/features/Dictionary/Cell.js.map +1 -1
  138. package/dist/dts/features/Dictionary/ResultCard.d.ts.map +1 -1
  139. package/dist/dts/features/Dictionary/ResultCard.js +1 -1
  140. package/dist/dts/features/Dictionary/ResultCard.js.map +1 -1
  141. package/dist/dts/features/Dictionary/ResultList.d.ts.map +1 -1
  142. package/dist/dts/features/Dictionary/ResultList.js.map +1 -1
  143. package/dist/dts/features/Discovery/ActionBar/DownloadAsZipButton.d.ts.map +1 -1
  144. package/dist/dts/features/Discovery/ActionBar/DownloadAsZipButton.js.map +1 -1
  145. package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.d.ts.map +1 -1
  146. package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.js.map +1 -1
  147. package/dist/dts/features/Discovery/Search/AiSearch.d.ts +1 -1
  148. package/dist/dts/features/Discovery/Search/AiSearch.d.ts.map +1 -1
  149. package/dist/dts/features/Discovery/Search/AiSearch.js +19 -12
  150. package/dist/dts/features/Discovery/Search/AiSearch.js.map +1 -1
  151. package/dist/dts/features/Discovery/Statistics/StatisticsRendererFactory.d.ts.map +1 -1
  152. package/dist/dts/features/Discovery/Statistics/StatisticsRendererFactory.js.map +1 -1
  153. package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.d.ts +1 -1
  154. package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -1
  155. package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.js +3 -3
  156. package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.js.map +1 -1
  157. package/dist/dts/features/Navigation/Banner.d.ts +1 -0
  158. package/dist/dts/features/Navigation/Banner.d.ts.map +1 -1
  159. package/dist/dts/features/Navigation/Banner.js +5 -5
  160. package/dist/dts/features/Navigation/Banner.js.map +1 -1
  161. package/dist/dts/features/Navigation/Footer/Footer.stories.d.ts +14 -0
  162. package/dist/dts/features/Navigation/Footer/Footer.stories.d.ts.map +1 -0
  163. package/dist/dts/features/Navigation/Footer/Footer.stories.js +46 -0
  164. package/dist/dts/features/Navigation/Footer/Footer.stories.js.map +1 -0
  165. package/dist/dts/features/Navigation/Footer/types.d.ts +2 -2
  166. package/dist/dts/features/Navigation/Footer/types.d.ts.map +1 -1
  167. package/dist/dts/features/Navigation/Header.d.ts.map +1 -1
  168. package/dist/dts/features/Navigation/Header.js +1 -1
  169. package/dist/dts/features/Navigation/Header.js.map +1 -1
  170. package/dist/dts/features/Navigation/TopBar.d.ts +4 -2
  171. package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
  172. package/dist/dts/features/Navigation/TopBar.js +24 -6
  173. package/dist/dts/features/Navigation/TopBar.js.map +1 -1
  174. package/dist/dts/features/Navigation/TopBar.stories.d.ts +14 -0
  175. package/dist/dts/features/Navigation/TopBar.stories.d.ts.map +1 -0
  176. package/dist/dts/features/Navigation/TopBar.stories.js +30 -0
  177. package/dist/dts/features/Navigation/TopBar.stories.js.map +1 -0
  178. package/dist/dts/features/Profile/Profile.d.ts.map +1 -1
  179. package/dist/dts/features/Profile/Profile.js.map +1 -1
  180. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
  181. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
  182. package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
  183. package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
  184. package/dist/dts/index.d.ts +2 -1
  185. package/dist/dts/index.d.ts.map +1 -1
  186. package/dist/dts/index.js +2 -1
  187. package/dist/dts/index.js.map +1 -1
  188. package/dist/dts/pages/404/Custom404Page.stories.d.ts +9 -0
  189. package/dist/dts/pages/404/Custom404Page.stories.d.ts.map +1 -0
  190. package/dist/dts/pages/404/Custom404Page.stories.js +12 -0
  191. package/dist/dts/pages/404/Custom404Page.stories.js.map +1 -0
  192. package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
  193. package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
  194. package/dist/dts/pages/Landing/about-us.js +1 -1
  195. package/dist/dts/pages/Landing/about-us.js.map +1 -1
  196. package/dist/dts/pages/Theme/Colors.d.ts.map +1 -1
  197. package/dist/dts/pages/Theme/Colors.js.map +1 -1
  198. package/dist/dts/types/styling.d.ts +2 -2
  199. package/dist/dts/types/styling.d.ts.map +1 -1
  200. package/dist/dts/utils/RendererFactory.d.ts.map +1 -1
  201. package/dist/dts/utils/download.d.ts.map +1 -1
  202. package/dist/dts/utils/download.js.map +1 -1
  203. package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts +5 -7
  204. package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts.map +1 -1
  205. package/dist/dts/utils/mergeDefaultTailwindClassnames.js +3 -3
  206. package/dist/dts/utils/mergeDefaultTailwindClassnames.js.map +1 -1
  207. package/dist/esm/index.js +80 -56
  208. package/dist/esm/index.js.map +1 -1
  209. package/dist/index.d.ts +13 -10
  210. package/dist/tsconfig.tsbuildinfo +1 -1
  211. package/package.json +6 -4
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/dist/cjs/index.js CHANGED
@@ -985,10 +985,10 @@ var LoginButtonVisibility = /*#__PURE__*/ function(LoginButtonVisibility) {
985
985
  /**
986
986
  * Merges default and user values for Tailwind classnames.
987
987
  *
988
- * @param {RecordType} defaultValues - The default values for the classnames.
989
- * @param {RecordType} userValues - The user-defined values for the classnames.
988
+ * @param {StylingOverride} defaultValues - The default values for the classnames.
989
+ * @param {StylingOverride} userValues - The user-defined values for the classnames.
990
990
  * @param {StylingMergeMode} mode - Whether to merge or replace the default and user values. Default is merge.
991
- * @returns {RecordType} - The merged default and user values for the classnames.
991
+ * @returns {StylingOverride} - The merged default and user values for the classnames.
992
992
  */ const mergeDefaultTailwindClassnames = (defaultValues, { mode = 'merge', ...userValues })=>{
993
993
  const defaultKeys = Object.keys(defaultValues);
994
994
  const mergedValues = {
@@ -3078,7 +3078,16 @@ const LoginAccountButton = ({ className = undefined })=>{
3078
3078
  return null;
3079
3079
  };
3080
3080
 
3081
- const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, classNames = {}, drawBorder = true })=>{
3081
+ const IconSize = {
3082
+ xs: 14,
3083
+ sm: 16,
3084
+ md: 20,
3085
+ lg: 24,
3086
+ xl: 32,
3087
+ 'xl-2': 36
3088
+ };
3089
+
3090
+ const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, iconSize = 'md', classNames = {}, drawBorder = true })=>{
3082
3091
  const classNamesDefaults = {
3083
3092
  root: `flex items-center align-middle px-2 my-2`,
3084
3093
  button: 'flex flex-nowrap items-center align-middle border-b-2 hover:border-accent border-transparent',
@@ -3087,6 +3096,8 @@ const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, clas
3087
3096
  rightIcon: 'text-secondary-contrast-lighter pl-1'
3088
3097
  };
3089
3098
  const mergedClassnames = mergeDefaultTailwindClassnames(classNamesDefaults, classNames);
3099
+ // get the icon size otherwise use the value of iconsSize as a string value: e.g. 2em
3100
+ const iconSz = IconSize[iconSize] ?? iconSize;
3090
3101
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
3091
3102
  className: extractClassName('root', mergedClassnames),
3092
3103
  "aria-label": name,
@@ -3096,6 +3107,8 @@ const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, clas
3096
3107
  children: [
3097
3108
  leftIcon ? /*#__PURE__*/ jsxRuntime.jsx(react.Icon, {
3098
3109
  icon: leftIcon,
3110
+ width: iconSz,
3111
+ height: iconSz,
3099
3112
  className: extractClassName('leftIcon', mergedClassnames)
3100
3113
  }) : null,
3101
3114
  /*#__PURE__*/ jsxRuntime.jsxs("p", {
@@ -3106,7 +3119,9 @@ const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, clas
3106
3119
  " "
3107
3120
  ]
3108
3121
  }),
3109
- rightIcon ? /*#__PURE__*/ jsxRuntime.jsx(react.Icon, {
3122
+ rightIcon && rightIcon.length > 0 ? /*#__PURE__*/ jsxRuntime.jsx(react.Icon, {
3123
+ width: iconSz,
3124
+ height: iconSz,
3110
3125
  icon: rightIcon,
3111
3126
  className: extractClassName('rightIcon', mergedClassnames)
3112
3127
  }) : null
@@ -3114,9 +3129,10 @@ const TopIconButton = ({ name, leftIcon = undefined, rightIcon = undefined, clas
3114
3129
  })
3115
3130
  });
3116
3131
  };
3117
- const processTopBarItems = (items, showLogin)=>{
3132
+ const processTopBarItems = (items, showLogin, classNames, dividerClassname)=>{
3118
3133
  return items.reduce((acc, item, index)=>{
3119
3134
  const needsBorder = !(index === items.length - 1 && !showLogin);
3135
+ const mergedClassnames = item?.classNames ? mergeDefaultTailwindClassnames(classNames, item.classNames) : classNames;
3120
3136
  acc.push(/*#__PURE__*/ jsxRuntime.jsxs("a", {
3121
3137
  className: "flex",
3122
3138
  href: item.href,
@@ -3124,18 +3140,18 @@ const processTopBarItems = (items, showLogin)=>{
3124
3140
  ' ',
3125
3141
  /*#__PURE__*/ jsxRuntime.jsx(TopIconButton, {
3126
3142
  name: item.name,
3143
+ iconSize: item.iconSize,
3127
3144
  leftIcon: item.leftIcon,
3128
3145
  rightIcon: item.rightIcon,
3129
- classNames: item.classNames,
3146
+ classNames: mergedClassnames,
3130
3147
  drawBorder: needsBorder
3131
3148
  }),
3132
3149
  ' ',
3133
3150
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Divider, {
3134
3151
  size: "md",
3135
- color: "accent.4",
3136
3152
  orientation: "vertical",
3137
3153
  classNames: {
3138
- root: 'my-2'
3154
+ root: dividerClassname
3139
3155
  }
3140
3156
  })
3141
3157
  ]
@@ -3143,12 +3159,21 @@ const processTopBarItems = (items, showLogin)=>{
3143
3159
  return acc;
3144
3160
  }, []);
3145
3161
  };
3146
- const TopBar = ({ items, loginButtonVisibility = LoginButtonVisibility.Hidden, externalLoginUrl, classNames = {} })=>{
3162
+ const TopBar = ({ items, loginButtonVisibility = LoginButtonVisibility.Hidden, externalLoginUrl, classNames = {}, itemClassnames = {} })=>{
3147
3163
  const classNamesDefaults = {
3148
3164
  root: 'flex justify-end items-center align-middle w-100 bg-secondary-lighter',
3149
- login: 'font-content hover:border-accent'
3165
+ login: 'font-content hover:border-accent',
3166
+ divider: 'border-accent my-2'
3167
+ };
3168
+ const itemClassnameDefaults = {
3169
+ root: `flex items-center align-middle px-2 my-2`,
3170
+ button: 'flex flex-nowrap items-center align-middle border-b-2 hover:border-accent border-transparent',
3171
+ leftIcon: 'text-secondary-contrast-lighter pr-1',
3172
+ label: 'font-content text-secondary-contrast-lighter block',
3173
+ rightIcon: 'text-secondary-contrast-lighter pl-1'
3150
3174
  };
3151
3175
  const mergedClassnames = mergeDefaultTailwindClassnames(classNamesDefaults, classNames);
3176
+ const mergedItemClassnames = mergeDefaultTailwindClassnames(itemClassnameDefaults, itemClassnames);
3152
3177
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
3153
3178
  children: /*#__PURE__*/ jsxRuntime.jsx("header", {
3154
3179
  className: extractClassName('root', mergedClassnames),
@@ -3157,7 +3182,7 @@ const TopBar = ({ items, loginButtonVisibility = LoginButtonVisibility.Hidden, e
3157
3182
  "aria-label": "top most navigation",
3158
3183
  className: "flex items-center align-middle",
3159
3184
  children: [
3160
- processTopBarItems(items, loginButtonVisibility === LoginButtonVisibility.Visible),
3185
+ processTopBarItems(items, loginButtonVisibility === LoginButtonVisibility.Visible, mergedItemClassnames, extractClassName('divider', mergedClassnames)),
3161
3186
  loginButtonVisibility != LoginButtonVisibility.Hidden ? /*#__PURE__*/ jsxRuntime.jsxs("div", {
3162
3187
  className: "flex items-center",
3163
3188
  children: [
@@ -3166,7 +3191,9 @@ const TopBar = ({ items, loginButtonVisibility = LoginButtonVisibility.Hidden, e
3166
3191
  }),
3167
3192
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Divider, {
3168
3193
  size: "md",
3169
- color: "accent.4",
3194
+ classNames: {
3195
+ root: extractClassName('divider', mergedClassnames)
3196
+ },
3170
3197
  orientation: "vertical"
3171
3198
  })
3172
3199
  ]
@@ -3577,6 +3604,9 @@ const HorizontalNavigationBar = ({ actions, items, logo = undefined, loginIcon =
3577
3604
  externalLoginUrl: top?.externalLoginUrl,
3578
3605
  classNames: {
3579
3606
  ...top.classNames
3607
+ },
3608
+ itemClassnames: {
3609
+ ...top.itemClassnames
3580
3610
  }
3581
3611
  }),
3582
3612
  banners?.map((banner)=>/*#__PURE__*/ React.createElement(Banner, {
@@ -6129,7 +6159,7 @@ const SearchInputWithSuggestions = ({ searchChanged, placeholder, label, suggest
6129
6159
  * AiSearch is an ai chatbot presenting as a searchbar
6130
6160
  * @param uidForStorage - optional id used to store search results Defaults to 'aiSearch'
6131
6161
  * @param placeholder - optional Defaults to 'e.g. Is there any data with subjects diagnosed with lung disease?'
6132
- */ const AiSearch = ({ placeholder = 'e.g. Is there any data with subjects diagnosed with lung disease?', uidForStorage = 'aiSearch' })=>{
6162
+ */ const AiSearch = ({ placeholder = 'e.g. Is there any data with subjects diagnosed with lung disease?', uidForStorage = 'aiSearch' })=>{
6133
6163
  const [searchTerm, setSearchTerm] = React.useState('');
6134
6164
  const [searchTermOnSubmit, setSearchTermOnSubmit] = React.useState('');
6135
6165
  const [aiSearchHistory, setAiSearchHistory] = React.useState({});
@@ -14899,35 +14929,11 @@ const createMantineTheme = (fonts, colors)=>{
14899
14929
  const theme = core$1.createTheme({
14900
14930
  // use V2 font in MantineProvider
14901
14931
  fontFamily: fonts.fontFamily,
14902
- // Override default blue color until styles are determined
14903
- colors: {
14904
- white: [
14905
- // TODO: replace with primary theme color
14906
- '#ffffff',
14907
- '#ffffff',
14908
- '#ffffff',
14909
- '#ffffff',
14910
- '#ffffff',
14911
- '#ffffff',
14912
- '#ffffff',
14913
- '#ffffff',
14914
- '#ffffff',
14915
- '#ffffff'
14916
- ],
14917
- // Add default color from tailwind config to Mantine theme
14918
- // note that now getting colors from the tailwindcss-themer which assumes that plugin is last in the
14919
- // plugins declaration.
14920
- // TODO: refactor how the configuration get loaded
14921
- ...Object.fromEntries(Object.entries(colors).map(([key, values])=>[
14922
- key,
14923
- Object.values(values)
14924
- ]))
14925
- },
14932
+ colors: Object.fromEntries(Object.entries(colors).map(([key, values])=>values ? [
14933
+ key,
14934
+ Object.values(values)
14935
+ ] : [])),
14926
14936
  primaryColor: 'primary',
14927
- primaryShade: {
14928
- light: 4,
14929
- dark: 7
14930
- },
14931
14937
  breakpoints: {
14932
14938
  xs: '31.25em',
14933
14939
  sm: '50em',
@@ -14936,13 +14942,40 @@ const createMantineTheme = (fonts, colors)=>{
14936
14942
  xl: '112.5em'
14937
14943
  },
14938
14944
  components: {
14939
- Modal: {
14945
+ Modal: core$1.Modal.extend({
14940
14946
  defaultProps: {
14941
14947
  classNames: {
14942
14948
  title: 'font-bold'
14943
14949
  }
14944
14950
  }
14945
- }
14951
+ }),
14952
+ Pagination: core$1.Pagination.extend({
14953
+ defaultProps: {
14954
+ getControlProps: (control)=>{
14955
+ if (control === 'first') {
14956
+ return {
14957
+ "aria-label": "First"
14958
+ };
14959
+ }
14960
+ if (control === 'last') {
14961
+ return {
14962
+ "aria-label": "Last"
14963
+ };
14964
+ }
14965
+ if (control === 'next') {
14966
+ return {
14967
+ "aria-label": "Next"
14968
+ };
14969
+ }
14970
+ if (control === 'previous') {
14971
+ return {
14972
+ "aria-label": "Previous"
14973
+ };
14974
+ }
14975
+ return {};
14976
+ }
14977
+ }
14978
+ })
14946
14979
  }
14947
14980
  });
14948
14981
  return theme;
@@ -15186,7 +15219,7 @@ const QueryPageGetServerSideProps = async ()=>{
15186
15219
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
15187
15220
  className: "h-full relative",
15188
15221
  children: /*#__PURE__*/ jsxRuntime.jsx(Image, {
15189
- src: `${basePath}${obj.image.src}`,
15222
+ src: obj.image.src,
15190
15223
  alt: obj.image.alt,
15191
15224
  fill: true
15192
15225
  })
@@ -18562,15 +18595,6 @@ const getNumberOfSelectedItemsInList = (selections, listId)=>{
18562
18595
  };
18563
18596
  const isListInSelection = (listId, selections)=>listId in selections;
18564
18597
 
18565
- const IconSize = {
18566
- xs: 14,
18567
- sm: 16,
18568
- md: 20,
18569
- lg: 24,
18570
- xl: 32,
18571
- 'xl-2': 36
18572
- };
18573
-
18574
18598
  const SearchAndActions = ({ createList, gatherData, size = 'sm' })=>{
18575
18599
  const { selections, clearSelections } = useDataLibrarySelection();
18576
18600
  const retrieveDisabled = Object.keys(selections).length === 0;
@@ -20867,6 +20891,7 @@ exports.SubmissionPage = SubmissionPage;
20867
20891
  exports.SubmissionPageGetServerSideProps = SubmissionPageGetServerSideProps;
20868
20892
  exports.TagCloud = TagCloud;
20869
20893
  exports.TailwindConfig = TailwindConfig;
20894
+ exports.TopBar = TopBar;
20870
20895
  exports.UploadJSONButton = UploadJSONButton;
20871
20896
  exports.User = User;
20872
20897
  exports.Workspace = Workspace;