@databiosphere/findable-ui 50.6.1 → 50.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/README.md +32 -19
  2. package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +6 -0
  3. package/lib/components/DataDictionary/components/Table/columns/columnDef.js +33 -0
  4. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +5 -0
  5. package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +5 -0
  6. package/lib/components/DataDictionary/components/Table/columns/types.d.ts +2 -0
  7. package/lib/components/DataDictionary/components/Table/columns/types.js +1 -0
  8. package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +4 -0
  9. package/lib/components/DataDictionary/components/Table/components/BasicCell/types.js +1 -0
  10. package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.d.ts +4 -0
  11. package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +23 -0
  12. package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +8 -0
  13. package/lib/components/DataDictionary/hooks/UseDataDictionary/types.js +1 -0
  14. package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.d.ts +2 -0
  15. package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.js +10 -0
  16. package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.d.ts +7 -0
  17. package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.js +1 -0
  18. package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +8 -0
  19. package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +36 -0
  20. package/lib/components/Export/components/ExportMethod/exportMethod.stories.d.ts +22 -0
  21. package/lib/components/Export/components/ExportMethod/exportMethod.stories.js +20 -0
  22. package/lib/components/Filter/components/Filter/filter.stories.d.ts +25 -0
  23. package/lib/components/Filter/components/Filter/filter.stories.js +42 -0
  24. package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +16 -0
  25. package/lib/components/Filter/components/FilterTag/filterTag.stories.js +17 -0
  26. package/lib/components/Filter/components/Filters/components/CategoryLabel/categoryLabel.d.ts +9 -0
  27. package/lib/components/Filter/components/Filters/components/CategoryLabel/categoryLabel.js +15 -0
  28. package/lib/components/Filter/components/Filters/components/Controls/controls.d.ts +12 -0
  29. package/lib/components/Filter/components/Filters/components/Controls/controls.js +20 -0
  30. package/lib/components/Filter/components/Filters/components/Controls/controls.styles.d.ts +5 -0
  31. package/lib/components/Filter/components/Filters/components/Controls/controls.styles.js +7 -0
  32. package/lib/components/Filter/components/Filters/components/Controls/types.d.ts +6 -0
  33. package/lib/components/Filter/components/Filters/components/Controls/types.js +1 -0
  34. package/lib/components/Filter/components/Filters/filters.stories.d.ts +6 -0
  35. package/lib/components/Filter/components/Filters/filters.stories.js +91 -0
  36. package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.d.ts +3 -0
  37. package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.js +15 -0
  38. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.d.ts +6 -0
  39. package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.js +82 -0
  40. package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.d.ts +1 -0
  41. package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +14 -0
  42. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.d.ts +2 -0
  43. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.js +12 -0
  44. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.d.ts +5 -0
  45. package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +34 -0
  46. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/constants.d.ts +5 -0
  47. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/constants.js +5 -0
  48. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.d.ts +2 -0
  49. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.js +19 -0
  50. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.styles.d.ts +12 -0
  51. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.styles.js +22 -0
  52. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/types.d.ts +4 -0
  53. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/types.js +1 -0
  54. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/utils.d.ts +8 -0
  55. package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/utils.js +14 -0
  56. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/title.d.ts +2 -0
  57. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/title.js +15 -0
  58. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/types.d.ts +7 -0
  59. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/types.js +1 -0
  60. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/constants.d.ts +2 -0
  61. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/constants.js +27 -0
  62. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/hook.d.ts +9 -0
  63. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/hook.js +16 -0
  64. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/tooltip.d.ts +2 -0
  65. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/tooltip.js +11 -0
  66. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/types.d.ts +5 -0
  67. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/types.js +1 -0
  68. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.d.ts +2 -0
  69. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.js +17 -0
  70. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.styles.d.ts +5 -0
  71. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.styles.js +10 -0
  72. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/types.d.ts +8 -0
  73. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/types.js +1 -0
  74. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/utils.d.ts +7 -0
  75. package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/utils.js +19 -0
  76. package/lib/components/Filter/components/ai/components/FacetAssistant/constants.d.ts +2 -0
  77. package/lib/components/Filter/components/ai/components/FacetAssistant/constants.js +10 -0
  78. package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.d.ts +6 -0
  79. package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.js +70 -0
  80. package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.styles.d.ts +8 -0
  81. package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.styles.js +14 -0
  82. package/lib/components/Filter/components/ai/components/FacetAssistant/stories/aiFacetAssistant.stories.d.ts +6 -0
  83. package/lib/components/Filter/components/ai/components/FacetAssistant/stories/aiFacetAssistant.stories.js +12 -0
  84. package/lib/components/Filter/components/ai/components/FacetAssistant/types.d.ts +13 -0
  85. package/lib/components/Filter/components/ai/components/FacetAssistant/types.js +1 -0
  86. package/lib/components/Filter/components/ai/components/FacetAssistant/utils.d.ts +15 -0
  87. package/lib/components/Filter/components/ai/components/FacetAssistant/utils.js +91 -0
  88. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.d.ts +9 -0
  89. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.js +16 -0
  90. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.styles.d.ts +3 -0
  91. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.styles.js +9 -0
  92. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/stories/aiSwitch.stories.d.ts +6 -0
  93. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/stories/aiSwitch.stories.js +8 -0
  94. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/types.d.ts +4 -0
  95. package/lib/components/Filter/components/controls/Controls/components/AiSwitch/types.js +1 -0
  96. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.d.ts +10 -0
  97. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.js +16 -0
  98. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.styles.d.ts +6 -0
  99. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.styles.js +18 -0
  100. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/types.d.ts +2 -0
  101. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/types.js +1 -0
  102. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/constants.d.ts +2 -0
  103. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/constants.js +4 -0
  104. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.d.ts +10 -0
  105. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.js +18 -0
  106. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.styles.d.ts +6 -0
  107. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.styles.js +13 -0
  108. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/types.d.ts +2 -0
  109. package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/types.js +1 -0
  110. package/lib/components/Filter/components/surfaces/drawer/components/Button/types.d.ts +4 -0
  111. package/lib/components/Filter/components/surfaces/drawer/components/Button/types.js +1 -0
  112. package/lib/components/Index/components/Cell/cell.d.ts +7 -0
  113. package/lib/components/Index/components/Cell/cell.js +10 -0
  114. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
  115. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +20 -0
  116. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +13 -0
  117. package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.js +12 -0
  118. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +10 -0
  119. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +10 -0
  120. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.d.ts +3 -0
  121. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +91 -0
  122. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +132 -0
  123. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +230 -0
  124. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.d.ts +2 -0
  125. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.js +7 -0
  126. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.d.ts +3 -0
  127. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.js +29 -0
  128. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.d.ts +1 -0
  129. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.js +1 -0
  130. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.d.ts +4 -0
  131. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.js +70 -0
  132. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.d.ts +7 -0
  133. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +18 -0
  134. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.d.ts +6 -0
  135. package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.js +1 -0
  136. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.d.ts +1 -0
  137. package/lib/components/Index/components/EntitiesView/components/ChartView/constants.js +1 -0
  138. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.d.ts +7 -0
  139. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.js +1 -0
  140. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.d.ts +3 -0
  141. package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.js +11 -0
  142. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.d.ts +3 -0
  143. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +97 -0
  144. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.d.ts +6 -0
  145. package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +15 -0
  146. package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +8 -0
  147. package/lib/components/Index/components/EntitiesView/components/ChartView/types.js +1 -0
  148. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.d.ts +14 -0
  149. package/lib/components/Index/components/EntitiesView/components/ChartView/utils.js +23 -0
  150. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +3 -0
  151. package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +14 -0
  152. package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +6 -0
  153. package/lib/components/Index/components/EntitiesView/components/EntityList/types.js +1 -0
  154. package/lib/components/Index/components/EntitiesView/constants.d.ts +1 -0
  155. package/lib/components/Index/components/EntitiesView/constants.js +1 -0
  156. package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +2 -0
  157. package/lib/components/Index/components/EntitiesView/entitiesView.js +15 -0
  158. package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +3 -0
  159. package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +20 -0
  160. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +2 -0
  161. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.js +14 -0
  162. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.d.ts +13 -0
  163. package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.js +5 -0
  164. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +8 -0
  165. package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +50 -0
  166. package/lib/components/Index/components/EntitiesView/types.d.ts +8 -0
  167. package/lib/components/Index/components/EntitiesView/types.js +1 -0
  168. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +1 -0
  169. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +13 -0
  170. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +3 -0
  171. package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.js +13 -0
  172. package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.d.ts +6 -0
  173. package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js +14 -0
  174. package/lib/components/Index/components/Hero/components/Summaries/summaries.d.ts +9 -0
  175. package/lib/components/Index/components/Hero/components/Summaries/summaries.js +12 -0
  176. package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +13 -0
  177. package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.js +18 -0
  178. package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +7 -0
  179. package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.js +26 -0
  180. package/lib/components/Index/components/Hero/hero.d.ts +11 -0
  181. package/lib/components/Index/components/Hero/hero.js +12 -0
  182. package/lib/components/Index/components/Hero/hero.stories.d.ts +23 -0
  183. package/lib/components/Index/components/Hero/hero.stories.js +22 -0
  184. package/lib/components/Index/components/Hero/hero.styles.d.ts +16 -0
  185. package/lib/components/Index/components/Hero/hero.styles.js +44 -0
  186. package/lib/components/Index/components/Hero/stories/hero.stories.d.ts +6 -0
  187. package/lib/components/Index/components/Hero/stories/hero.stories.js +16 -0
  188. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +8 -0
  189. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +57 -0
  190. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +4 -0
  191. package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +10 -0
  192. package/lib/components/Index/components/NTag/nTag.d.ts +10 -0
  193. package/lib/components/Index/components/NTag/nTag.js +8 -0
  194. package/lib/components/Index/components/NTagCell/nTagCell.d.ts +11 -0
  195. package/lib/components/Index/components/NTagCell/nTagCell.js +29 -0
  196. package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -0
  197. package/lib/components/Index/components/NTagCell/nTagCell.stories.js +16 -0
  198. package/lib/components/Index/components/Tabs/common/utils.d.ts +8 -0
  199. package/lib/components/Index/components/Tabs/common/utils.js +19 -0
  200. package/lib/components/Index/components/Tabs/tabs.d.ts +1 -0
  201. package/lib/components/Index/components/Tabs/tabs.js +20 -0
  202. package/lib/components/Index/components/TitleCell/titleCell.d.ts +6 -0
  203. package/lib/components/Index/components/TitleCell/titleCell.js +10 -0
  204. package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +3 -0
  205. package/lib/components/Index/components/TitleCell/titleCell.styles.js +6 -0
  206. package/lib/components/Index/index.stories.d.ts +6 -0
  207. package/lib/components/Index/index.stories.js +26 -0
  208. package/lib/components/Index/stories/index.stories.d.ts +6 -0
  209. package/lib/components/Index/stories/index.stories.js +17 -0
  210. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +6 -0
  211. package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +10 -0
  212. package/lib/components/Layout/components/Footer/footer.stories.d.ts +27 -0
  213. package/lib/components/Layout/components/Footer/footer.stories.js +64 -0
  214. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +5 -0
  215. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +29 -0
  216. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +6 -0
  217. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +13 -0
  218. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +36 -0
  219. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +9 -0
  220. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +5 -0
  221. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +10 -0
  222. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +36 -0
  223. package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +9 -0
  224. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +5 -0
  225. package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +19 -0
  226. package/lib/components/Layout/components/Outline/common/constants.d.ts +2 -0
  227. package/lib/components/Layout/components/Outline/common/constants.js +1 -0
  228. package/lib/components/Login/login.stories.d.ts +6 -0
  229. package/lib/components/Login/login.stories.js +31 -0
  230. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +16 -0
  231. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +28 -0
  232. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +5 -0
  233. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +46 -0
  234. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +3 -0
  235. package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +21 -0
  236. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.d.ts +6 -0
  237. package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.js +17 -0
  238. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +2 -0
  239. package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +37 -0
  240. package/lib/components/Table/components/Pagination/pagination.d.ts +9 -0
  241. package/lib/components/Table/components/Pagination/pagination.js +19 -0
  242. package/lib/components/Table/components/Pagination/pagination.stories.d.ts +28 -0
  243. package/lib/components/Table/components/Pagination/pagination.stories.js +24 -0
  244. package/lib/components/Table/components/Pagination/pagination.styles.d.ts +4 -0
  245. package/lib/components/Table/components/Pagination/pagination.styles.js +15 -0
  246. package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.d.ts +3 -0
  247. package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.js +3 -0
  248. package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.d.ts +8 -0
  249. package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.js +18 -0
  250. package/lib/components/Table/components/TableBody/hooks/virtualizer/types.d.ts +4 -0
  251. package/lib/components/Table/components/TableBody/hooks/virtualizer/types.js +1 -0
  252. package/lib/components/Table/components/TableBody/utils.d.ts +12 -0
  253. package/lib/components/Table/components/TableBody/utils.js +17 -0
  254. package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.d.ts +3 -0
  255. package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.js +1 -0
  256. package/lib/components/Table/components/TableCell/components/MarkdownCell/types.d.ts +3 -0
  257. package/lib/components/Table/components/TableCell/components/MarkdownCell/types.js +1 -0
  258. package/lib/components/TableCreator/common/constants.d.ts +6 -0
  259. package/lib/components/TableCreator/common/constants.js +19 -0
  260. package/lib/components/TableCreator/common/entities.d.ts +5 -0
  261. package/lib/components/TableCreator/common/entities.js +1 -0
  262. package/lib/components/TableCreator/tableCreator.styles.d.ts +4 -0
  263. package/lib/components/TableCreator/tableCreator.styles.js +4 -0
  264. package/lib/components/common/Alert/alert.stories.d.ts +6 -0
  265. package/lib/components/common/Alert/alert.stories.js +36 -0
  266. package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +4 -0
  267. package/lib/components/common/Alert/components/AlertText/alertText.styles.js +19 -0
  268. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +7 -0
  269. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +5 -0
  270. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +3 -0
  271. package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +19 -0
  272. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +10 -0
  273. package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +16 -0
  274. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +3 -0
  275. package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +21 -0
  276. package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +3 -0
  277. package/lib/components/common/Button/components/LoginButton/loginButton.js +6 -0
  278. package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +7 -0
  279. package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +11 -0
  280. package/lib/components/common/CustomIcon/components/AiIcon/aiIcon.d.ts +2 -0
  281. package/lib/components/common/CustomIcon/components/AiIcon/aiIcon.js +6 -0
  282. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +5 -0
  283. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +10 -0
  284. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +3 -0
  285. package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +9 -0
  286. package/lib/components/common/Switch/provider/context.d.ts +2 -0
  287. package/lib/components/common/Switch/provider/context.js +6 -0
  288. package/lib/components/common/Switch/provider/hook.d.ts +6 -0
  289. package/lib/components/common/Switch/provider/hook.js +9 -0
  290. package/lib/components/common/Switch/provider/provider.d.ts +9 -0
  291. package/lib/components/common/Switch/provider/provider.js +16 -0
  292. package/lib/components/common/Switch/provider/types.d.ts +6 -0
  293. package/lib/components/common/Switch/provider/types.js +1 -0
  294. package/lib/hooks/useAuthentication/common/constants.d.ts +4 -0
  295. package/lib/hooks/useAuthentication/common/constants.js +19 -0
  296. package/lib/hooks/useAuthentication/common/entities.d.ts +25 -0
  297. package/lib/hooks/useAuthentication/common/entities.js +11 -0
  298. package/lib/hooks/useAuthentication/common/utils.d.ts +15 -0
  299. package/lib/hooks/useAuthentication/common/utils.js +25 -0
  300. package/lib/hooks/useAuthentication/useAuthentication.d.ts +6 -0
  301. package/lib/hooks/useAuthentication/useAuthentication.js +9 -0
  302. package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +6 -0
  303. package/lib/hooks/useAuthentication/useAuthenticationComplete.js +55 -0
  304. package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +20 -0
  305. package/lib/hooks/useAuthentication/useAuthenticationForm.js +88 -0
  306. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +18 -0
  307. package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +50 -0
  308. package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +20 -0
  309. package/lib/hooks/useAuthentication/useAuthenticationStatus.js +32 -0
  310. package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +21 -0
  311. package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +41 -0
  312. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +18 -0
  313. package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +62 -0
  314. package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +24 -0
  315. package/lib/hooks/useAuthentication/useFetchTerraProfile.js +62 -0
  316. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +15 -0
  317. package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +62 -0
  318. package/lib/hooks/useAuthentication/useTokenClient.d.ts +11 -0
  319. package/lib/hooks/useAuthentication/useTokenClient.js +29 -0
  320. package/lib/hooks/useAuthenticationConfig.d.ts +6 -0
  321. package/lib/hooks/useAuthenticationConfig.js +14 -0
  322. package/lib/hooks/useCategoryConfigs.d.ts +6 -0
  323. package/lib/hooks/useCategoryConfigs.js +17 -0
  324. package/lib/hooks/useEntityListRelatedView.d.ts +15 -0
  325. package/lib/hooks/useEntityListRelatedView.js +62 -0
  326. package/lib/hooks/useExploreMode.d.ts +14 -0
  327. package/lib/hooks/useExploreMode.js +20 -0
  328. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +15 -0
  329. package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +27 -0
  330. package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +5 -0
  331. package/lib/hooks/useFileManifest/useFileManifestURL.js +11 -0
  332. package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +9 -0
  333. package/lib/hooks/useFileManifest/useRequestFileManifest.js +37 -0
  334. package/lib/hooks/useLayoutState.d.ts +6 -0
  335. package/lib/hooks/useLayoutState.js +9 -0
  336. package/lib/hooks/useMenu.d.ts +10 -0
  337. package/lib/hooks/useMenu.js +17 -0
  338. package/lib/hooks/useMenuWithPosition.d.ts +14 -0
  339. package/lib/hooks/useMenuWithPosition.js +33 -0
  340. package/lib/hooks/useScroll.d.ts +10 -0
  341. package/lib/hooks/useScroll.js +12 -0
  342. package/lib/hooks/useSessionTimeout.d.ts +11 -0
  343. package/lib/hooks/useSessionTimeout.js +28 -0
  344. package/lib/mocks/@storybook/addon-actions.d.ts +9 -0
  345. package/lib/mocks/@storybook/addon-actions.js +9 -0
  346. package/lib/providers/authentication.d.ts +51 -0
  347. package/lib/providers/authentication.js +110 -0
  348. package/lib/providers/layoutState.d.ts +40 -0
  349. package/lib/providers/layoutState.js +47 -0
  350. package/lib/styles/common/mixins/colors.d.ts +25 -0
  351. package/lib/styles/common/mixins/colors.js +32 -0
  352. package/lib/styles/common/mixins/fonts.d.ts +16 -0
  353. package/lib/styles/common/mixins/fonts.js +30 -0
  354. package/lib/styles/common/mixins/shadows.d.ts +3 -0
  355. package/lib/styles/common/mixins/shadows.js +4 -0
  356. package/lib/styles/common/mui/palette.d.ts +47 -0
  357. package/lib/styles/common/mui/palette.js +47 -0
  358. package/lib/styles/common/mui/switch.d.ts +7 -0
  359. package/lib/styles/common/mui/switch.js +13 -0
  360. package/lib/theme/common/entities.d.ts +6 -0
  361. package/lib/theme/common/entities.js +1 -0
  362. package/lib/theme/components/muiSwitch.d.ts +2 -0
  363. package/lib/theme/components/muiSwitch.js +52 -0
  364. package/lib/utils/form.d.ts +8 -0
  365. package/lib/utils/form.js +17 -0
  366. package/lib/views/ExploreView/components/filters/Search/search.d.ts +12 -0
  367. package/lib/views/ExploreView/components/filters/Search/search.js +19 -0
  368. package/package.json +1 -1
