@databiosphere/findable-ui 25.0.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +56 -0
- package/lib/common/entities.d.ts +25 -0
- package/lib/components/DataDictionary/common/utils.js +10 -8
- package/lib/components/DataDictionary/components/Entities/entities.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entities/entities.js +2 -2
- package/lib/components/DataDictionary/components/Entities/types.d.ts +3 -1
- package/lib/components/DataDictionary/components/Entity/entity.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entity/entity.js +2 -2
- package/lib/components/DataDictionary/components/Entity/types.d.ts +3 -1
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +1 -2
- package/lib/components/DataDictionary/components/Table/hook.d.ts +2 -2
- package/lib/components/DataDictionary/components/Table/hook.js +2 -3
- package/lib/components/DataDictionary/dataDictionary.js +2 -2
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +7 -2
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +3 -1
- package/lib/components/Detail/components/Table/stories/args.d.ts +27 -0
- package/lib/components/Detail/components/Table/stories/args.js +100 -0
- package/lib/components/Detail/components/Table/stories/constants.d.ts +4 -0
- package/lib/components/Detail/components/Table/stories/constants.js +11 -0
- package/lib/components/Detail/components/Table/stories/filter/args.d.ts +5 -0
- package/lib/components/Detail/components/Table/stories/filter/args.js +50 -0
- package/lib/components/Detail/components/Table/stories/filter/filter.stories.d.ts +11 -0
- package/lib/components/Detail/components/Table/stories/filter/filter.stories.js +78 -0
- package/lib/components/Detail/components/Table/stories/table.stories.d.ts +6 -0
- package/lib/components/Detail/components/Table/stories/table.stories.js +19 -0
- package/lib/components/Detail/components/Table/table.js +2 -0
- package/lib/components/Export/components/ExportMethod/exportMethod.d.ts +2 -2
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.js +1 -1
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +2 -1
- package/lib/components/Filter/components/Filter/filter.js +2 -1
- package/lib/components/Filter/components/FilterRange/constants.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/constants.js +27 -0
- package/lib/components/Filter/components/FilterRange/filterRange.d.ts +2 -0
- package/lib/components/Filter/components/FilterRange/filterRange.js +26 -0
- package/lib/components/Filter/components/FilterRange/filterRange.styles.d.ts +4 -0
- package/lib/components/Filter/components/FilterRange/filterRange.styles.js +66 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.d.ts +2 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.js +14 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/types.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.d.ts +6 -0
- package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.js +9 -0
- package/lib/components/Filter/components/FilterRange/types.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/types.js +6 -0
- package/lib/components/Filter/components/Filters/filters.js +2 -1
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +3 -2
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.js +2 -2
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +3 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +2 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +1 -2
- package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +3 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +1 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +5 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +2 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +2 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +10 -7
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +4 -4
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +1 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +0 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +1 -1
- package/lib/components/Index/components/EntitiesView/entitiesView.js +3 -2
- package/lib/components/Index/components/EntitiesView/types.d.ts +2 -2
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +2 -1
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/outline.styles.js +1 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +2 -1
- package/lib/components/Layout/components/Sidebar/sidebar.js +4 -1
- package/lib/components/Loading/loading.styles.js +2 -1
- package/lib/components/Login/components/Button/constants.js +2 -3
- package/lib/components/Login/components/Button/types.d.ts +1 -1
- package/lib/components/Login/components/Buttons/types.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +4 -4
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +2 -2
- package/lib/components/Table/columnDef/columnFilters/filterFn.d.ts +13 -0
- package/lib/components/Table/columnDef/columnFilters/filterFn.js +22 -0
- package/lib/components/Table/common/columnDef.js +2 -0
- package/lib/components/Table/common/utils.d.ts +1 -13
- package/lib/components/Table/common/utils.js +1 -23
- package/lib/components/Table/components/Pagination/pagination.js +3 -2
- package/lib/components/Table/components/PaginationSummary/paginationSummary.js +2 -1
- package/lib/components/Table/components/TableRows/tableRows.js +7 -3
- package/lib/components/Table/table.js +3 -1
- package/lib/components/TableCreator/tableCreator.js +12 -3
- package/lib/components/common/Button/components/ButtonOutline/buttonOutline.styles.js +7 -7
- package/lib/components/common/Button/constants.d.ts +2 -0
- package/lib/components/common/Button/constants.js +21 -0
- package/lib/components/common/LoginDialog/loginDialog.styles.js +2 -3
- package/lib/components/types.d.ts +3 -0
- package/lib/config/entities.d.ts +3 -3
- package/lib/config/utils.js +1 -1
- package/lib/hooks/useEntityList.js +2 -1
- package/lib/hooks/useEntityService.js +1 -1
- package/lib/hooks/useExploreMode/types.d.ts +6 -0
- package/lib/hooks/useExploreMode/types.js +6 -0
- package/lib/hooks/{useExploreMode.d.ts → useExploreMode/useExploreMode.d.ts} +1 -6
- package/lib/hooks/{useExploreMode.js → useExploreMode/useExploreMode.js} +1 -7
- package/lib/hooks/useFetchEntity.js +2 -1
- package/lib/styles/common/constants/colorMixes.d.ts +18 -0
- package/lib/styles/common/constants/colorMixes.js +19 -0
- package/lib/styles/common/constants/shadows.d.ts +5 -0
- package/lib/styles/common/constants/shadows.js +5 -0
- package/lib/styles/common/mui/button.d.ts +10 -2
- package/lib/styles/common/mui/button.js +12 -2
- package/lib/tests/mui/constants.d.ts +1 -0
- package/lib/tests/mui/constants.js +1 -0
- package/lib/tests/testIds.d.ts +19 -0
- package/lib/tests/testIds.js +19 -0
- package/lib/theme/common/components.d.ts +2 -3
- package/lib/theme/common/components.js +47 -51
- package/lib/theme/common/palette.d.ts +0 -44
- package/lib/theme/common/palette.js +27 -82
- package/lib/theme/common/shadows.d.ts +2 -28
- package/lib/theme/common/shadows.js +27 -32
- package/lib/theme/components/muiAlert.js +5 -5
- package/lib/theme/theme.js +7 -7
- package/lib/views/ExploreView/exploreView.js +4 -3
- package/package.json +4 -4
- package/src/common/entities.ts +30 -0
- package/src/components/DataDictionary/common/utils.ts +12 -8
- package/src/components/DataDictionary/components/Entities/entities.tsx +11 -2
- package/src/components/DataDictionary/components/Entities/types.ts +3 -1
- package/src/components/DataDictionary/components/Entity/entity.tsx +2 -1
- package/src/components/DataDictionary/components/Entity/types.ts +3 -1
- package/src/components/DataDictionary/components/Table/components/BasicCell/types.ts +1 -2
- package/src/components/DataDictionary/components/Table/hook.ts +6 -4
- package/src/components/DataDictionary/dataDictionary.tsx +2 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/hook.ts +8 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/types.ts +3 -1
- package/src/components/Detail/components/Table/stories/args.ts +104 -0
- package/src/components/Detail/components/Table/stories/constants.ts +15 -0
- package/src/components/Detail/components/Table/stories/filter/args.ts +54 -0
- package/src/components/Detail/components/Table/stories/filter/filter.stories.tsx +90 -0
- package/src/components/Detail/components/Table/stories/table.stories.tsx +32 -0
- package/src/components/Detail/components/Table/table.tsx +2 -0
- package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +1 -1
- package/src/components/Export/components/ExportMethod/exportMethod.tsx +3 -2
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +7 -1
- package/src/components/Filter/components/Filter/filter.tsx +2 -0
- package/src/components/Filter/components/FilterRange/constants.ts +41 -0
- package/src/components/Filter/components/FilterRange/filterRange.styles.ts +71 -0
- package/src/components/Filter/components/FilterRange/filterRange.tsx +71 -0
- package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.ts +20 -0
- package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/types.ts +9 -0
- package/src/components/Filter/components/FilterRange/stories/filterRange.stories.tsx +15 -0
- package/src/components/Filter/components/FilterRange/types.ts +9 -0
- package/src/components/Filter/components/Filters/filters.tsx +7 -1
- package/src/components/Filter/components/HighlightedLabel/highlightedLabel.tsx +4 -2
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +2 -0
- package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +1 -2
- package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
- package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +2 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +3 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +10 -7
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +10 -4
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +1 -2
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +1 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +0 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +2 -0
- package/src/components/Index/components/EntitiesView/entitiesView.tsx +2 -2
- package/src/components/Index/components/EntitiesView/types.ts +2 -2
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +2 -0
- package/src/components/Layout/components/Outline/outline.styles.ts +1 -2
- package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +2 -0
- package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -1
- package/src/components/Loading/loading.styles.ts +2 -1
- package/src/components/Login/components/Button/constants.ts +2 -3
- package/src/components/Login/components/Button/types.ts +1 -1
- package/src/components/Login/components/Buttons/types.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +4 -4
- package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +2 -2
- package/src/components/Table/columnDef/columnFilters/filterFn.ts +27 -0
- package/src/components/Table/common/columnDef.ts +2 -0
- package/src/components/Table/common/utils.ts +1 -27
- package/src/components/Table/components/Pagination/pagination.tsx +3 -2
- package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +2 -1
- package/src/components/Table/components/TableRows/tableRows.tsx +10 -3
- package/src/components/Table/table.tsx +3 -1
- package/src/components/TableCreator/tableCreator.tsx +17 -3
- package/src/components/common/Button/components/ButtonOutline/buttonOutline.styles.ts +7 -7
- package/src/components/common/Button/constants.ts +23 -0
- package/src/components/common/LoginDialog/loginDialog.styles.ts +2 -3
- package/src/components/types.ts +4 -0
- package/src/config/entities.ts +3 -3
- package/src/config/utils.ts +1 -1
- package/src/hooks/useEntityList.ts +2 -1
- package/src/hooks/useEntityService.ts +1 -1
- package/src/hooks/useExploreMode/types.ts +7 -0
- package/src/hooks/{useExploreMode.ts → useExploreMode/useExploreMode.ts} +2 -9
- package/src/hooks/useFetchEntity.tsx +2 -1
- package/src/styles/common/constants/colorMixes.ts +20 -0
- package/src/styles/common/constants/shadows.ts +5 -0
- package/src/styles/common/mui/button.ts +20 -2
- package/src/tests/mui/constants.ts +1 -0
- package/src/tests/testIds.ts +19 -0
- package/src/theme/common/components.ts +47 -59
- package/src/theme/common/palette.ts +27 -86
- package/src/theme/common/shadows.ts +28 -33
- package/src/theme/components/muiAlert.ts +5 -5
- package/src/theme/theme.ts +50 -51
- package/src/views/ExploreView/exploreView.tsx +8 -3
- package/tests/chart.test.tsx +113 -22
- package/tests/chartView.test.tsx +12 -0
- package/tests/entitiesView.test.tsx +7 -11
- package/tests/filterRange.test.tsx +87 -0
- package/tests/filterRangeMock.test.tsx +38 -0
- package/tests/tableFilter.test.tsx +90 -0
- package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +0 -6
- package/lib/components/DataDictionary/components/Table/columns/columnDef.js +0 -33
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +0 -5
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +0 -5
- package/lib/components/DataDictionary/components/Table/columns/types.d.ts +0 -2
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +0 -8
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +0 -36
- package/lib/components/Index/components/Cell/cell.d.ts +0 -7
- package/lib/components/Index/components/Cell/cell.js +0 -10
- package/lib/components/Index/components/EntitiesView/constants.d.ts +0 -1
- package/lib/components/Index/components/EntitiesView/constants.js +0 -1
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -8
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +0 -57
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +0 -4
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +0 -10
- package/lib/components/Index/components/NTag/nTag.d.ts +0 -10
- package/lib/components/Index/components/NTag/nTag.js +0 -8
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +0 -11
- package/lib/components/Index/components/NTagCell/nTagCell.js +0 -29
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +0 -5
- package/lib/components/Index/components/NTagCell/nTagCell.stories.js +0 -16
- package/lib/components/Index/components/TitleCell/titleCell.d.ts +0 -6
- package/lib/components/Index/components/TitleCell/titleCell.js +0 -10
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +0 -3
- package/lib/components/Index/components/TitleCell/titleCell.styles.js +0 -6
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +0 -6
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +0 -10
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +0 -5
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +0 -29
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +0 -6
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +0 -13
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +0 -36
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +0 -9
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +0 -5
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +0 -10
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +0 -36
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +0 -9
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +0 -5
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +0 -19
- package/lib/components/Layout/components/Outline/common/constants.d.ts +0 -2
- package/lib/components/Layout/components/Outline/common/constants.js +0 -1
- package/lib/components/Login/login.stories.d.ts +0 -6
- package/lib/components/Login/login.stories.js +0 -31
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +0 -16
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +0 -28
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +0 -5
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +0 -46
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +0 -3
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +0 -21
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +0 -2
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +0 -37
- package/lib/components/TableCreator/common/constants.d.ts +0 -6
- package/lib/components/TableCreator/common/constants.js +0 -19
- package/lib/components/TableCreator/common/entities.d.ts +0 -5
- package/lib/components/TableCreator/common/entities.js +0 -1
- package/lib/components/TableCreator/tableCreator.styles.d.ts +0 -4
- package/lib/components/TableCreator/tableCreator.styles.js +0 -4
- package/lib/components/common/Alert/alert.stories.d.ts +0 -6
- package/lib/components/common/Alert/alert.stories.js +0 -36
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +0 -4
- package/lib/components/common/Alert/components/AlertText/alertText.styles.js +0 -19
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +0 -7
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +0 -5
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +0 -3
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +0 -19
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +0 -10
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +0 -16
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +0 -3
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +0 -21
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +0 -3
- package/lib/components/common/Button/components/LoginButton/loginButton.js +0 -6
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +0 -7
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +0 -11
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +0 -5
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +0 -10
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +0 -3
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +0 -9
- package/lib/hooks/useAuthentication/common/constants.d.ts +0 -4
- package/lib/hooks/useAuthentication/common/constants.js +0 -19
- package/lib/hooks/useAuthentication/common/entities.d.ts +0 -25
- package/lib/hooks/useAuthentication/common/entities.js +0 -11
- package/lib/hooks/useAuthentication/common/utils.d.ts +0 -15
- package/lib/hooks/useAuthentication/common/utils.js +0 -25
- package/lib/hooks/useAuthentication/useAuthentication.d.ts +0 -6
- package/lib/hooks/useAuthentication/useAuthentication.js +0 -9
- package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +0 -6
- package/lib/hooks/useAuthentication/useAuthenticationComplete.js +0 -55
- package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +0 -20
- package/lib/hooks/useAuthentication/useAuthenticationForm.js +0 -88
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +0 -18
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +0 -50
- package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +0 -20
- package/lib/hooks/useAuthentication/useAuthenticationStatus.js +0 -32
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +0 -21
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +0 -41
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +0 -18
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +0 -62
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +0 -24
- package/lib/hooks/useAuthentication/useFetchTerraProfile.js +0 -62
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +0 -15
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +0 -62
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +0 -11
- package/lib/hooks/useAuthentication/useTokenClient.js +0 -29
- package/lib/hooks/useAuthenticationConfig.d.ts +0 -6
- package/lib/hooks/useAuthenticationConfig.js +0 -14
- package/lib/hooks/useCategoryConfigs.d.ts +0 -6
- package/lib/hooks/useCategoryConfigs.js +0 -17
- package/lib/hooks/useEntityListRelatedView.d.ts +0 -15
- package/lib/hooks/useEntityListRelatedView.js +0 -62
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +0 -15
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +0 -27
- package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +0 -5
- package/lib/hooks/useFileManifest/useFileManifestURL.js +0 -11
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +0 -9
- package/lib/hooks/useFileManifest/useRequestFileManifest.js +0 -37
- package/lib/hooks/useLayoutState.d.ts +0 -6
- package/lib/hooks/useLayoutState.js +0 -9
- package/lib/hooks/useMenu.d.ts +0 -10
- package/lib/hooks/useMenu.js +0 -17
- package/lib/hooks/useMenuWithPosition.d.ts +0 -14
- package/lib/hooks/useMenuWithPosition.js +0 -33
- package/lib/hooks/useSessionTimeout.d.ts +0 -11
- package/lib/hooks/useSessionTimeout.js +0 -28
- package/lib/providers/authentication.d.ts +0 -51
- package/lib/providers/authentication.js +0 -110
- package/lib/providers/layoutState.d.ts +0 -40
- package/lib/providers/layoutState.js +0 -47
- package/lib/styles/common/mixins/shadows.d.ts +0 -3
- package/lib/styles/common/mixins/shadows.js +0 -4
- package/lib/theme/common/entities.d.ts +0 -6
- package/lib/theme/common/entities.js +0 -1
- package/src/components/DataDictionary/components/Table/columns/columnDef.ts +0 -47
- package/src/components/DataDictionary/components/Table/columns/columnIdentifier.ts +0 -5
- package/src/components/DataDictionary/components/Table/columns/types.ts +0 -3
- package/src/components/Index/components/EntitiesView/constants.ts +0 -1
- package/src/styles/common/mixins/shadows.ts +0 -7
- package/src/theme/common/entities.ts +0 -7
- /package/lib/components/{DataDictionary/components/Table/columns → Filter/components/FilterRange/hooks/UseFilterRange}/types.js +0 -0
- /package/lib/styles/common/{mui → constants}/palette.d.ts +0 -0
- /package/lib/styles/common/{mui → constants}/palette.js +0 -0
- /package/src/styles/common/{mui → constants}/palette.ts +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { composeStories } from "@storybook/react";
|
|
2
|
+
import { render } from "@testing-library/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import * as filterStories from "../src/components/Detail/components/Table/stories/filter/filter.stories";
|
|
5
|
+
|
|
6
|
+
const COLUMN_INDEX = {
|
|
7
|
+
ARRAY: 1,
|
|
8
|
+
NUMBER: 3,
|
|
9
|
+
STRING: 0,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
FilterByArrayValue,
|
|
14
|
+
FilterByRangeBetweenValue,
|
|
15
|
+
FilterByRangeGreaterThanValue,
|
|
16
|
+
FilterByRangeLessThanValue,
|
|
17
|
+
FilterByStringValue,
|
|
18
|
+
FilterByStringValueWithNoMatch,
|
|
19
|
+
} = composeStories(filterStories);
|
|
20
|
+
|
|
21
|
+
describe("Table - Filtering", () => {
|
|
22
|
+
describe("Table filter stories", () => {
|
|
23
|
+
test("FilterByStringValueWithNoMatch shows no rows", () => {
|
|
24
|
+
const { container } = render(<FilterByStringValueWithNoMatch />);
|
|
25
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
26
|
+
expect(rows).toHaveLength(0);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test("FilterByStringValue shows rows matching the filters of string values", () => {
|
|
30
|
+
const { container } = render(<FilterByStringValue />);
|
|
31
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
32
|
+
expect(rows).toHaveLength(2);
|
|
33
|
+
rows.forEach((row) => {
|
|
34
|
+
const cell = row.querySelectorAll("td")[COLUMN_INDEX.STRING];
|
|
35
|
+
const text = cell.textContent;
|
|
36
|
+
expect(text).toMatch(
|
|
37
|
+
/Coronary Artery Disease Study|Myocardial Infarction Study/
|
|
38
|
+
);
|
|
39
|
+
expect(text).not.toMatch(/Myocardial Infarction Study X/);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test("FilterByArrayValue shows rows matching the filters of array values", () => {
|
|
44
|
+
const { container } = render(<FilterByArrayValue />);
|
|
45
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
46
|
+
expect(rows).toHaveLength(4);
|
|
47
|
+
rows.forEach((row) => {
|
|
48
|
+
const cell = row.querySelectorAll("td")[COLUMN_INDEX.ARRAY];
|
|
49
|
+
const text = cell.textContent;
|
|
50
|
+
expect(text).toMatch(/Exome|RNAseq/);
|
|
51
|
+
// Confirm that the text "Whole Genome" is not present in any row cell as a single value.
|
|
52
|
+
expect(text).not.toMatch(/^Whole Genome$/);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test("FilterByRangeBetweenValue shows rows matching filters between two number values", () => {
|
|
57
|
+
const { container } = render(<FilterByRangeBetweenValue />);
|
|
58
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
59
|
+
expect(rows).toHaveLength(2);
|
|
60
|
+
rows.forEach((row) => {
|
|
61
|
+
const cell = row.querySelectorAll("td")[COLUMN_INDEX.NUMBER];
|
|
62
|
+
const value = Number(cell.textContent);
|
|
63
|
+
expect(value).toBeGreaterThanOrEqual(10);
|
|
64
|
+
expect(value).toBeLessThanOrEqual(100);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test("FilterByRangeGreaterThanValue shows rows matching filters greater than a number value", () => {
|
|
69
|
+
const { container } = render(<FilterByRangeGreaterThanValue />);
|
|
70
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
71
|
+
expect(rows).toHaveLength(4);
|
|
72
|
+
rows.forEach((row) => {
|
|
73
|
+
const cell = row.querySelectorAll("td")[COLUMN_INDEX.NUMBER];
|
|
74
|
+
const value = Number(cell.textContent);
|
|
75
|
+
expect(value).toBeGreaterThanOrEqual(100);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
test("FilterByRangeLessThanValue shows rows matching filters less than a number value", () => {
|
|
80
|
+
const { container } = render(<FilterByRangeLessThanValue />);
|
|
81
|
+
const rows = container.querySelectorAll("tbody tr");
|
|
82
|
+
expect(rows).toHaveLength(3);
|
|
83
|
+
rows.forEach((row) => {
|
|
84
|
+
const cell = row.querySelectorAll("td")[COLUMN_INDEX.NUMBER];
|
|
85
|
+
const value = Number(cell.textContent);
|
|
86
|
+
expect(value).toBeLessThanOrEqual(100);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
@@ -1,6 +0,0 @@
|
|
|
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>[];
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface CellProps {
|
|
2
|
-
value?: number | string | string[];
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated - use BasicCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell"
|
|
6
|
-
*/
|
|
7
|
-
export declare const Cell: ({ value }: CellProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated - use BasicCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell"
|
|
4
|
-
*/
|
|
5
|
-
export const Cell = ({ value = "Unspecified" }) => {
|
|
6
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
7
|
-
return React.createElement("div", null, value);
|
|
8
|
-
}
|
|
9
|
-
return (React.createElement(React.Fragment, null, value.map((v) => (React.createElement("div", { key: v }, v)))));
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ENTITIES_VIEW_TEST_ID = "entities-view";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const ENTITIES_VIEW_TEST_ID = "entities-view";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TooltipProps as MTooltipProps } from "@mui/material";
|
|
2
|
-
export interface TooltipProps extends MTooltipProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated - use Tooltip from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip"
|
|
7
|
-
*/
|
|
8
|
-
export declare const Tooltip: ({ children, className, title, ...props }: TooltipProps) => JSX.Element;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Tooltip as MTooltip, } from "@mui/material";
|
|
2
|
-
import { detectOverflow } from "@popperjs/core";
|
|
3
|
-
import React, { useMemo, useState } from "react";
|
|
4
|
-
import { TooltipContent } from "./tooltip.styles";
|
|
5
|
-
const DEFAULT_FLIP_MODIFIER = {
|
|
6
|
-
enabled: true,
|
|
7
|
-
name: "flip",
|
|
8
|
-
options: {
|
|
9
|
-
fallbackPlacements: ["bottom", "right", "left"],
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
const DEFAULT_PREVENT_OVERFLOW_MODIFIER = {
|
|
13
|
-
enabled: true,
|
|
14
|
-
name: "preventOverflow",
|
|
15
|
-
options: {
|
|
16
|
-
padding: 16,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated - use Tooltip from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip"
|
|
21
|
-
*/
|
|
22
|
-
export const Tooltip = ({ children, className, title, ...props /* Spread props to allow for Mui Tooltip specific prop overrides. */ }) => {
|
|
23
|
-
const [maxHeight, setMaxHeight] = useState();
|
|
24
|
-
const modifiers = useMemo(() => [
|
|
25
|
-
{
|
|
26
|
-
enabled: true,
|
|
27
|
-
fn: ({ state }) => setMaxHeight(calculateMaxHeight(state)),
|
|
28
|
-
name: "maxHeight",
|
|
29
|
-
phase: "main",
|
|
30
|
-
requiresIfExists: ["offset"],
|
|
31
|
-
},
|
|
32
|
-
DEFAULT_FLIP_MODIFIER,
|
|
33
|
-
DEFAULT_PREVENT_OVERFLOW_MODIFIER,
|
|
34
|
-
], []);
|
|
35
|
-
return (React.createElement(MTooltip, { arrow: true, className: className, onClose: () => setMaxHeight(undefined), slotProps: {
|
|
36
|
-
popper: { modifiers },
|
|
37
|
-
tooltip: { style: { display: "flex", maxHeight, padding: 0 } },
|
|
38
|
-
}, title: React.createElement(TooltipContent, null, title), ...props }, children));
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Calculate the max height of the tooltip based on the current popper modifier state.
|
|
42
|
-
* @param state - Popper modifier state.
|
|
43
|
-
* @returns tooltip maximum height.
|
|
44
|
-
*/
|
|
45
|
-
function calculateMaxHeight(state) {
|
|
46
|
-
const overflow = detectOverflow(state);
|
|
47
|
-
const { placement } = state;
|
|
48
|
-
if (placement === "left" || placement === "right") {
|
|
49
|
-
return window.innerHeight - 32;
|
|
50
|
-
}
|
|
51
|
-
if (placement === "top") {
|
|
52
|
-
return state.rects.popper.height - overflow.top - 24;
|
|
53
|
-
}
|
|
54
|
-
if (placement === "bottom") {
|
|
55
|
-
return state.rects.popper.height - overflow.bottom - 24;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export interface NTagProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
Tag: ReactElement;
|
|
5
|
-
TooltipTitle: ReactElement;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated - use NTag from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/nTag"
|
|
9
|
-
*/
|
|
10
|
-
export declare const NTag: ({ className, Tag, TooltipTitle, ...props }: NTagProps) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Tooltip } from "./components/Tooltip/tooltip";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated - use NTag from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/nTag"
|
|
5
|
-
*/
|
|
6
|
-
export const NTag = ({ className, Tag, TooltipTitle, ...props /* Spread props to allow for Mui Tooltip specific prop overrides. */ }) => {
|
|
7
|
-
return (React.createElement(Tooltip, { className: className, title: TooltipTitle, ...props }, Tag));
|
|
8
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TypographyProps } from "../../../common/Typography/common/entities";
|
|
2
|
-
export type MetadataValue = string;
|
|
3
|
-
export interface NTagCellProps {
|
|
4
|
-
label: string;
|
|
5
|
-
TypographyProps?: TypographyProps;
|
|
6
|
-
values: MetadataValue[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated - use NTagCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/nTagCell"
|
|
10
|
-
*/
|
|
11
|
-
export declare const NTagCell: ({ label, TypographyProps, values, }: NTagCellProps) => JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Chip as MChip, Typography, } from "@mui/material";
|
|
2
|
-
import React, { forwardRef } from "react";
|
|
3
|
-
import { TEXT_BODY_SMALL_400 } from "../../../../theme/common/typography";
|
|
4
|
-
import { NTag } from "../NTag/nTag";
|
|
5
|
-
// Template constants
|
|
6
|
-
const MAX_DISPLAYABLE_VALUES = 1;
|
|
7
|
-
/**
|
|
8
|
-
* String-concatenates the specified list of metadata values to a string value, joined by a comma ",".
|
|
9
|
-
* @param metadataValues - List of metadata values.
|
|
10
|
-
* @returns the metadata values in a string, each value joined by a comma.
|
|
11
|
-
*/
|
|
12
|
-
function stringifyMetadataValues(metadataValues) {
|
|
13
|
-
return metadataValues.join(", ");
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Renders tag for NTag component.
|
|
17
|
-
* Tooltip children require forward ref.
|
|
18
|
-
*/
|
|
19
|
-
const Tag = forwardRef(function Tag(props, ref) {
|
|
20
|
-
return React.createElement(MChip, { ref: ref, ...props });
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated - use NTagCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/nTagCell"
|
|
24
|
-
*/
|
|
25
|
-
export const NTagCell = ({ label, TypographyProps, values, }) => {
|
|
26
|
-
const metadataCount = values.length;
|
|
27
|
-
const showNTag = metadataCount > MAX_DISPLAYABLE_VALUES;
|
|
28
|
-
return (React.createElement(React.Fragment, null, showNTag ? (React.createElement(NTag, { Tag: React.createElement(Tag, { label: `${metadataCount} ${label}`, variant: "ntag" }), TooltipTitle: React.createElement(Typography, { display: "block", variant: TEXT_BODY_SMALL_400 }, stringifyMetadataValues(values)) })) : (values.map((value, v) => (React.createElement(Typography, { key: `${value}${v}`, variant: "inherit", ...TypographyProps }, value))))));
|
|
29
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta } from "@storybook/react";
|
|
2
|
-
import { NTagCell } from "./nTagCell";
|
|
3
|
-
declare const _default: ComponentMeta<typeof NTagCell>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const NTagCellStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./nTagCell").NTagCellProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NTagCell } from "./nTagCell";
|
|
3
|
-
export default {
|
|
4
|
-
argTypes: {
|
|
5
|
-
label: { control: "text" },
|
|
6
|
-
values: { control: "array" },
|
|
7
|
-
},
|
|
8
|
-
component: NTagCell,
|
|
9
|
-
title: "Components/Table/Cell/NTagCell",
|
|
10
|
-
};
|
|
11
|
-
const NTagCellTemplate = (args) => (React.createElement(NTagCell, { ...args }));
|
|
12
|
-
export const NTagCellStory = NTagCellTemplate.bind({});
|
|
13
|
-
NTagCellStory.args = {
|
|
14
|
-
label: "species",
|
|
15
|
-
values: ["Homo sapiens", "Mus musculus"],
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Typography } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TEXT_BODY_400 } from "../../../../theme/common/typography";
|
|
4
|
-
import { Link } from "../../../Links/components/Link/link";
|
|
5
|
-
import { TitleCell as Cell } from "./titleCell.styles";
|
|
6
|
-
export const TitleCell = ({ title, ...props }) => {
|
|
7
|
-
return (React.createElement(Cell, { gridSx: { gap: 1 } },
|
|
8
|
-
typeof title === "string" ? (React.createElement(Typography, { variant: TEXT_BODY_400 }, title)) : (title),
|
|
9
|
-
React.createElement(Link, { ...props })));
|
|
10
|
-
};
|
package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { BackPageHero } from "./backPageHero";
|
|
3
|
-
declare const _default: Meta<typeof BackPageHero>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type Story = StoryObj<typeof BackPageHero>;
|
|
6
|
-
export declare const BackPageHeroStory: Story;
|
package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BackPageHero } from "./backPageHero";
|
|
2
|
-
export default {
|
|
3
|
-
component: BackPageHero,
|
|
4
|
-
title: "Components/Hero",
|
|
5
|
-
};
|
|
6
|
-
export const BackPageHeroStory = {
|
|
7
|
-
args: {
|
|
8
|
-
title: "A Single-Cell Transcriptomic Map of the Human and Mouse Pancreas Reveals Inter- and Intra-cell Population Structure",
|
|
9
|
-
},
|
|
10
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react";
|
|
2
|
-
import { AuthenticationMenu } from "./authenticationMenu";
|
|
3
|
-
declare const _default: Meta<typeof AuthenticationMenu>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const AuthenticationMenuStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./authenticationMenu").AuthenticationMenuProps>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AuthenticationMenu } from "./authenticationMenu";
|
|
3
|
-
export default {
|
|
4
|
-
argTypes: {
|
|
5
|
-
onLogout: {
|
|
6
|
-
description: "Callback to be called when 'Logout' button is clicked",
|
|
7
|
-
},
|
|
8
|
-
userProfile: {
|
|
9
|
-
description: "User profile with name and avatar",
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
component: AuthenticationMenu,
|
|
13
|
-
title: "Components/Navigation/AuthenticationMenu",
|
|
14
|
-
};
|
|
15
|
-
const AuthenticationMenuTemplate = (args) => React.createElement(AuthenticationMenu, { ...args });
|
|
16
|
-
export const AuthenticationMenuStory = AuthenticationMenuTemplate.bind({});
|
|
17
|
-
AuthenticationMenuStory.args = {
|
|
18
|
-
userProfile: {
|
|
19
|
-
email: "john@smith.com",
|
|
20
|
-
email_verified: true,
|
|
21
|
-
family_name: "Smith",
|
|
22
|
-
given_name: "John",
|
|
23
|
-
hd: "",
|
|
24
|
-
locale: "",
|
|
25
|
-
name: "john_smith",
|
|
26
|
-
picture: "https://i.pravatar.cc/200",
|
|
27
|
-
sub: "",
|
|
28
|
-
},
|
|
29
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface RequestAuthenticationProps {
|
|
3
|
-
closeMenu: () => void;
|
|
4
|
-
requestAuthorization: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const RequestAuthentication: ({ closeMenu, requestAuthorization, }: RequestAuthenticationProps) => JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import LoginRoundedIcon from "@mui/icons-material/LoginRounded";
|
|
2
|
-
import { IconButton as MIconButton } from "@mui/material";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { useBreakpoint } from "../../../../../../../../../../../../hooks/useBreakpoint";
|
|
5
|
-
import { Button } from "./requestAuthentication.styles";
|
|
6
|
-
export const RequestAuthentication = ({ closeMenu, requestAuthorization, }) => {
|
|
7
|
-
const { mdUp } = useBreakpoint();
|
|
8
|
-
return mdUp ? (React.createElement(Button, { onClick: requestAuthorization, startIcon: React.createElement(LoginRoundedIcon, null), variant: "nav" }, "Sign in")) : (React.createElement(MIconButton, { color: "ink", onClick: () => {
|
|
9
|
-
closeMenu();
|
|
10
|
-
requestAuthorization();
|
|
11
|
-
} },
|
|
12
|
-
React.createElement(LoginRoundedIcon, null)));
|
|
13
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Button: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
5
|
-
color?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableElevation?: boolean | undefined;
|
|
8
|
-
disableFocusRipple?: boolean | undefined;
|
|
9
|
-
endIcon?: import("react").ReactNode;
|
|
10
|
-
fullWidth?: boolean | undefined;
|
|
11
|
-
href?: string | undefined;
|
|
12
|
-
size?: "large" | "medium" | "small" | undefined;
|
|
13
|
-
startIcon?: import("react").ReactNode;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
variant?: "nav" | "text" | "outlined" | "contained" | "activeNav" | "backNav" | undefined;
|
|
16
|
-
} & Omit<{
|
|
17
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
18
|
-
centerRipple?: boolean | undefined;
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
21
|
-
disabled?: boolean | undefined;
|
|
22
|
-
disableRipple?: boolean | undefined;
|
|
23
|
-
disableTouchRipple?: boolean | undefined;
|
|
24
|
-
focusRipple?: boolean | undefined;
|
|
25
|
-
focusVisibleClassName?: string | undefined;
|
|
26
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
27
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
28
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
29
|
-
tabIndex?: number | undefined;
|
|
30
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
31
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
32
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
33
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
34
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "href" | "disabled" | "action" | "size" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & {
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
}, {}, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { Button as MButton } from "@mui/material";
|
|
3
|
-
import { textBody500 } from "../../../../../../../../../../../../styles/common/mixins/fonts";
|
|
4
|
-
export const Button = styled(MButton) `
|
|
5
|
-
& {
|
|
6
|
-
${textBody500};
|
|
7
|
-
padding: 6px 12px;
|
|
8
|
-
}
|
|
9
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconButton } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { useBreakpoint } from "../../../../../../../../../../../../hooks/useBreakpoint";
|
|
4
|
-
import { SearchIcon } from "../../../../../../../../../../../common/CustomIcon/components/SearchIcon/searchIcon";
|
|
5
|
-
import { Button } from "./searchButton.styles";
|
|
6
|
-
export const SearchButton = ({ openSearch }) => {
|
|
7
|
-
const { mdUp } = useBreakpoint();
|
|
8
|
-
return mdUp ? (React.createElement(Button, { onClick: openSearch, startIcon: React.createElement(SearchIcon, null), variant: "nav" }, "Search")) : (React.createElement(IconButton, { color: "ink", onClick: openSearch },
|
|
9
|
-
React.createElement(SearchIcon, { fontSize: "medium" })));
|
|
10
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Button: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
5
|
-
color?: "inherit" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableElevation?: boolean | undefined;
|
|
8
|
-
disableFocusRipple?: boolean | undefined;
|
|
9
|
-
endIcon?: import("react").ReactNode;
|
|
10
|
-
fullWidth?: boolean | undefined;
|
|
11
|
-
href?: string | undefined;
|
|
12
|
-
size?: "large" | "medium" | "small" | undefined;
|
|
13
|
-
startIcon?: import("react").ReactNode;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
variant?: "nav" | "text" | "outlined" | "contained" | "activeNav" | "backNav" | undefined;
|
|
16
|
-
} & Omit<{
|
|
17
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
18
|
-
centerRipple?: boolean | undefined;
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
21
|
-
disabled?: boolean | undefined;
|
|
22
|
-
disableRipple?: boolean | undefined;
|
|
23
|
-
disableTouchRipple?: boolean | undefined;
|
|
24
|
-
focusRipple?: boolean | undefined;
|
|
25
|
-
focusVisibleClassName?: string | undefined;
|
|
26
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
27
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
28
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
29
|
-
tabIndex?: number | undefined;
|
|
30
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
31
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
32
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
33
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
34
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "href" | "disabled" | "action" | "size" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & {
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
}, {}, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { Button as MButton } from "@mui/material";
|
|
3
|
-
import { textBody500 } from "../../../../../../../../../../../../styles/common/mixins/fonts";
|
|
4
|
-
export const Button = styled(MButton) `
|
|
5
|
-
& {
|
|
6
|
-
${textBody500};
|
|
7
|
-
padding: 6px 12px;
|
|
8
|
-
}
|
|
9
|
-
`;
|