@databiosphere/findable-ui 46.1.3 → 47.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +2 -1
- package/.github/copilot-instructions.md +176 -0
- package/.github/workflows/release-please.yml +8 -4
- package/.github/workflows/run-checks.yml +2 -2
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +26 -0
- package/README.md +4 -10
- package/docs/TRUSTED_PUBLISHING.md +133 -0
- package/lib/common/utils.js +1 -1
- package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +6 -0
- package/lib/components/DataDictionary/components/Table/columns/columnDef.js +33 -0
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +5 -0
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +5 -0
- package/lib/components/DataDictionary/components/Table/columns/types.d.ts +2 -0
- package/lib/components/DataDictionary/components/Table/columns/types.js +1 -0
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +4 -0
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.js +1 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.d.ts +4 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +23 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +8 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.js +1 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.d.ts +2 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.js +10 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.d.ts +7 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.js +1 -0
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +8 -0
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +36 -0
- package/lib/components/Filter/components/Filter/filter.stories.d.ts +25 -0
- package/lib/components/Filter/components/Filter/filter.stories.js +42 -0
- package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +16 -0
- package/lib/components/Filter/components/FilterTag/filterTag.stories.js +17 -0
- package/lib/components/Filter/components/Filters/filters.stories.d.ts +6 -0
- package/lib/components/Filter/components/Filters/filters.stories.js +91 -0
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.d.ts +3 -0
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.js +15 -0
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.d.ts +6 -0
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.js +82 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.d.ts +1 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +14 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.d.ts +2 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.js +12 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.d.ts +5 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +34 -0
- package/lib/components/Index/components/Cell/cell.d.ts +7 -0
- package/lib/components/Index/components/Cell/cell.js +10 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +20 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +13 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.js +12 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +10 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +10 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +91 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +132 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +230 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.js +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.js +29 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.d.ts +4 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.js +70 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.d.ts +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +18 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.d.ts +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.js +11 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +97 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +15 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +8 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/utils.d.ts +14 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/utils.js +23 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +14 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.js +15 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +20 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.js +14 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.d.ts +13 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.js +5 -0
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +8 -0
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +50 -0
- package/lib/components/Index/components/EntitiesView/types.d.ts +8 -0
- package/lib/components/Index/components/EntitiesView/types.js +1 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +1 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +13 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +3 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.js +13 -0
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.d.ts +6 -0
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js +14 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.d.ts +9 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.js +12 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +13 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.js +18 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +7 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.js +26 -0
- package/lib/components/Index/components/Hero/hero.d.ts +11 -0
- package/lib/components/Index/components/Hero/hero.js +12 -0
- package/lib/components/Index/components/Hero/hero.stories.d.ts +23 -0
- package/lib/components/Index/components/Hero/hero.stories.js +22 -0
- package/lib/components/Index/components/Hero/hero.styles.d.ts +16 -0
- package/lib/components/Index/components/Hero/hero.styles.js +44 -0
- package/lib/components/Index/components/Hero/stories/hero.stories.d.ts +6 -0
- package/lib/components/Index/components/Hero/stories/hero.stories.js +16 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +8 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +57 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +4 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +10 -0
- package/lib/components/Index/components/NTag/nTag.d.ts +10 -0
- package/lib/components/Index/components/NTag/nTag.js +8 -0
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +11 -0
- package/lib/components/Index/components/NTagCell/nTagCell.js +29 -0
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -0
- package/lib/components/Index/components/NTagCell/nTagCell.stories.js +16 -0
- package/lib/components/Index/components/Tabs/common/utils.d.ts +8 -0
- package/lib/components/Index/components/Tabs/common/utils.js +19 -0
- package/lib/components/Index/components/Tabs/tabs.d.ts +1 -0
- package/lib/components/Index/components/Tabs/tabs.js +20 -0
- package/lib/components/Index/components/TitleCell/titleCell.d.ts +6 -0
- package/lib/components/Index/components/TitleCell/titleCell.js +10 -0
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +3 -0
- package/lib/components/Index/components/TitleCell/titleCell.styles.js +6 -0
- package/lib/components/Index/index.stories.d.ts +6 -0
- package/lib/components/Index/index.stories.js +26 -0
- package/lib/components/Index/stories/index.stories.d.ts +6 -0
- package/lib/components/Index/stories/index.stories.js +17 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +6 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +10 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +5 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +29 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +6 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +13 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +36 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +9 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +5 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +10 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +36 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +9 -0
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +5 -0
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +19 -0
- package/lib/components/Layout/components/Outline/common/constants.d.ts +2 -0
- package/lib/components/Layout/components/Outline/common/constants.js +1 -0
- package/lib/components/Links/components/Link/components/ExploreViewLink/exploreViewLink.js +1 -1
- package/lib/components/Login/login.stories.d.ts +6 -0
- package/lib/components/Login/login.stories.js +31 -0
- package/lib/components/Redirect/redirect.js +6 -1
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +16 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +28 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +5 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +46 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +3 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +21 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.d.ts +6 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.js +17 -0
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +2 -0
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +37 -0
- package/lib/components/Table/components/Pagination/pagination.d.ts +9 -0
- package/lib/components/Table/components/Pagination/pagination.js +19 -0
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +28 -0
- package/lib/components/Table/components/Pagination/pagination.stories.js +24 -0
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +4 -0
- package/lib/components/Table/components/Pagination/pagination.styles.js +15 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.d.ts +3 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.js +3 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.d.ts +8 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.js +18 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.d.ts +4 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.js +1 -0
- package/lib/components/Table/components/TableBody/utils.d.ts +12 -0
- package/lib/components/Table/components/TableBody/utils.js +17 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.js +1 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.js +1 -0
- package/lib/components/TableCreator/common/constants.d.ts +6 -0
- package/lib/components/TableCreator/common/constants.js +19 -0
- package/lib/components/TableCreator/common/entities.d.ts +5 -0
- package/lib/components/TableCreator/common/entities.js +1 -0
- package/lib/components/TableCreator/tableCreator.styles.d.ts +4 -0
- package/lib/components/TableCreator/tableCreator.styles.js +4 -0
- package/lib/components/common/Alert/alert.stories.d.ts +6 -0
- package/lib/components/common/Alert/alert.stories.js +36 -0
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +4 -0
- package/lib/components/common/Alert/components/AlertText/alertText.styles.js +19 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +7 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +5 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +3 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +19 -0
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +10 -0
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +16 -0
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +3 -0
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +21 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +3 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.js +6 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +7 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +11 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +5 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +10 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +3 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +9 -0
- package/lib/components/common/ToggleButtonGroup/toggleButtonGroup.js +2 -1
- package/lib/hooks/useAuthentication/common/constants.d.ts +4 -0
- package/lib/hooks/useAuthentication/common/constants.js +19 -0
- package/lib/hooks/useAuthentication/common/entities.d.ts +25 -0
- package/lib/hooks/useAuthentication/common/entities.js +11 -0
- package/lib/hooks/useAuthentication/common/utils.d.ts +15 -0
- package/lib/hooks/useAuthentication/common/utils.js +25 -0
- package/lib/hooks/useAuthentication/useAuthentication.d.ts +6 -0
- package/lib/hooks/useAuthentication/useAuthentication.js +9 -0
- package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +6 -0
- package/lib/hooks/useAuthentication/useAuthenticationComplete.js +55 -0
- package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +20 -0
- package/lib/hooks/useAuthentication/useAuthenticationForm.js +88 -0
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +18 -0
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +50 -0
- package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +20 -0
- package/lib/hooks/useAuthentication/useAuthenticationStatus.js +32 -0
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +21 -0
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +41 -0
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +18 -0
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +62 -0
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +24 -0
- package/lib/hooks/useAuthentication/useFetchTerraProfile.js +62 -0
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +15 -0
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +62 -0
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +11 -0
- package/lib/hooks/useAuthentication/useTokenClient.js +29 -0
- package/lib/hooks/useAuthenticationConfig.d.ts +6 -0
- package/lib/hooks/useAuthenticationConfig.js +14 -0
- package/lib/hooks/useCategoryConfigs.d.ts +6 -0
- package/lib/hooks/useCategoryConfigs.js +17 -0
- package/lib/hooks/useEntityListRelatedView.d.ts +15 -0
- package/lib/hooks/useEntityListRelatedView.js +62 -0
- package/lib/hooks/useExploreMode.d.ts +14 -0
- package/lib/hooks/useExploreMode.js +20 -0
- package/lib/hooks/useFileLocation.js +1 -1
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +15 -0
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +27 -0
- package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +5 -0
- package/lib/hooks/useFileManifest/useFileManifestURL.js +11 -0
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +9 -0
- package/lib/hooks/useFileManifest/useRequestFileManifest.js +37 -0
- package/lib/hooks/useLayoutState.d.ts +6 -0
- package/lib/hooks/useLayoutState.js +9 -0
- package/lib/hooks/useMenu.d.ts +10 -0
- package/lib/hooks/useMenu.js +17 -0
- package/lib/hooks/useMenuWithPosition.d.ts +14 -0
- package/lib/hooks/useMenuWithPosition.js +33 -0
- package/lib/hooks/useScroll.d.ts +10 -0
- package/lib/hooks/useScroll.js +12 -0
- package/lib/hooks/useSessionTimeout.d.ts +11 -0
- package/lib/hooks/useSessionTimeout.js +28 -0
- package/lib/providers/authentication.d.ts +51 -0
- package/lib/providers/authentication.js +110 -0
- package/lib/providers/layoutState.d.ts +40 -0
- package/lib/providers/layoutState.js +47 -0
- package/lib/styles/common/mixins/colors.d.ts +25 -0
- package/lib/styles/common/mixins/colors.js +32 -0
- package/lib/styles/common/mixins/fonts.d.ts +16 -0
- package/lib/styles/common/mixins/fonts.js +30 -0
- package/lib/styles/common/mixins/shadows.d.ts +3 -0
- package/lib/styles/common/mixins/shadows.js +4 -0
- package/lib/styles/common/mui/palette.d.ts +47 -0
- package/lib/styles/common/mui/palette.js +47 -0
- package/lib/theme/common/entities.d.ts +6 -0
- package/lib/theme/common/entities.js +1 -0
- package/package.json +8 -9
- package/src/common/utils.ts +1 -1
- package/src/components/Links/components/Link/components/ExploreViewLink/exploreViewLink.tsx +1 -1
- package/src/components/Redirect/redirect.tsx +5 -1
- package/src/components/common/ToggleButtonGroup/toggleButtonGroup.tsx +1 -1
- package/src/hooks/useFileLocation.ts +1 -1
- package/types/data-explorer-ui.d.ts +7 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridPaper } from "../../../../../../common/Paper/paper.styles";
|
|
3
|
+
import { ChartView } from "../chartView";
|
|
4
|
+
import { CHART_VIEW_ARGS } from "./args";
|
|
5
|
+
const meta = {
|
|
6
|
+
args: CHART_VIEW_ARGS,
|
|
7
|
+
component: ChartView,
|
|
8
|
+
decorators: [
|
|
9
|
+
(Story, context) => (React.createElement(GridPaper, null,
|
|
10
|
+
React.createElement(Story, { ...context }))),
|
|
11
|
+
],
|
|
12
|
+
parameters: { layout: "fullscreen" },
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export const Default = {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityConfig } from "../../../../../../config/entities";
|
|
2
|
+
import { CategoryFilter } from "../../../../../Filter/components/Filters/filters";
|
|
3
|
+
import { TestIdProps } from "../../../../../types";
|
|
4
|
+
export interface ChartViewProps extends TestIdProps {
|
|
5
|
+
categoryFilters: CategoryFilter[];
|
|
6
|
+
entityName: EntityConfig["label"];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SelectCategoryView } from "../../../../../../common/entities";
|
|
2
|
+
import { CategoryFilter } from "../../../../../Filter/components/Filters/filters";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the set of select category views that have chart view enabled.
|
|
5
|
+
* @param categoryFilters - Category filters.
|
|
6
|
+
* @returns Set of category views with chart view enabled.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getSelectCategoryViews(categoryFilters: CategoryFilter[]): SelectCategoryView[];
|
|
9
|
+
/**
|
|
10
|
+
* Returns the available SVG `width` from the container width.
|
|
11
|
+
* @param width - View width.
|
|
12
|
+
* @returns width.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getSVGWidth(width?: number): number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isSelectCategoryView } from "../../../../../../common/categories/views/select/typeGuards";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the set of select category views that have chart view enabled.
|
|
4
|
+
* @param categoryFilters - Category filters.
|
|
5
|
+
* @returns Set of category views with chart view enabled.
|
|
6
|
+
*/
|
|
7
|
+
export function getSelectCategoryViews(categoryFilters) {
|
|
8
|
+
return categoryFilters
|
|
9
|
+
.flatMap(({ categoryViews }) => categoryViews)
|
|
10
|
+
.filter(isSelectCategoryView)
|
|
11
|
+
.filter(({ enableChartView = true }) => enableChartView)
|
|
12
|
+
.filter(({ values }) => values.length > 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the available SVG `width` from the container width.
|
|
16
|
+
* @param width - View width.
|
|
17
|
+
* @returns width.
|
|
18
|
+
*/
|
|
19
|
+
export function getSVGWidth(width) {
|
|
20
|
+
if (!width)
|
|
21
|
+
return 0;
|
|
22
|
+
return width - 40; // 20px padding on each side.
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useConfig } from "../../../../../../hooks/useConfig";
|
|
3
|
+
import { useExploreState } from "../../../../../../hooks/useExploreState";
|
|
4
|
+
import { TableCreator } from "../../../../../TableCreator/tableCreator";
|
|
5
|
+
export const EntityList = ({ entityListType, loading, table, }) => {
|
|
6
|
+
const { entityConfig } = useConfig();
|
|
7
|
+
const { exploreState } = useExploreState();
|
|
8
|
+
const { listView } = entityConfig;
|
|
9
|
+
// required currently for client-side fetching as the pre-rendered page
|
|
10
|
+
// loads with the previous tabs data on the first render after switching tabs. (or similar)
|
|
11
|
+
if (entityListType !== exploreState.tabValue)
|
|
12
|
+
return null;
|
|
13
|
+
return React.createElement(TableCreator, { listView: listView, loading: loading, table: table });
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ENTITIES_VIEW_TEST_ID = "entities-view";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ENTITIES_VIEW_TEST_ID = "entities-view";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ToggleButton, ToggleButtonGroup, Toolbar } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TEST_IDS } from "../../../../tests/testIds";
|
|
4
|
+
import { GridPaper } from "../../../common/Paper/paper.styles";
|
|
5
|
+
import { StyledFluidPaper } from "./entitiesView.styles";
|
|
6
|
+
import { VIEW_MODE } from "./hooks/UseEntitiesView/types";
|
|
7
|
+
export const EntitiesView = ({ children, onChange, viewMode, viewStatus, }) => {
|
|
8
|
+
return (React.createElement(StyledFluidPaper, { testId: TEST_IDS.ENTITIES_VIEW },
|
|
9
|
+
React.createElement(GridPaper, null,
|
|
10
|
+
viewStatus.disabled ? null : (React.createElement(Toolbar, null,
|
|
11
|
+
React.createElement(ToggleButtonGroup, { exclusive: true, value: viewMode, onChange: onChange },
|
|
12
|
+
React.createElement(ToggleButton, { value: VIEW_MODE.TABLE }, "Table View"),
|
|
13
|
+
React.createElement(ToggleButton, { value: VIEW_MODE.CHART }, "Chart View")))),
|
|
14
|
+
children)));
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { white } from "../../../../styles/common/mixins/colors";
|
|
3
|
+
import { FluidPaper } from "../../../common/Paper/paper.styles";
|
|
4
|
+
export const StyledFluidPaper = styled(FluidPaper) `
|
|
5
|
+
&.MuiPaper-root {
|
|
6
|
+
position: relative; /* required; positions table loading indicator */
|
|
7
|
+
|
|
8
|
+
.MuiToolbar-root {
|
|
9
|
+
background-color: ${white};
|
|
10
|
+
padding: 20px;
|
|
11
|
+
|
|
12
|
+
.MuiToggleButtonGroup-root {
|
|
13
|
+
.MuiToggleButton-root {
|
|
14
|
+
padding: 8px 16px;
|
|
15
|
+
text-transform: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useConfig } from "../../../../../../hooks/useConfig";
|
|
2
|
+
import { useToggleButtonGroup } from "../../../../../common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook";
|
|
3
|
+
import { VIEW_MODE } from "./types";
|
|
4
|
+
export const useEntitiesView = () => {
|
|
5
|
+
const { onChange, value } = useToggleButtonGroup(VIEW_MODE.TABLE);
|
|
6
|
+
const { config } = useConfig();
|
|
7
|
+
const { enableEntitiesView = false } = config;
|
|
8
|
+
const disabled = !enableEntitiesView;
|
|
9
|
+
return {
|
|
10
|
+
onChange,
|
|
11
|
+
viewMode: value,
|
|
12
|
+
viewStatus: { disabled },
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
export declare enum VIEW_MODE {
|
|
3
|
+
CHART = "chart",
|
|
4
|
+
TABLE = "table"
|
|
5
|
+
}
|
|
6
|
+
export interface ViewStatus {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface UseEntitiesViewProps {
|
|
10
|
+
onChange: ToggleButtonGroupProps["onChange"];
|
|
11
|
+
viewMode: VIEW_MODE;
|
|
12
|
+
viewStatus: ViewStatus;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { EntitiesView } from "../entitiesView";
|
|
3
|
+
declare const meta: Meta<typeof EntitiesView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ChartView: Story;
|
|
8
|
+
export declare const TableView: Story;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Box } from "@mui/material";
|
|
2
|
+
import { fn } from "@storybook/test";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { LOREM_IPSUM } from "../../../../../storybook/loremIpsum";
|
|
5
|
+
import { EntitiesView } from "../entitiesView";
|
|
6
|
+
import { VIEW_MODE } from "../hooks/UseEntitiesView/types";
|
|
7
|
+
const meta = {
|
|
8
|
+
args: {
|
|
9
|
+
onChange: fn(),
|
|
10
|
+
viewMode: VIEW_MODE.TABLE,
|
|
11
|
+
viewStatus: { disabled: true },
|
|
12
|
+
},
|
|
13
|
+
component: EntitiesView,
|
|
14
|
+
title: "Components/Entities/EntitiesView",
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
export const Default = {
|
|
18
|
+
args: {
|
|
19
|
+
children: (React.createElement(Box, { sx: {
|
|
20
|
+
backgroundColor: "white",
|
|
21
|
+
maxWidth: "800px",
|
|
22
|
+
padding: 5,
|
|
23
|
+
width: "100%",
|
|
24
|
+
} }, LOREM_IPSUM.LONG)),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const ChartView = {
|
|
28
|
+
args: {
|
|
29
|
+
children: (React.createElement(Box, { sx: {
|
|
30
|
+
backgroundColor: "white",
|
|
31
|
+
maxWidth: "800px",
|
|
32
|
+
padding: 5,
|
|
33
|
+
width: "100%",
|
|
34
|
+
} }, LOREM_IPSUM.SHORT)),
|
|
35
|
+
viewMode: VIEW_MODE.CHART,
|
|
36
|
+
viewStatus: { disabled: false },
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const TableView = {
|
|
40
|
+
args: {
|
|
41
|
+
children: (React.createElement(Box, { sx: {
|
|
42
|
+
backgroundColor: "white",
|
|
43
|
+
maxWidth: "800px",
|
|
44
|
+
padding: 5,
|
|
45
|
+
width: "100%",
|
|
46
|
+
} }, LOREM_IPSUM.SHORT)),
|
|
47
|
+
viewMode: VIEW_MODE.TABLE,
|
|
48
|
+
viewStatus: { disabled: false },
|
|
49
|
+
},
|
|
50
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
import { ChildrenProps } from "../../../types";
|
|
3
|
+
import { VIEW_MODE, ViewStatus } from "./hooks/UseEntitiesView/types";
|
|
4
|
+
export interface EntitiesViewProps extends ChildrenProps {
|
|
5
|
+
onChange: ToggleButtonGroupProps["onChange"];
|
|
6
|
+
viewMode: VIEW_MODE;
|
|
7
|
+
viewStatus: ViewStatus;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExportButton: () => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Tooltip } from "@mui/material";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useDownloadStatus } from "../../../../../../hooks/useDownloadStatus";
|
|
5
|
+
import { TEST_IDS } from "../../../../../../tests/testIds";
|
|
6
|
+
import { Button } from "./exportButton.styles";
|
|
7
|
+
export const ExportButton = () => {
|
|
8
|
+
const { disabled, isLoading, message } = useDownloadStatus();
|
|
9
|
+
return (React.createElement(Tooltip, { arrow: true, title: message },
|
|
10
|
+
React.createElement("span", null,
|
|
11
|
+
React.createElement(Link, { href: "/export", legacyBehavior: true, passHref: true },
|
|
12
|
+
React.createElement(Button, { "data-testid": TEST_IDS.EXPORT_BUTTON, disabled: disabled || isLoading, href: "passHref", id: "button-cohort-export" }, "Export")))));
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { mediaTabletUp } from "../../../../../../styles/common/mixins/breakpoints";
|
|
3
|
+
import { ButtonPrimary } from "../../../../../common/Button/components/ButtonPrimary/buttonPrimary";
|
|
4
|
+
export const Button = styled(ButtonPrimary) `
|
|
5
|
+
border-bottom-left-radius: 0;
|
|
6
|
+
border-top-left-radius: 0;
|
|
7
|
+
display: none;
|
|
8
|
+
margin-left: -1px;
|
|
9
|
+
|
|
10
|
+
${mediaTabletUp} {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
`;
|
package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Summaries } from "../summaries";
|
|
2
|
+
const meta = {
|
|
3
|
+
component: Summaries,
|
|
4
|
+
};
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = {
|
|
7
|
+
args: {
|
|
8
|
+
summaries: [
|
|
9
|
+
{ count: "1", label: "Species" },
|
|
10
|
+
{ count: "1.1k", label: "Donors" },
|
|
11
|
+
{ count: "508.5k", label: "Files" },
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Typography } from "@mui/material";
|
|
2
|
+
import React, { Fragment } from "react";
|
|
3
|
+
import { TEXT_BODY_SMALL_400, TEXT_BODY_SMALL_500, } from "../../../../../../theme/common/typography";
|
|
4
|
+
import { Dot, Summary } from "./summaries.styles";
|
|
5
|
+
export const Summaries = ({ summaries }) => {
|
|
6
|
+
return (React.createElement(React.Fragment, null, summaries &&
|
|
7
|
+
summaries.map(({ count, label }, c) => (React.createElement(Fragment, { key: `${label}${c}` },
|
|
8
|
+
c !== 0 && React.createElement(Dot, null),
|
|
9
|
+
React.createElement(Summary, null,
|
|
10
|
+
React.createElement(Typography, { variant: TEXT_BODY_SMALL_500 }, count),
|
|
11
|
+
React.createElement(Typography, { color: "ink.light", variant: TEXT_BODY_SMALL_400 }, label)))))));
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
argTypes: {
|
|
4
|
+
summaries: {
|
|
5
|
+
control: "object";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
component: ({ summaries }: import("./summaries").SummariesProps) => JSX.Element;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const SummariesStory: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Summaries } from "./summaries";
|
|
2
|
+
const meta = {
|
|
3
|
+
argTypes: {
|
|
4
|
+
summaries: { control: "object" },
|
|
5
|
+
},
|
|
6
|
+
component: Summaries,
|
|
7
|
+
title: "Components/Summary",
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export const SummariesStory = {
|
|
11
|
+
args: {
|
|
12
|
+
summaries: [
|
|
13
|
+
{ count: "1", label: "Species" },
|
|
14
|
+
{ count: "1.1k", label: "Donors" },
|
|
15
|
+
{ count: "508.5k", label: "Files" },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const Summary: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const Dot: import("@emotion/styled").StyledComponent<import("../../../../../common/Dot/dot").DotProps & {
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { mediaTabletDown, mediaTabletUp, } from "../../../../../../styles/common/mixins/breakpoints";
|
|
3
|
+
import { Dot as DXDot } from "../../../../../common/Dot/dot";
|
|
4
|
+
export const Summary = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
flex: 1;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 4px;
|
|
9
|
+
|
|
10
|
+
.MuiTypography-text-body-small-400 {
|
|
11
|
+
-webkit-box-orient: vertical;
|
|
12
|
+
display: -webkit-box;
|
|
13
|
+
-webkit-line-clamp: 1;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
${mediaTabletUp} {
|
|
18
|
+
flex: none;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export const Dot = styled(DXDot) `
|
|
23
|
+
${mediaTabletDown} {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { HeroTitle } from "../../../common/Title/title";
|
|
3
|
+
/**
|
|
4
|
+
* ExploreView page hero component comprising title, summary counts, and export button.
|
|
5
|
+
*/
|
|
6
|
+
export interface HeroProps {
|
|
7
|
+
SideBarButton?: ReactNode;
|
|
8
|
+
Summaries?: ReactNode;
|
|
9
|
+
title: HeroTitle;
|
|
10
|
+
}
|
|
11
|
+
export declare const Hero: ({ SideBarButton, Summaries, title, }: HeroProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Title } from "../../../common/Title/title";
|
|
3
|
+
import { ExportButton } from "./components/ExportButton/exportButton";
|
|
4
|
+
import { HeroLayout, SummaryWidget, Widgets } from "./hero.styles";
|
|
5
|
+
export const Hero = ({ SideBarButton, Summaries, title, }) => {
|
|
6
|
+
return (React.createElement(React.Fragment, null, (title || SideBarButton || Summaries) && (React.createElement(HeroLayout, null,
|
|
7
|
+
React.createElement(Title, { title: title }),
|
|
8
|
+
SideBarButton,
|
|
9
|
+
Summaries && (React.createElement(Widgets, null,
|
|
10
|
+
React.createElement(SummaryWidget, { buttonWidget: true }, Summaries),
|
|
11
|
+
React.createElement(ExportButton, null)))))));
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
argTypes: {
|
|
4
|
+
Summaries: {
|
|
5
|
+
table: {
|
|
6
|
+
disable: true;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
table: {
|
|
11
|
+
disable: true;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
component: ({ SideBarButton, Summaries, title, }: import("./hero").HeroProps) => JSX.Element;
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const HeroStory: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Summaries } from "./components/Summaries/summaries";
|
|
3
|
+
import { SummariesStory } from "./components/Summaries/summaries.stories";
|
|
4
|
+
import { Hero } from "./hero";
|
|
5
|
+
const meta = {
|
|
6
|
+
argTypes: {
|
|
7
|
+
Summaries: { table: { disable: true } },
|
|
8
|
+
title: { table: { disable: true } },
|
|
9
|
+
},
|
|
10
|
+
component: Hero,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: "fullscreen",
|
|
13
|
+
},
|
|
14
|
+
title: "Components/Hero/ExploreView",
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
export const HeroStory = {
|
|
18
|
+
args: {
|
|
19
|
+
Summaries: React.createElement(Summaries, { ...SummariesStory.args }),
|
|
20
|
+
title: "Data Explorer",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
buttonWidget: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const HeroLayout: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const Widgets: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: React.ElementType;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const SummaryWidget: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
} & Props, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { mediaDesktopSmallUp, mediaTabletUp, } from "../../../../styles/common/mixins/breakpoints";
|
|
3
|
+
export const HeroLayout = styled.div `
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: grid;
|
|
6
|
+
gap: 16px;
|
|
7
|
+
grid-template-columns: 1fr;
|
|
8
|
+
padding: 0 16px;
|
|
9
|
+
|
|
10
|
+
${mediaTabletUp} {
|
|
11
|
+
grid-template-columns: 1fr auto;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
export const Widgets = styled.div `
|
|
16
|
+
align-items: center;
|
|
17
|
+
display: flex;
|
|
18
|
+
height: 60px;
|
|
19
|
+
|
|
20
|
+
${mediaTabletUp} {
|
|
21
|
+
height: 40px;
|
|
22
|
+
justify-self: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
${mediaDesktopSmallUp} {
|
|
26
|
+
grid-column: 2;
|
|
27
|
+
justify-self: flex-end;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
export const SummaryWidget = styled.div `
|
|
31
|
+
align-items: center;
|
|
32
|
+
border: 1px solid ${({ theme }) => theme.palette.smoke.main};
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 0 8px;
|
|
36
|
+
flex: 1;
|
|
37
|
+
height: inherit;
|
|
38
|
+
padding: 12px 16px;
|
|
39
|
+
|
|
40
|
+
${mediaTabletUp} {
|
|
41
|
+
border-radius: ${({ buttonWidget }) => buttonWidget ? "4px 0 0 4px" : "4px"};
|
|
42
|
+
flex: none;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { composeStories } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import * as summaryStories from "../components/Summaries/stories/summaries.stories";
|
|
4
|
+
import { Hero } from "../hero";
|
|
5
|
+
const { Default: Summaries } = composeStories(summaryStories);
|
|
6
|
+
const meta = {
|
|
7
|
+
component: Hero,
|
|
8
|
+
parameters: { layout: "fullscreen" },
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
args: {
|
|
13
|
+
Summaries: React.createElement(Summaries, null),
|
|
14
|
+
title: "Data Explorer",
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|