package/README.md CHANGED
@@ -8,22 +8,35 @@
8
8
  in the form `@databiosphere/findable-ui/lib/<path>`, where `<path>` is the path of the file within the `lib`
9
9
  folder.
10
10
 
11
- ## Developing Findable UI alongside Data Biosphere Data Browser
12
-
13
- 1. Clone this repository into the same parent folder as
14
- the [Data Biosphere Data Browser](https://github.com/DataBiosphere/data-browser).
15
- 2. Set `node` version to `22.12.0` (this is also the version used by the Data Browser).
16
- 3. In the `findable-ui` repository directory:
17
- - Run `npm update`.
18
- - Run `npx tsc` (this should be run when this repository is first downloaded and when any changes are made to the
19
- source files; one way this can be done more efficiently is
20
- by [setting the default build task](https://code.visualstudio.com/docs/typescript/typescript-compiling#_step-3-make-the-typescript-build-the-default)
21
- in VS Code so that it can be done with a keyboard shortcut).
22
- 4. In the Data Browser `explorer` directory (e.g. `data-browser/explorer`):
23
- - Run `npm update`.
24
- - Run `npm link ../findable-ui`, which will create a symlink in node_modules pointing
25
- to findable-ui.
26
- - If any packages are later installed or uninstalled, the symlink will need to be created again, which can be done
27
- with the same command or by running `npm link @databiosphere/findable-ui`.
28
- - To successfully link to findable-ui, you may need to comment out the following packages from the `next.config.mjs` webpack configuration:
29
- - `@tanstack/react-table`
11
+ ## Developing findable-ui alongside a consuming app
12
+
13
+ Use `scripts/link.sh` to build and install a local copy of findable-ui
14
+ into a consuming project (e.g. ncpi-dataset-catalog, data-browser):
15
+
16
+ 1. Clone this repository into the same parent folder as the consuming app.
17
+ 2. Set `node` version to `22.12.0`.
18
+ 3. Run `npm install` in both repositories.
19
+ 4. From the consuming project directory:
20
+ ```bash
21
+ ../findable-ui/scripts/link.sh
22
+ ```
23
+ This compiles TypeScript, packs the output, installs it into
24
+ `node_modules`, clears the Next.js cache, and starts the dev server.
25
+
26
+ 5. To iterate: Ctrl+C the dev server, make changes in findable-ui, and
27
+ hit up-arrow to re-run the script.
28
+
29
+ 6. To restore the published version:
30
+ ```bash
31
+ ../findable-ui/scripts/unlink.sh
32
+ ```
33
+
34
+ Consuming projects can optionally add thin wrappers in their `package.json` scripts:
35
+ ```json
36
+ {
37
+ "scripts": {
38
+ "link-findable": "../findable-ui/scripts/link.sh",
39
+ "unlink-findable": "../findable-ui/scripts/unlink.sh"
40
+ }
41
+ }
42
+ ```
@@ -0,0 +1,6 @@
1
+ import { ColumnDef } from "@tanstack/react-table";
2
+ import { Attribute } from "../../../../../common/entities";
3
+ import { COLUMN_IDENTIFIER } from "./columnIdentifier";
4
+ import { AttributeValue } from "./types";
5
+ export declare const COLUMN_DEF: Record<keyof typeof COLUMN_IDENTIFIER, ColumnDef<Attribute, AttributeValue>>;
6
+ export declare const COLUMN_DEFS: ColumnDef<Attribute, AttributeValue>[];
@@ -0,0 +1,33 @@
1
+ import { BasicCell } from "../components/BasicCell/basicCell";
2
+ import { COLUMN_IDENTIFIER } from "./columnIdentifier";
3
+ const COLUMN_DEF_DESCRIPTION = {
4
+ accessorFn: (row) => row.description,
5
+ cell: (props) => BasicCell({ ...props }),
6
+ header: "Description",
7
+ id: COLUMN_IDENTIFIER.DESCRIPTION,
8
+ meta: { width: { max: "2fr", min: "480px" } },
9
+ };
10
+ const COLUMN_DEF_KEY = {
11
+ accessorFn: (row) => row.key,
12
+ cell: (props) => BasicCell({ ...props }),
13
+ header: "Key",
14
+ id: COLUMN_IDENTIFIER.KEY,
15
+ meta: { width: { max: "1fr", min: "180px" } },
16
+ };
17
+ const COLUMN_DEF_LABEL = {
18
+ accessorFn: (row) => row.label,
19
+ cell: (props) => BasicCell({ ...props }),
20
+ header: "Label",
21
+ id: COLUMN_IDENTIFIER.LABEL,
22
+ meta: { width: { max: "1fr", min: "200px" } },
23
+ };
24
+ export const COLUMN_DEF = {
25
+ DESCRIPTION: COLUMN_DEF_DESCRIPTION,
26
+ KEY: COLUMN_DEF_KEY,
27
+ LABEL: COLUMN_DEF_LABEL,
28
+ };
29
+ export const COLUMN_DEFS = [
30
+ COLUMN_DEF.LABEL,
31
+ COLUMN_DEF.KEY,
32
+ COLUMN_DEF.DESCRIPTION,
33
+ ];
@@ -0,0 +1,5 @@
1
+ export declare const COLUMN_IDENTIFIER: {
2
+ readonly DESCRIPTION: "description";
3
+ readonly KEY: "key";
4
+ readonly LABEL: "label";
5
+ };
@@ -0,0 +1,5 @@
1
+ export const COLUMN_IDENTIFIER = {
2
+ DESCRIPTION: "description",
3
+ KEY: "key",
4
+ LABEL: "label",
5
+ };
@@ -0,0 +1,2 @@
1
+ import { Attribute } from "../../../../../common/entities";
2
+ export type AttributeValue = Attribute[keyof Attribute];
@@ -0,0 +1,4 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ import { Attribute } from "../../../../../../common/entities";
3
+ import { AttributeValue } from "../../columns/types";
4
+ export type BasicCellProps = CellContext<Attribute, AttributeValue>;
@@ -0,0 +1,4 @@
1
+ import { RowData } from "@tanstack/react-table";
2
+ import { Attribute } from "../../../../common/entities";
3
+ import { UseDataDictionary } from "./types";
4
+ export declare const useDataDictionary: <T extends RowData = Attribute>() => UseDataDictionary<T>;
@@ -0,0 +1,23 @@
1
+ import { useMemo } from "react";
2
+ import { useConfig } from "../../../../hooks/useConfig";
3
+ import { buildClassesOutline } from "../../components/Outline/utils";
4
+ import { useTable } from "../../components/Table/hook";
5
+ export const useDataDictionary = () => {
6
+ const { config: { dataDictionaries: dataDictionaryConfigs }, } = useConfig();
7
+ // Get dictionary config.
8
+ const dataDictionaryConfig = dataDictionaryConfigs?.[0]; // TODO: Handle multiple data dictionaries
9
+ // Get configured dictionary classes, column definitions and table options.
10
+ const { classes, columnDefs, tableOptions, title } = useMemo(() => {
11
+ return {
12
+ classes: dataDictionaryConfig?.dataDictionary?.classes || [],
13
+ columnDefs: dataDictionaryConfig?.columnDefs || [],
14
+ tableOptions: dataDictionaryConfig?.tableOptions || {},
15
+ title: dataDictionaryConfig?.dataDictionary?.title || "",
16
+ };
17
+ }, [dataDictionaryConfig]);
18
+ // Build table instance.
19
+ const table = useTable(classes, columnDefs, tableOptions);
20
+ // Build outline.
21
+ const outline = buildClassesOutline(table);
22
+ return { outline, table, title };
23
+ };
@@ -0,0 +1,8 @@
1
+ import { RowData, Table } from "@tanstack/react-table";
2
+ import { Attribute } from "../../../../common/entities";
3
+ import { OutlineItem } from "../../../Layout/components/Outline/types";
4
+ export interface UseDataDictionary<T extends RowData = Attribute> {
5
+ outline: OutlineItem[];
6
+ table: Table<T>;
7
+ title: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { UseLayoutSpacing } from "./types";
2
+ export declare const useLayoutSpacing: () => UseLayoutSpacing;
@@ -0,0 +1,10 @@
1
+ import { useLayoutDimensions } from "../../../../providers/layoutDimensions/hook";
2
+ export const useLayoutSpacing = () => {
3
+ const { dimensions } = useLayoutDimensions();
4
+ return {
5
+ spacing: {
6
+ bottom: dimensions.footer.height,
7
+ top: dimensions.header.height,
8
+ },
9
+ };
10
+ };
@@ -0,0 +1,7 @@
1
+ export interface LayoutSpacing {
2
+ bottom: number;
3
+ top: number;
4
+ }
5
+ export interface UseLayoutSpacing {
6
+ spacing: LayoutSpacing;
7
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Table } from "@tanstack/react-table";
3
+ import { ROW_DIRECTION } from "../../../../../Table/common/entities";
4
+ export interface TableBodyProps<T> {
5
+ rowDirection: ROW_DIRECTION;
6
+ tableInstance: Table<T>;
7
+ }
8
+ export declare const TableHead: <T extends object>({ rowDirection, tableInstance, }: TableBodyProps<T>) => JSX.Element;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TableHead = void 0;
27
+ const material_1 = require("@mui/material");
28
+ const react_table_1 = require("@tanstack/react-table");
29
+ const react_1 = __importStar(require("react"));
30
+ const entities_1 = require("../../../../../Table/common/entities");
31
+ const TableHead = ({ rowDirection, tableInstance, }) => {
32
+ return (react_1.default.createElement(react_1.Fragment, null, rowDirection === entities_1.ROW_DIRECTION.DEFAULT &&
33
+ tableInstance.getHeaderGroups().map((headerGroup) => (react_1.default.createElement(material_1.TableHead, { key: headerGroup.id },
34
+ react_1.default.createElement(material_1.TableRow, null, headerGroup.headers.map((header) => (react_1.default.createElement(material_1.TableCell, { key: header.id }, (0, react_table_1.flexRender)(header.column.columnDef.header, header.getContext()))))))))));
35
+ };
36
+ exports.TableHead = TableHead;
@@ -0,0 +1,22 @@
1
+ import type { StoryObj } from "@storybook/nextjs-vite";
2
+ declare const meta: {
3
+ argTypes: {
4
+ buttonLabel: {
5
+ control: "text";
6
+ };
7
+ description: {
8
+ control: "text";
9
+ };
10
+ route: {
11
+ control: "text";
12
+ };
13
+ title: {
14
+ control: "text";
15
+ };
16
+ };
17
+ component: ({ buttonLabel, description, footnote, isAccessible, route, title, trackingId, }: import("./exportMethod").ExportMethodProps) => import("react").JSX.Element;
18
+ title: string;
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ export declare const ExportMethodStory: Story;
@@ -0,0 +1,20 @@
1
+ import { ExportMethod } from "./exportMethod";
2
+ const meta = {
3
+ argTypes: {
4
+ buttonLabel: { control: "text" },
5
+ description: { control: "text" },
6
+ route: { control: "text" },
7
+ title: { control: "text" },
8
+ },
9
+ component: ExportMethod,
10
+ title: "Components/Section/Export/ExportMethod",
11
+ };
12
+ export default meta;
13
+ export const ExportMethodStory = {
14
+ args: {
15
+ buttonLabel: "Request curl Command",
16
+ description: "Obtain a curl command for downloading the selected data.",
17
+ route: "/request-curl-command",
18
+ title: "Download Study Data and Metadata (Curl Command)",
19
+ },
20
+ };
@@ -0,0 +1,25 @@
1
+ import { StoryObj } from "@storybook/react";
2
+ import React from "react";
3
+ declare const meta: {
4
+ argTypes: {
5
+ tags: {
6
+ control: {
7
+ disable: true;
8
+ };
9
+ };
10
+ };
11
+ component: ({ categorySection, categoryView, closeAncestor, isFilterDrawer, onFilter, tags, trackFilterOpened, }: import("./filter").FilterProps) => JSX.Element;
12
+ decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
13
+ categorySection?: string | undefined;
14
+ categoryView: import("../../../../common/entities").SelectCategoryView;
15
+ closeAncestor?: (() => void) | undefined;
16
+ isFilterDrawer: boolean;
17
+ onFilter: import("../../../../hooks/useCategoryFilter").OnFilterFn;
18
+ tags?: React.ReactNode;
19
+ trackFilterOpened?: import("../../../../config/entities").TrackFilterOpenedFunction | undefined;
20
+ }>) => JSX.Element)[];
21
+ title: string;
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const FilterStory: Story;
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { Filter } from "./filter";
3
+ const meta = {
4
+ argTypes: {
5
+ tags: { control: { disable: true } },
6
+ },
7
+ component: Filter,
8
+ decorators: [
9
+ (Story) => (React.createElement("div", { style: { padding: "8px 12px 8px 16px", width: 264 } },
10
+ React.createElement(Story, null))),
11
+ ],
12
+ title: "Components/Filter/Filter",
13
+ };
14
+ export default meta;
15
+ const onFilter = () => {
16
+ // onFilter function
17
+ };
18
+ export const FilterStory = {
19
+ args: {
20
+ categoryView: {
21
+ isDisabled: false,
22
+ key: "genusSpecies",
23
+ label: "Genus Species",
24
+ values: [
25
+ {
26
+ count: 12,
27
+ key: "homoSapiens",
28
+ label: "Homo sapiens",
29
+ selected: false,
30
+ },
31
+ {
32
+ count: 6,
33
+ key: "musMusculus",
34
+ label: "Mus musculus",
35
+ selected: false,
36
+ },
37
+ ],
38
+ },
39
+ isFilterDrawer: false,
40
+ onFilter,
41
+ },
42
+ };
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ argTypes: {
4
+ label: {
5
+ control: "text";
6
+ };
7
+ superseded: {
8
+ control: "boolean";
9
+ };
10
+ };
11
+ component: ({ label, onRemove, superseded, }: import("./filterTag").FilterTagProps) => JSX.Element;
12
+ title: string;
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const FilterTagStory: Story;
@@ -0,0 +1,17 @@
1
+ import { FilterTag } from "./filterTag";
2
+ const meta = {
3
+ argTypes: {
4
+ label: { control: "text" },
5
+ superseded: { control: "boolean" },
6
+ },
7
+ component: FilterTag,
8
+ title: "Components/Filter/FilterTag",
9
+ };
10
+ export default meta;
11
+ export const FilterTagStory = {
12
+ args: {
13
+ label: "Male",
14
+ onRemove: () => { },
15
+ superseded: false,
16
+ },
17
+ };
@@ -0,0 +1,9 @@
1
+ import { TypographyProps } from "@mui/material";
2
+ /**
3
+ * CategoryLabel component.
4
+ * Renders a category label for a list of category views.
5
+ * @param props - Component props.
6
+ * @param props.children - Child elements to render.
7
+ * @returns CategoryLabel component.
8
+ */
9
+ export declare const CategoryLabel: ({ children, }: TypographyProps) => JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ import { Typography } from "@mui/material";
2
+ import React from "react";
3
+ import { TYPOGRAPHY_PROPS } from "../../../../../../styles/common/mui/typography";
4
+ /**
5
+ * CategoryLabel component.
6
+ * Renders a category label for a list of category views.
7
+ * @param props - Component props.
8
+ * @param props.children - Child elements to render.
9
+ * @returns CategoryLabel component.
10
+ */
11
+ export const CategoryLabel = ({ children, }) => {
12
+ if (!children)
13
+ return null;
14
+ return (React.createElement(Typography, { color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, component: "div", variant: TYPOGRAPHY_PROPS.VARIANT.UPPERCASE_500 }, children));
15
+ };
@@ -0,0 +1,12 @@
1
+ import type { ControlsProps } from "./types";
2
+ /**
3
+ * Renders filter controls with optional sort functionality.
4
+ * Displays category label alongside a sort button when sorting is enabled.
5
+ * @param props - Component props.
6
+ * @param props.children - Child elements to render within the controls.
7
+ * @param props.filterSort - Filter sort configuration.
8
+ * @param props.filterSortEnabled - Whether filter sorting is enabled.
9
+ * @param props.onFilterSortChange - Callback when filter sort changes.
10
+ * @returns Filter controls with category label and optional sort button.
11
+ */
12
+ export declare const Controls: ({ children, filterSort, filterSortEnabled, onFilterSortChange, }: ControlsProps) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { STACK_PROPS } from "../../../../../../styles/common/mui/stack";
3
+ import { Button } from "../../../controls/Controls/components/FilterSort/components/Button/button";
4
+ import { FilterSort } from "../../../controls/Controls/components/FilterSort/filterSort";
5
+ import { StyledStack } from "./controls.styles";
6
+ /**
7
+ * Renders filter controls with optional sort functionality.
8
+ * Displays category label alongside a sort button when sorting is enabled.
9
+ * @param props - Component props.
10
+ * @param props.children - Child elements to render within the controls.
11
+ * @param props.filterSort - Filter sort configuration.
12
+ * @param props.filterSortEnabled - Whether filter sorting is enabled.
13
+ * @param props.onFilterSortChange - Callback when filter sort changes.
14
+ * @returns Filter controls with category label and optional sort button.
15
+ */
16
+ export const Controls = ({ children, filterSort, filterSortEnabled, onFilterSortChange, }) => {
17
+ return (React.createElement(StyledStack, { direction: STACK_PROPS.DIRECTION.ROW, useFlexGap: true },
18
+ children,
19
+ React.createElement(FilterSort, { Button: Button, enabled: filterSortEnabled, filterSort: filterSort, onFilterSortChange: onFilterSortChange })));
20
+ };
@@ -0,0 +1,5 @@
1
+ export declare const StyledStack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
4
+ theme?: import("@emotion/react").Theme;
5
+ }, {}, {}>;
@@ -0,0 +1,7 @@
1
+ import styled from "@emotion/styled";
2
+ import { Stack } from "@mui/material";
3
+ export const StyledStack = styled(Stack) `
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ padding: 8px;
7
+ `;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps } from "react";
2
+ import { BaseComponentProps, ChildrenProps } from "../../../../../types";
3
+ import { FilterSort } from "../../../controls/Controls/components/FilterSort/filterSort";
4
+ export interface ControlsProps extends BaseComponentProps, ChildrenProps, Omit<ComponentProps<typeof FilterSort>, "enabled"> {
5
+ filterSortEnabled?: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { Filters } from "./filters";
3
+ declare const _default: Meta<typeof Filters>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof Filters>;
6
+ export declare const FiltersStory: Story;
@@ -0,0 +1,91 @@
1
+ import React from "react";
2
+ import { FilterMenuStory } from "../FilterMenu/filterMenu.stories";
3
+ import { Filters } from "./filters";
4
+ export default {
5
+ argTypes: {
6
+ categories: { control: { disable: true } },
7
+ onFilter: { control: { disable: true } },
8
+ },
9
+ component: Filters,
10
+ decorators: [
11
+ (Story) => (React.createElement("div", { style: { width: 264 } },
12
+ React.createElement(Story, null))),
13
+ ],
14
+ title: "Components/Filter/Filters",
15
+ };
16
+ const onFilter = () => {
17
+ // onFilter function
18
+ };
19
+ const defaultValues = [
20
+ {
21
+ count: 1,
22
+ key: "item1",
23
+ label: "Item 1",
24
+ selected: false,
25
+ },
26
+ {
27
+ count: 10,
28
+ key: "item2",
29
+ label: "Item 2",
30
+ selected: false,
31
+ },
32
+ ];
33
+ export const FiltersStory = {
34
+ args: {
35
+ categoryFilters: [
36
+ {
37
+ categoryViews: [
38
+ {
39
+ isDisabled: false,
40
+ key: "genusSpecies",
41
+ label: "Genus Species",
42
+ values: [
43
+ {
44
+ count: 12,
45
+ key: "homoSapiens",
46
+ label: "Homo sapiens",
47
+ selected: false,
48
+ },
49
+ {
50
+ count: 6,
51
+ key: "musMusculus",
52
+ label: "Mus musculus",
53
+ selected: false,
54
+ },
55
+ ],
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ categoryViews: [
61
+ {
62
+ isDisabled: false,
63
+ key: "donorDisease",
64
+ label: "Donor Disease",
65
+ values: FilterMenuStory.args?.values || defaultValues,
66
+ },
67
+ {
68
+ isDisabled: true,
69
+ key: "anatomicalEntity",
70
+ label: "Anatomical Entity",
71
+ values: [
72
+ {
73
+ count: 12,
74
+ key: "oralCavity",
75
+ label: "oral cavity",
76
+ selected: true,
77
+ },
78
+ {
79
+ count: 6,
80
+ key: "pancreas",
81
+ label: "pancreas",
82
+ selected: false,
83
+ },
84
+ ],
85
+ },
86
+ ],
87
+ },
88
+ ],
89
+ onFilter: onFilter,
90
+ },
91
+ };
@@ -0,0 +1,3 @@
1
+ export declare const AutocompletePopper: import("@emotion/styled").StyledComponent<import("@mui/material").PopperProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -0,0 +1,15 @@
1
+ import styled from "@emotion/styled";
2
+ import { Popper as MPopper } from "@mui/material";
3
+ import { mediaDesktopSmallDown } from "../../../../../../styles/common/mixins/breakpoints";
4
+ import { smokeLight } from "../../../../../../styles/common/mixins/colors";
5
+ export const AutocompletePopper = styled(MPopper) `
6
+ ${mediaDesktopSmallDown} {
7
+ .MuiPaper-root {
8
+ background-color: ${smokeLight};
9
+
10
+ .MuiList-root {
11
+ margin: 0;
12
+ }
13
+ }
14
+ }
15
+ `;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { SearchAllFilters } from "./searchAllFilters";
3
+ declare const _default: Meta<typeof SearchAllFilters>;
4
+ export default _default;
5
+ type Story = StoryObj<typeof SearchAllFilters>;
6
+ export declare const SearchAllFiltersStory: Story;