@databiosphere/findable-ui 10.2.0 → 12.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/.github/workflows/run-checks.yml +13 -0
- package/lib/apis/azul/common/constants.d.ts +0 -4
- package/lib/apis/azul/common/constants.js +0 -4
- package/lib/apis/azul/common/entities.d.ts +5 -5
- package/lib/apis/azul/common/filterTransformer.d.ts +3 -3
- package/lib/apis/azul/common/filterTransformer.js +1 -1
- package/lib/common/analytics/analytics.d.ts +1 -1
- package/lib/common/analytics/entities.d.ts +2 -2
- package/lib/common/entities.d.ts +5 -5
- package/lib/components/ComponentCreator/ComponentCreator.d.ts +0 -1
- package/lib/components/Detail/components/AccessibilityBadge/accessibilityBadge.d.ts +0 -1
- package/lib/components/Detail/components/DetailViewTable/detailViewTable.d.ts +1 -1
- package/lib/components/Detail/components/Table/components/TableBody/tableBody.d.ts +1 -2
- package/lib/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -2
- package/lib/components/Detail/components/Table/components/TableRows/tableRows.d.ts +1 -2
- package/lib/components/Detail/components/Table/table.d.ts +1 -2
- package/lib/components/Detail/detail.stories.d.ts +4 -2
- package/lib/components/Error/error.d.ts +0 -1
- package/lib/components/Error/error.js +1 -1
- package/lib/components/Error/error.stories.d.ts +3 -3
- package/lib/components/Error/error.styles.d.ts +11 -12
- package/lib/components/ErrorBoundary/errorBoundary.d.ts +1 -1
- package/lib/components/Export/common/entities.d.ts +2 -2
- package/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm.styles.d.ts +1 -2
- package/lib/components/Export/components/ExportForm/common/entities.d.ts +2 -2
- package/lib/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.js +1 -1
- package/lib/components/Export/components/ExportForm/components/ExportManifestDownloadFormatForm/exportManifestDownloadFormatForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/components/ExportSpeciesForm/exportSpeciesForm.d.ts +0 -1
- package/lib/components/Export/components/ExportForm/exportForm.d.ts +3 -3
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +11 -40
- package/lib/components/Export/components/ExportMethod/exportMethod.stories.d.ts +4 -2
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.d.ts +3 -4
- package/lib/components/Export/components/ExportSummary/components/ExportCurrentQuery/exportCurrentQuery.d.ts +1 -2
- package/lib/components/Export/components/ExportSummary/components/ExportSelectedDataSummary/exportSelectedDataSummary.d.ts +2 -2
- package/lib/components/Export/components/ExportSummary/exportSummary.styles.d.ts +4 -5
- package/lib/components/Export/components/ExportToTerra/components/ExportToTerraForm/exportToTerraForm.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.d.ts +3 -4
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.d.ts +0 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.d.ts +8 -9
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestDownload/fileManifestDownload.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestSpreadsheet/fileManifestSpreadsheet.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.d.ts +6 -11
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadForm/manifestDownloadForm.d.ts +0 -1
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadReady/manifestDownloadReady.styles.d.ts +1 -1
- package/lib/components/Export/export.styles.d.ts +13 -14
- package/lib/components/Filter/common/entities.d.ts +3 -3
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.d.ts +0 -1
- package/lib/components/Filter/components/Filter/filter.stories.d.ts +4 -2
- package/lib/components/Filter/components/Filter/filter.styles.d.ts +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +4 -35
- package/lib/components/Filter/components/FilterList/filterList.styles.d.ts +4 -12
- package/lib/components/Filter/components/FilterMenu/filterMenu.d.ts +0 -1
- package/lib/components/Filter/components/FilterMenu/filterMenu.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterMenu/filterMenu.styles.d.ts +8 -41
- package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.d.ts +0 -1
- package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.d.ts +1 -1
- package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.styles.d.ts +2 -3
- package/lib/components/Filter/components/FilterTag/filterTag.d.ts +0 -1
- package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +4 -21
- package/lib/components/Filter/components/FilterTags/filterTags.d.ts +0 -1
- package/lib/components/Filter/components/FilterTags/filterTags.stories.d.ts +4 -2
- package/lib/components/Filter/components/FilterTags/filterTags.styles.d.ts +2 -3
- package/lib/components/Filter/components/Filters/filters.d.ts +0 -1
- package/lib/components/Filter/components/Filters/filters.stories.d.ts +3 -3
- package/lib/components/Filter/components/Filters/filters.styles.d.ts +4 -5
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +0 -1
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.styles.d.ts +2 -3
- package/lib/components/Filter/components/SearchAllFilters/common/constants.d.ts +2 -2
- package/lib/components/Filter/components/SearchAllFilters/common/entites.d.ts +2 -2
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.d.ts +2 -12
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.d.ts +1 -1
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.d.ts +3 -3
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.d.ts +0 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.d.ts +0 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.d.ts +1 -1
- package/lib/components/Filter/components/VariableSizeList/VariableSizeList.d.ts +1 -2
- package/lib/components/Head/head.d.ts +0 -1
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.d.ts +0 -1
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.js +20 -51
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.stories.d.ts +4 -2
- package/lib/components/Index/components/AzulFileDownload/azulFileDownload.styles.d.ts +1 -1
- package/lib/components/Index/components/AzulFileDownload/common/constants.d.ts +3 -0
- package/lib/components/Index/components/AzulFileDownload/common/constants.js +3 -0
- package/lib/components/Index/components/Cell/cell.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +1 -2
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +4 -2
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +3 -4
- package/lib/components/Index/components/Hero/hero.stories.d.ts +4 -2
- package/lib/components/Index/components/Hero/hero.styles.d.ts +6 -7
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -1
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +2 -3
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +1 -2
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +4 -2
- package/lib/components/Index/components/Tabs/tabs.d.ts +0 -1
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +1 -1
- package/lib/components/Index/index.stories.d.ts +3 -3
- package/lib/components/Index/index.styles.d.ts +2 -3
- package/lib/components/Layout/components/AppLayout/appLayout.styles.d.ts +2 -3
- package/lib/components/Layout/components/BackPage/backPageView.js +1 -1
- package/lib/components/Layout/components/BackPage/backPageView.stories.d.ts +4 -2
- package/lib/components/Layout/components/BackPage/backPageView.styles.d.ts +22 -23
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.d.ts +2 -1
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +3 -2
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +3 -3
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.d.ts +7 -15
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.js +3 -3
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.d.ts +6 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.js +5 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.d.ts +4 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.js +13 -0
- package/lib/components/Layout/components/ContentLayout/common/entities.d.ts +1 -1
- package/lib/components/Layout/components/ContentLayout/contentLayout.styles.d.ts +16 -17
- package/lib/components/Layout/components/Floating/floating.d.ts +0 -1
- package/lib/components/Layout/components/Footer/footer.stories.d.ts +3 -3
- package/lib/components/Layout/components/Footer/footer.styles.d.ts +6 -6
- package/lib/components/Layout/components/Header/common/entities.d.ts +3 -2
- package/lib/components/Layout/components/Header/common/utils.d.ts +9 -1
- package/lib/components/Layout/components/Header/common/utils.js +16 -1
- package/lib/components/Layout/components/Header/components/Announcements/announcements.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/actions.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +4 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +16 -79
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +4 -35
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Socials/socials.styles.d.ts +1 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +4 -35
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.d.ts +6 -6
- package/lib/components/Layout/components/Header/components/Content/components/Logo/logo.d.ts +0 -1
- package/lib/components/Layout/components/Header/components/Content/components/Logo/logo.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.d.ts +4 -5
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.js +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +7 -42
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +6 -17
- package/lib/components/Layout/components/Header/components/Content/components/Socials/socials.styles.d.ts +1 -2
- package/lib/components/Layout/components/Header/components/Content/content.styles.d.ts +2 -3
- package/lib/components/Layout/components/Header/header.stories.d.ts +3 -3
- package/lib/components/Layout/components/Header/header.styles.d.ts +8 -8
- package/lib/components/Layout/components/Header/hooks/useHeaderVisibility.js +2 -1
- package/lib/components/Layout/components/Main/main.styles.d.ts +5 -6
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.d.ts +0 -1
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.js +1 -1
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.d.ts +6 -7
- package/lib/components/Layout/components/Nav/nav.stories.d.ts +3 -3
- package/lib/components/Layout/components/Nav/nav.styles.d.ts +6 -14
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.d.ts +0 -1
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +4 -32
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +9 -104
- package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.d.ts +3 -4
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.d.ts +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.d.ts +0 -1
- package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.stories.d.ts +4 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.d.ts +2 -3
- package/lib/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.d.ts +2 -3
- package/lib/components/Layout/components/Sidebar/sidebar.stories.d.ts +3 -3
- package/lib/components/Layout/components/Sidebar/sidebar.styles.d.ts +2 -3
- package/lib/components/Links/common/entities.d.ts +3 -4
- package/lib/components/Links/components/Link/components/ExploreViewLink/exploreViewLink.d.ts +0 -1
- package/lib/components/Links/links.stories.d.ts +4 -2
- package/lib/components/Loading/loading.d.ts +1 -2
- package/lib/components/Loading/loading.stories.d.ts +4 -2
- package/lib/components/Loading/loading.styles.d.ts +3 -4
- package/lib/components/Login/login.stories.d.ts +3 -3
- package/lib/components/Login/login.styles.d.ts +16 -17
- package/lib/components/NoResults/noResults.styles.d.ts +6 -7
- package/lib/components/Project/common/entities.d.ts +3 -3
- package/lib/components/Project/components/Citation/citation.d.ts +0 -1
- package/lib/components/Project/components/Citation/citation.stories.d.ts +1 -1
- package/lib/components/Project/components/Citation/citation.styles.d.ts +4 -5
- package/lib/components/Project/components/CollaboratingOrganizations/collaboratingOrganizations.d.ts +0 -1
- package/lib/components/Project/components/CollaboratingOrganizations/collaboratingOrganizations.stories.d.ts +4 -2
- package/lib/components/Project/components/Contacts/contacts.d.ts +0 -1
- package/lib/components/Project/components/Contacts/contacts.stories.d.ts +4 -2
- package/lib/components/Project/components/Contributors/contributors.d.ts +0 -1
- package/lib/components/Project/components/Contributors/contributors.stories.d.ts +4 -2
- package/lib/components/Project/components/DataCurators/dataCurators.d.ts +0 -1
- package/lib/components/Project/components/DataCurators/dataCurators.stories.d.ts +4 -2
- package/lib/components/Project/components/DataReleasePolicy/dataReleasePolicy.d.ts +0 -1
- package/lib/components/Project/components/DataReleasePolicy/dataReleasePolicy.stories.d.ts +4 -2
- package/lib/components/Project/components/Description/description.d.ts +0 -1
- package/lib/components/Project/components/Description/description.stories.d.ts +4 -2
- package/lib/components/Project/components/Details/details.d.ts +0 -1
- package/lib/components/Project/components/Details/details.stories.d.ts +4 -2
- package/lib/components/Project/components/Publications/publications.d.ts +0 -1
- package/lib/components/Project/components/Publications/publications.stories.d.ts +4 -2
- package/lib/components/Project/components/Sup/sup.styles.d.ts +2 -3
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.d.ts +0 -1
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.js +1 -1
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.stories.d.ts +4 -2
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.d.ts +6 -7
- package/lib/components/Redirect/redirect.d.ts +0 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +5 -33
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/constants.js +2 -2
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/entities.d.ts +4 -4
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/common/utils.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.d.ts +5 -6
- package/lib/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.js +1 -1
- package/lib/components/Support/components/SupportRequest/supportRequest.d.ts +0 -1
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.d.ts +2 -3
- package/lib/components/Table/common/gridTable.styles.d.ts +4 -12
- package/lib/components/Table/common/utils.d.ts +2 -2
- package/lib/components/Table/common/utils.js +17 -11
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +2 -3
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +4 -2
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +1 -1
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.d.ts +1 -2
- package/lib/components/Table/components/Pagination/pagination.d.ts +0 -1
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +4 -2
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +2 -3
- package/lib/components/Table/components/PaginationSummary/paginationSummary.d.ts +0 -1
- package/lib/components/Table/components/TableBody/tableBody.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.d.ts +7 -8
- package/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.d.ts +0 -1
- package/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.styles.d.ts +2 -3
- package/lib/components/Table/components/TableCell/components/NTagCell/nTagCell.d.ts +1 -2
- package/lib/components/Table/components/TableCell/components/RowSelectionCell/rowSelectionCell.d.ts +1 -2
- package/lib/components/Table/components/TableHead/components/HeadSelectionCell/headSelectionCell.d.ts +1 -2
- package/lib/components/Table/components/TableHead/tableHead.d.ts +1 -2
- package/lib/components/Table/components/TableRow/tableRow.styles.d.ts +4 -11
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -2
- package/lib/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.d.ts +0 -1
- package/lib/components/Table/components/TableRows/tableRows.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.d.ts +1 -1
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.d.ts +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/components/RowPreview/rowPreview.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowSelection/components/DropdownMenu/dropdownMenu.d.ts +0 -1
- package/lib/components/Table/components/TableToolbar/components/RowSelection/components/DropdownMenu/dropdownMenu.styles.d.ts +1 -1
- package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.styles.d.ts +2 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.d.ts +1 -2
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.d.ts +3 -2
- package/lib/components/Table/features/RowPreview/entities.d.ts +1 -1
- package/lib/components/Table/features/entities.d.ts +5 -5
- package/lib/components/Table/table.d.ts +2 -3
- package/lib/components/Table/table.js +4 -4
- package/lib/components/Table/table.styles.d.ts +4 -12
- package/lib/components/TableCreator/tableCreator.d.ts +2 -3
- package/lib/components/TableCreator/tableCreator.styles.d.ts +2 -3
- package/lib/components/TempError/components/errorBox.d.ts +0 -1
- package/lib/components/TempError/tempError.d.ts +0 -1
- package/lib/components/common/Accordion/accordion.js +1 -1
- package/lib/components/common/Accordion/accordion.stories.d.ts +3 -3
- package/lib/components/common/Alert/alert.js +1 -1
- package/lib/components/common/Alert/alert.stories.d.ts +3 -3
- package/lib/components/common/Alert/alert.styles.d.ts +2 -2
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +2 -3
- package/lib/components/common/AnchorLink/anchorLink.d.ts +0 -1
- package/lib/components/common/AnchorLink/anchorLink.styles.d.ts +23 -25
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +1 -1
- package/lib/components/common/Banner/components/CookieBanner/cookieBanner.styles.d.ts +1 -2
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +1 -1
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +1 -1
- package/lib/components/common/Breadcrumbs/breadcrumbs.js +1 -1
- package/lib/components/common/Breadcrumbs/breadcrumbs.stories.d.ts +6 -4
- package/lib/components/common/Button/components/ButtonOutline/buttonOutline.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonText/buttonText.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonText/buttonText.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonTextPrimary/buttonTextPrimary.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonTextPrimary/buttonTextPrimary.styles.d.ts +1 -2
- package/lib/components/common/Button/components/ButtonTextUnderline/buttonTextUnderline.d.ts +0 -1
- package/lib/components/common/Button/components/ButtonTextUnderline/buttonTextUnderline.styles.d.ts +1 -2
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.d.ts +3 -1
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.js +2 -2
- package/lib/components/common/Button/components/CallToActionButton/callToActionButton.stories.d.ts +5 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.d.ts +0 -1
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +1 -2
- package/lib/components/common/Button/components/FileDownloadButton/fileDownloadButton.d.ts +0 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.d.ts +0 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.stories.d.ts +1 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.styles.d.ts +2 -1
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +1 -2
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +3 -4
- package/lib/components/common/Button/components/NavigationButton/navigationButton.d.ts +0 -1
- package/lib/components/common/Button/components/NavigationButton/navigationButton.styles.d.ts +1 -2
- package/lib/components/common/Card/card.stories.d.ts +3 -3
- package/lib/components/common/Card/card.styles.d.ts +5 -6
- package/lib/components/common/Card/components/CardAction/cardAction.d.ts +0 -1
- package/lib/components/common/Card/components/CardActions/cardActions.styles.d.ts +2 -3
- package/lib/components/common/Card/components/CardMedia/cardMedia.d.ts +0 -1
- package/lib/components/common/Card/components/CardMedia/cardMedia.styles.d.ts +2 -3
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +3 -4
- package/lib/components/common/Code/code.d.ts +0 -1
- package/lib/components/common/Code/code.stories.d.ts +4 -3
- package/lib/components/common/Code/code.styles.d.ts +2 -3
- package/lib/components/common/CopyToClipboard/copyToClipboard.d.ts +0 -1
- package/lib/components/common/CopyToClipboard/copyToClipboard.stories.d.ts +3 -3
- package/lib/components/common/CustomIcon/components/AddIcon/addIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/AddLinkIcon/addLinkIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/AlertIcon/alertIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/BackArrowIcon/backArrowIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/CheckedIcon/checkedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ContactSupportIcon/contactSupportIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ContentCopyIcon/contentCopyIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/DiscourseIcon/discourseIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/DownloadIcon/downloadIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/EmailReadIcon/emailReadIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ErrorIcon/errorIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FacebookIcon/facebookIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FeedbackIcon/feedbackIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FormStatusCompletedIcon/formStatusCompletedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/FormStatusIncompleteIcon/formStatusIncompleteIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/ForwardArrowIcon/forwardArrowIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/GitHubIcon/gitHubIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/GoogleIcon/googleIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/HelpIcon/helpIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InProgressIcon/inProgressIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/IndeterminateIcon/indeterminateIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InfoIcon/infoIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/InventoryIcon/inventoryIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/LinkedInIcon/linkedInIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/LoadingIcon/loadingIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/OpenInNewIcon/openInNewIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RadioCheckedIcon/radioCheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RadioUncheckedIcon/radioUncheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/RemoveIcon/removeIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SearchIcon/searchIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SearchOffIcon/searchOffIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/Segment/segment.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SlackIcon/slackIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SouthIcon/southIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/SuccessIcon/successIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UnLinkIcon/unLinkIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UncheckedErrorIcon/uncheckedErrorIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UncheckedIcon/uncheckedIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/UnfoldMoreIcon/unfoldMoreIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/WarningIcon/warningIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/XIcon/xIcon.d.ts +0 -1
- package/lib/components/common/CustomIcon/components/YouTubeIcon/youTubeIcon.d.ts +0 -1
- package/lib/components/common/Dialog/components/DialogTitle/dialogTitle.js +1 -1
- package/lib/components/common/Dot/dot.d.ts +0 -1
- package/lib/components/common/Dot/dot.styles.d.ts +2 -3
- package/lib/components/common/Drawer/components/DrawerTitle/drawerTitle.styles.d.ts +2 -3
- package/lib/components/common/Drawer/components/drawer.styles.d.ts +2 -3
- package/lib/components/common/DropdownMenu/common/entities.d.ts +2 -2
- package/lib/components/common/DropdownMenu/dropdownMenu.styles.d.ts +1 -1
- package/lib/components/common/EllipsisContent/ellipsisContent.styles.d.ts +3 -4
- package/lib/components/common/Form/components/Input/input.d.ts +0 -1
- package/lib/components/common/Form/components/Input/input.styles.d.ts +4 -19
- package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.d.ts +0 -1
- package/lib/components/common/Form/components/Select/select.d.ts +2 -2
- package/lib/components/common/Form/components/Select/select.styles.d.ts +4 -19
- package/lib/components/common/Form/components/UploadFile/uploadFile.d.ts +0 -1
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +6 -39
- package/lib/components/common/IconBadge/iconBadge.d.ts +1 -1
- package/lib/components/common/IconBadge/iconBadge.styles.d.ts +2 -3
- package/lib/components/common/IconButton/iconButton.styles.d.ts +4 -30
- package/lib/components/common/Input/input.styles.d.ts +5 -20
- package/lib/components/common/KeyValuePairs/keyValuePairs.d.ts +5 -5
- package/lib/components/common/MDXMarkdown/components/Section/mdxSection.styles.d.ts +2 -3
- package/lib/components/common/Markdown/markdown.d.ts +3 -2
- package/lib/components/common/Markdown/markdown.js +3 -2
- package/lib/components/common/Paper/paper.d.ts +1 -1
- package/lib/components/common/Paper/paper.styles.d.ts +5 -6
- package/lib/components/common/Paper/paper.styles.js +1 -1
- package/lib/components/common/Progress/components/CircularProgress/circularProgress.styles.d.ts +2 -3
- package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.d.ts +0 -1
- package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.d.ts +1 -1
- package/lib/components/common/RadioGroup/radioGroup.d.ts +3 -4
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +8 -40
- package/lib/components/common/Section/components/SectionDetailsEmpty/sectionDetailsEmpty.d.ts +0 -1
- package/lib/components/common/Section/components/SectionTitle/sectionTitle.d.ts +0 -1
- package/lib/components/common/Section/components/SectionTitle/sectionTitle.stories.d.ts +4 -2
- package/lib/components/common/Section/section.styles.d.ts +17 -17
- package/lib/components/common/Socials/socials.stories.d.ts +3 -4
- package/lib/components/common/Socials/socials.styles.d.ts +4 -4
- package/lib/components/common/Stack/components/Divider/divider.styles.d.ts +2 -11
- package/lib/components/common/StaticImage/staticImage.d.ts +1 -2
- package/lib/components/common/StaticImage/staticImage.stories.d.ts +4 -2
- package/lib/components/common/StatusBadge/statusBadge.d.ts +1 -1
- package/lib/components/common/StatusBadge/statusBadge.stories.d.ts +3 -4
- package/lib/components/common/StatusIcon/statusIcon.d.ts +1 -1
- package/lib/components/common/StatusIcon/statusIcon.stories.d.ts +4 -2
- package/lib/components/common/StatusIcon/statusIcon.styles.d.ts +2 -3
- package/lib/components/common/Tabs/tabs.d.ts +3 -3
- package/lib/components/common/Tabs/tabs.styles.d.ts +6 -34
- package/lib/components/common/Tag/tag.stories.d.ts +4 -2
- package/lib/components/common/Tag/tag.styles.d.ts +2 -2
- package/lib/components/common/Title/title.d.ts +1 -1
- package/lib/components/common/Title/title.styles.d.ts +2 -1
- package/lib/components/common/ToggleButtonGroup/toggleButtonGroup.d.ts +2 -3
- package/lib/components/common/ToggleButtonGroup/toggleButtonGroup.stories.d.ts +4 -2
- package/lib/components/common/Typography/common/entities.d.ts +1 -1
- package/lib/config/entities.d.ts +16 -16
- package/lib/entity/api/service.d.ts +3 -2
- package/lib/entity/apicf/service.d.ts +1 -1
- package/lib/entity/common/service.d.ts +2 -2
- package/lib/entity/service/model.d.ts +1 -1
- package/lib/hooks/useAsync.d.ts +1 -1
- package/lib/hooks/useAuthentication/common/entities.d.ts +1 -1
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +3 -3
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +2 -2
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +2 -2
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +2 -2
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +1 -1
- package/lib/hooks/useBreakpoint.d.ts +1 -1
- package/lib/hooks/useBreakpointHelper.d.ts +2 -2
- package/lib/hooks/useCategoryFilter.d.ts +2 -2
- package/lib/hooks/useCurrentBreakpoint.d.ts +1 -1
- package/lib/hooks/useEntityService.d.ts +1 -1
- package/lib/hooks/useExploreMode.d.ts +1 -1
- package/lib/hooks/useExportToTerraResponseURL.d.ts +1 -1
- package/lib/hooks/useFetchEntity.d.ts +1 -1
- package/lib/hooks/useFileLocation.d.ts +7 -1
- package/lib/hooks/useFileLocation.js +13 -14
- package/lib/hooks/useFileManifest/common/entities.d.ts +4 -4
- package/lib/hooks/useFileManifest/useFileManifest.d.ts +1 -1
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +1 -1
- package/lib/hooks/useRequestFileLocation.d.ts +2 -2
- package/lib/hooks/useResizeObserver.d.ts +1 -1
- package/lib/hooks/useScroll.d.ts +2 -2
- package/lib/providers/authentication.d.ts +2 -2
- package/lib/providers/config.d.ts +1 -1
- package/lib/providers/exploreState/entities.d.ts +4 -4
- package/lib/providers/exploreState/initializer/utils.js +1 -1
- package/lib/providers/exploreState/payloads/entities.d.ts +6 -6
- package/lib/providers/exploreState.d.ts +20 -20
- package/lib/providers/fileManifestState.d.ts +12 -12
- package/lib/providers/layoutState.d.ts +4 -4
- package/lib/theme/common/breakpoints.d.ts +4 -4
- package/lib/theme/common/components.js +8 -8
- package/lib/theme/common/palette.d.ts +33 -127
- package/lib/theme/common/palette.js +57 -69
- package/lib/types/error.d.ts +1 -1
- package/lib/utils/tests.d.ts +12 -0
- package/lib/utils/tests.js +17 -0
- package/lib/viewModelBuilders/common/entities.d.ts +1 -1
- package/lib/views/ContentView/contentView.stories.d.ts +3 -3
- package/lib/views/EntityDetailView/entityDetailView.d.ts +0 -1
- package/lib/views/ExploreView/exploreView.d.ts +0 -1
- package/lib/views/ExportMethodView/exportMethodView.d.ts +0 -1
- package/lib/views/ExportView/exportView.d.ts +1 -2
- package/lib/views/LoginView/loginView.d.ts +0 -1
- package/package.json +16 -14
- package/src/apis/azul/common/constants.ts +0 -5
- package/src/apis/azul/common/filterTransformer.ts +1 -1
- package/src/common/analytics/analytics.ts +1 -1
- package/src/common/analytics/readme-analytics.md +15 -0
- package/src/components/Detail/components/Table/table.tsx +1 -1
- package/src/components/Error/error.tsx +1 -1
- package/src/components/Export/components/DownloadCurlCommand/downloadCurlCommand.tsx +1 -1
- package/src/components/Export/components/ExportForm/components/ExportFileSummaryForm/exportFileSummaryForm.tsx +1 -1
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.tsx +1 -1
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.tsx +1 -1
- package/src/components/Filter/components/VariableSizeList/VariableSizeList.tsx +1 -1
- package/src/components/Index/components/AzulFileDownload/azulFileDownload.tsx +44 -63
- package/src/components/Index/components/AzulFileDownload/common/constants.ts +4 -0
- package/src/components/Index/components/NTag/components/Tooltip/tooltip.tsx +1 -1
- package/src/components/Layout/components/BackPage/backPageView.tsx +1 -1
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts +3 -3
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +5 -1
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts +14 -0
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.tsx +13 -0
- package/src/components/Layout/components/Header/common/entities.ts +1 -0
- package/src/components/Layout/components/Header/common/utils.ts +23 -1
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.tsx +1 -1
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.tsx +1 -1
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.tsx +2 -2
- package/src/components/Layout/components/Header/hooks/useHeaderVisibility.ts +3 -1
- package/src/components/Layout/components/Nav/components/NavBarHero/navBarHero.tsx +2 -2
- package/src/components/Layout/components/Outline/outline.styles.ts +1 -1
- package/src/components/Loading/loading.styles.ts +1 -1
- package/src/components/Loading/loading.tsx +1 -1
- package/src/components/Project/components/SupplementaryLinks/supplementaryLinks.tsx +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/common/constants.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/common/utils.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.tsx +1 -1
- package/src/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.tsx +1 -1
- package/src/components/Table/common/utils.ts +17 -15
- package/src/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip.tsx +1 -1
- package/src/components/common/Accordion/accordion.tsx +2 -2
- package/src/components/common/Alert/alert.tsx +1 -1
- package/src/components/common/Banner/components/CookieBanner/cookieBanner.tsx +1 -1
- package/src/components/common/Banner/components/DismissibleBanner/dismissibleBanner.tsx +1 -1
- package/src/components/common/Breadcrumbs/breadcrumbs.tsx +1 -1
- package/src/components/common/Button/components/CallToActionButton/callToActionButton.tsx +5 -0
- package/src/components/common/Code/code.tsx +1 -1
- package/src/components/common/CopyToClipboard/copyToClipboard.tsx +1 -1
- package/src/components/common/Dialog/components/DialogTitle/dialogTitle.tsx +1 -1
- package/src/components/common/Form/components/Input/input.tsx +1 -1
- package/src/components/common/Form/components/Select/select.tsx +2 -2
- package/src/components/common/IconBadge/iconBadge.styles.ts +1 -1
- package/src/components/common/Markdown/markdown.tsx +8 -2
- package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +1 -1
- package/src/components/common/Stack/components/Divider/divider.styles.tsx +1 -1
- package/src/entity/api/service.ts +1 -1
- package/src/hooks/useCurrentBreakpoint.ts +1 -1
- package/src/hooks/useEntityList.ts +1 -1
- package/src/hooks/useEntityService.ts +1 -1
- package/src/hooks/useFileLocation.ts +16 -14
- package/src/hooks/useFileManifest/useRequestFileManifest.ts +1 -1
- package/src/hooks/useRequestFileLocation.ts +1 -1
- package/src/hooks/useResizeObserver.ts +1 -1
- package/src/hooks/useWindowResize.ts +1 -1
- package/src/theme/common/palette.ts +57 -57
- package/src/utils/tests.ts +19 -0
- package/tests/azulFileDownload.test.tsx +86 -0
- package/tests/useFileLocation.test.ts +32 -0
- package/tsconfig.json +4 -1
|
@@ -17,6 +17,7 @@ import { SubTitle } from "./components/SubTitle/subTitle";
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export interface BackPageHeroProps {
|
|
20
|
+
actions?: ReactNode;
|
|
20
21
|
breadcrumbs?: Breadcrumb[];
|
|
21
22
|
callToAction?: CallToAction;
|
|
22
23
|
children?: ReactNode;
|
|
@@ -25,13 +26,15 @@ export interface BackPageHeroProps {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export const BackPageHero = ({
|
|
29
|
+
actions,
|
|
28
30
|
breadcrumbs,
|
|
29
31
|
callToAction,
|
|
30
32
|
children,
|
|
31
33
|
subTitle,
|
|
32
34
|
title,
|
|
33
35
|
}: BackPageHeroProps): JSX.Element => {
|
|
34
|
-
const HeroHeadline =
|
|
36
|
+
const HeroHeadline =
|
|
37
|
+
actions || callToAction ? BackPageHeroHeadline : Fragment;
|
|
35
38
|
return (
|
|
36
39
|
<>
|
|
37
40
|
{(breadcrumbs || title) && (
|
|
@@ -41,6 +44,7 @@ export const BackPageHero = ({
|
|
|
41
44
|
{title && <Title title={title} />}
|
|
42
45
|
<SubTitle subTitle={subTitle} />
|
|
43
46
|
</HeroHeader>
|
|
47
|
+
{actions}
|
|
44
48
|
{callToAction && <CallToActionButton callToAction={callToAction} />}
|
|
45
49
|
</HeroHeadline>
|
|
46
50
|
)}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { mediaTabletUp } from "../../../../../../../../styles/common/mixins/breakpoints";
|
|
3
|
+
|
|
4
|
+
export const BackPageHeroActions = styled.div`
|
|
5
|
+
align-items: center;
|
|
6
|
+
align-self: center;
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
justify-self: flex-start;
|
|
10
|
+
|
|
11
|
+
${mediaTabletUp} {
|
|
12
|
+
justify-self: flex-end;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { BackPageHeroActions } from "./actions.styles";
|
|
3
|
+
|
|
4
|
+
export interface ActionsProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const Actions = ({ children, className }: ActionsProps): JSX.Element => {
|
|
10
|
+
return (
|
|
11
|
+
<BackPageHeroActions className={className}>{children}</BackPageHeroActions>
|
|
12
|
+
);
|
|
13
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Breakpoint } from "@mui/material";
|
|
2
|
+
import { UseBreakpoint } from "../../../../../hooks/useBreakpoint";
|
|
2
3
|
import { isClientSideNavigation } from "../../../../Links/common/utils";
|
|
3
4
|
import { NavLinkItem } from "../components/Content/components/Navigation/navigation";
|
|
4
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Navigation,
|
|
7
|
+
SELECTED_MATCH,
|
|
8
|
+
SelectedMatch,
|
|
9
|
+
SocialMedia,
|
|
10
|
+
} from "./entities";
|
|
5
11
|
|
|
6
12
|
/**
|
|
7
13
|
* Adds to the set of selected patterns, for the navigation link, at the current breakpoint.
|
|
@@ -141,6 +147,22 @@ function isLinkVisible(
|
|
|
141
147
|
return navLinkItem.visible[breakpoint] !== false;
|
|
142
148
|
}
|
|
143
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Returns true if the social media is visible at the current breakpoint.
|
|
152
|
+
* @param bp - Breakpoint.
|
|
153
|
+
* @param socialMedia - Social media.
|
|
154
|
+
* @returns true.
|
|
155
|
+
*/
|
|
156
|
+
export function isSocialsVisible(
|
|
157
|
+
bp: Pick<UseBreakpoint, "breakpoint" | "lgUp">,
|
|
158
|
+
socialMedia?: SocialMedia
|
|
159
|
+
): boolean {
|
|
160
|
+
if (!socialMedia) return false;
|
|
161
|
+
if (!bp.breakpoint) return false;
|
|
162
|
+
if (!socialMedia.visible) return bp.lgUp;
|
|
163
|
+
return socialMedia.visible[bp.breakpoint] !== false;
|
|
164
|
+
}
|
|
165
|
+
|
|
144
166
|
/**
|
|
145
167
|
* Returns the navigation link with the selected matches, for the current breakpoint.
|
|
146
168
|
* @param navLinkItem - Navigation link.
|
|
@@ -2,8 +2,8 @@ import { MenuItem } from "@mui/material";
|
|
|
2
2
|
import React, { MouseEvent, useState } from "react";
|
|
3
3
|
import { UserProfile } from "../../../../../../../../../../../../hooks/useAuthentication/useFetchGoogleProfile";
|
|
4
4
|
import {
|
|
5
|
-
AuthenticationMenu as Menu,
|
|
6
5
|
Avatar,
|
|
6
|
+
AuthenticationMenu as Menu,
|
|
7
7
|
UserIcon,
|
|
8
8
|
UserNames,
|
|
9
9
|
UserSummary,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import MenuRoundedIcon from "@mui/icons-material/MenuRounded";
|
|
2
|
-
import { Dialog as MDialog
|
|
2
|
+
import { Fade, IconButton, Dialog as MDialog } from "@mui/material";
|
|
3
3
|
import React, { CSSProperties, forwardRef, Fragment, useEffect } from "react";
|
|
4
4
|
import { getMenuNavigationLinks } from "../../../../../../common/utils";
|
|
5
5
|
import { HeaderProps } from "../../../../../../header";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
|
|
2
2
|
import {
|
|
3
|
-
ClickAwayListener as MClickAwayListener,
|
|
4
3
|
Grow,
|
|
4
|
+
ClickAwayListener as MClickAwayListener,
|
|
5
5
|
MenuList as MMenuList,
|
|
6
6
|
Paper as MPaper,
|
|
7
7
|
PopperProps as MPopperProps,
|
|
@@ -46,7 +46,7 @@ export const NavigationMenu = ({
|
|
|
46
46
|
const MenuItem = isSubMenu ? StyledMenuItem : Fragment;
|
|
47
47
|
|
|
48
48
|
useEffect(() => {
|
|
49
|
-
return () => {
|
|
49
|
+
return (): void => {
|
|
50
50
|
if (isSubMenu || !open) return;
|
|
51
51
|
onDisableScrollLock();
|
|
52
52
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useBreakpoint } from "../../../../../hooks/useBreakpoint";
|
|
2
|
+
import { isSocialsVisible } from "../common/utils";
|
|
2
3
|
import { HeaderProps } from "../header";
|
|
3
4
|
|
|
4
5
|
export interface UseHeaderVisibility {
|
|
@@ -53,7 +54,8 @@ export const useHeaderVisibility = (
|
|
|
53
54
|
const isNavigationIn = smUp;
|
|
54
55
|
const isMenuIn = hasMenu;
|
|
55
56
|
const isSloganIn = hasSlogan && mdUp;
|
|
56
|
-
const isSocialsIn =
|
|
57
|
+
const isSocialsIn =
|
|
58
|
+
hasSocials && isSocialsVisible({ breakpoint, lgUp }, socialMedia);
|
|
57
59
|
// Determines navigation visibility.
|
|
58
60
|
const isCenterNavigationIn = isNavigationIn && hasNavItemsC;
|
|
59
61
|
const isLeftNavigationIn = isNavigationIn && hasNavItemsL;
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
StaticImageProps,
|
|
6
6
|
} from "../../../../../common/StaticImage/staticImage";
|
|
7
7
|
import {
|
|
8
|
-
HeroLogo as Logo,
|
|
9
|
-
HeroText,
|
|
10
8
|
NavBarHero as Hero,
|
|
9
|
+
HeroText,
|
|
10
|
+
HeroLogo as Logo,
|
|
11
11
|
} from "./navBarHero.styles";
|
|
12
12
|
|
|
13
13
|
export interface NavBarHeroProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import { Tab as MTab,
|
|
3
|
+
import { Tab as MTab, Tabs as MTabs, TabProps } from "@mui/material";
|
|
4
4
|
import { smokeMain } from "../../../../styles/common/mixins/colors";
|
|
5
5
|
import {
|
|
6
6
|
textBody500,
|
|
@@ -2,7 +2,7 @@ import { css } from "@emotion/react";
|
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { TABLET } from "../../theme/common/breakpoints";
|
|
4
4
|
import { Paper, PAPER_PANEL_STYLE } from "../common/Paper/paper";
|
|
5
|
-
import {
|
|
5
|
+
import { LOADING_PANEL_STYLE, LoadingPanelStyle } from "./loading";
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
panelStyle: LoadingPanelStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fade, SvgIconProps, Typography } from "@mui/material";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { LoadingIcon } from "../common/CustomIcon/components/LoadingIcon/loadingIcon";
|
|
4
|
-
import {
|
|
4
|
+
import { PAPER_PANEL_STYLE, PaperPanelStyle } from "../common/Paper/paper";
|
|
5
5
|
import { LoadingPaper, LoadingPositioner } from "./loading.styles";
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -7,8 +7,8 @@ import { ANCHOR_TARGET } from "../../../Links/common/entities";
|
|
|
7
7
|
import { Link } from "../../../Links/components/Link/link";
|
|
8
8
|
import { SupplementaryLink } from "../../common/entities";
|
|
9
9
|
import {
|
|
10
|
-
Marker,
|
|
11
10
|
SupplementaryLink as EllipsisLink,
|
|
11
|
+
Marker,
|
|
12
12
|
SupplementaryList,
|
|
13
13
|
} from "./supplementaryLinks.styles";
|
|
14
14
|
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "../../../../../../theme/common/typography";
|
|
7
7
|
import { EmailReadIcon } from "../../../../../common/CustomIcon/components/EmailReadIcon/emailReadIcon";
|
|
8
8
|
import {
|
|
9
|
-
IconBadge,
|
|
10
9
|
ICON_BADGE_COLOR,
|
|
10
|
+
IconBadge,
|
|
11
11
|
} from "../../../../../common/IconBadge/iconBadge";
|
|
12
12
|
import {
|
|
13
13
|
Section,
|
|
@@ -21,7 +21,8 @@ import {
|
|
|
21
21
|
GridTrackMinMax,
|
|
22
22
|
GridTrackSize,
|
|
23
23
|
} from "../../../config/entities";
|
|
24
|
-
import {
|
|
24
|
+
import { EXPLORE_MODE, ExploreMode } from "../../../hooks/useExploreMode";
|
|
25
|
+
import { ACCESSOR_KEYS } from "../../TableCreator/common/constants";
|
|
25
26
|
import { CheckboxMenuListItem } from "../components/CheckboxMenu/checkboxMenu";
|
|
26
27
|
|
|
27
28
|
/**
|
|
@@ -146,8 +147,8 @@ export function generateDownloadBlob<T extends RowData>(
|
|
|
146
147
|
if (rows.length === 0) {
|
|
147
148
|
return;
|
|
148
149
|
}
|
|
149
|
-
const tableHeaders =
|
|
150
|
-
const tableData =
|
|
150
|
+
const tableHeaders = getHeadersTableData(rows);
|
|
151
|
+
const tableData = getRowsTableData(rows);
|
|
151
152
|
const tsv = formatDataToTSV([tableHeaders, ...tableData]);
|
|
152
153
|
return new Blob([tsv], { type: "text/tab-separated-values" });
|
|
153
154
|
}
|
|
@@ -338,28 +339,29 @@ export function getTableStatePagination(
|
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
/**
|
|
341
|
-
* Returns the list of
|
|
342
|
+
* Returns the list of table headers, excluding "select" column.
|
|
342
343
|
* @param rows - Table rows.
|
|
343
|
-
* @returns list of
|
|
344
|
+
* @returns list of headers.
|
|
344
345
|
*/
|
|
345
|
-
function
|
|
346
|
-
rows
|
|
347
|
-
): TableData[] {
|
|
346
|
+
function getHeadersTableData<T extends RowData>(rows: Row<T>[]): TableData[] {
|
|
347
|
+
console.log(rows[0].getAllCells());
|
|
348
348
|
return rows[0]
|
|
349
|
-
.
|
|
349
|
+
.getAllCells()
|
|
350
|
+
.filter((cell) => cell.column.id !== ACCESSOR_KEYS.SELECT)
|
|
350
351
|
.map((cell) => cell.column.columnDef.header as TableData);
|
|
351
352
|
}
|
|
352
353
|
|
|
353
354
|
/**
|
|
354
|
-
* Returns the list of
|
|
355
|
+
* Returns the list of table data, excluding "select" column.
|
|
355
356
|
* @param rows - Table rows.
|
|
356
|
-
* @returns list of
|
|
357
|
+
* @returns list of data.
|
|
357
358
|
*/
|
|
358
|
-
function
|
|
359
|
-
rows: Row<T>[]
|
|
360
|
-
): TableData[][] {
|
|
359
|
+
function getRowsTableData<T extends RowData>(rows: Row<T>[]): TableData[][] {
|
|
361
360
|
return rows.map((row) =>
|
|
362
|
-
row
|
|
361
|
+
row
|
|
362
|
+
.getAllCells()
|
|
363
|
+
.filter((cell) => cell.column.id !== ACCESSOR_KEYS.SELECT)
|
|
364
|
+
.map((cell) => cell.getValue() as TableData)
|
|
363
365
|
);
|
|
364
366
|
}
|
|
365
367
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Accordion as MAccordion,
|
|
3
2
|
AccordionDetails,
|
|
4
|
-
AccordionProps as MAccordionProps,
|
|
5
3
|
AccordionSummary,
|
|
4
|
+
Accordion as MAccordion,
|
|
5
|
+
AccordionProps as MAccordionProps,
|
|
6
6
|
Typography,
|
|
7
7
|
} from "@mui/material";
|
|
8
8
|
import React, { ReactNode, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertProps as MAlertProps
|
|
1
|
+
import { ButtonProps, AlertProps as MAlertProps } from "@mui/material";
|
|
2
2
|
import React, { forwardRef, Fragment, ReactNode } from "react";
|
|
3
3
|
import { FLAG } from "../../../../../hooks/useFeatureFlag/common/entities";
|
|
4
4
|
import { setLocalStorage } from "../../../../../hooks/useLocalStorage/common/utils";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonProps } from "@mui/material";
|
|
1
2
|
import NLink from "next/link";
|
|
2
3
|
import React, { ElementType } from "react";
|
|
3
4
|
import {
|
|
@@ -15,6 +16,7 @@ export interface CallToAction {
|
|
|
15
16
|
|
|
16
17
|
export interface CallToActionButtonProps {
|
|
17
18
|
ButtonElType?: ElementType;
|
|
19
|
+
buttonProps?: Partial<ButtonProps>;
|
|
18
20
|
callToAction: CallToAction;
|
|
19
21
|
className?: string;
|
|
20
22
|
disabled?: boolean;
|
|
@@ -22,6 +24,7 @@ export interface CallToActionButtonProps {
|
|
|
22
24
|
|
|
23
25
|
export const CallToActionButton = ({
|
|
24
26
|
ButtonElType: Button = ButtonPrimary,
|
|
27
|
+
buttonProps,
|
|
25
28
|
callToAction,
|
|
26
29
|
className,
|
|
27
30
|
disabled = false,
|
|
@@ -36,6 +39,7 @@ export const CallToActionButton = ({
|
|
|
36
39
|
href="passHref"
|
|
37
40
|
rel={REL_ATTRIBUTE.NO_OPENER}
|
|
38
41
|
target={target || ANCHOR_TARGET.SELF}
|
|
42
|
+
{...buttonProps}
|
|
39
43
|
>
|
|
40
44
|
{label}
|
|
41
45
|
</Button>
|
|
@@ -47,6 +51,7 @@ export const CallToActionButton = ({
|
|
|
47
51
|
href={url}
|
|
48
52
|
rel={REL_ATTRIBUTE.NO_OPENER_NO_REFERRER}
|
|
49
53
|
target={target || ANCHOR_TARGET.BLANK}
|
|
54
|
+
{...buttonProps}
|
|
50
55
|
>
|
|
51
56
|
{label}
|
|
52
57
|
</Button>
|
|
@@ -22,7 +22,7 @@ export const Code = ({ className, code }: CodeProps): JSX.Element => {
|
|
|
22
22
|
const copiedTimeout = setTimeout(() => {
|
|
23
23
|
setCopied(false);
|
|
24
24
|
}, 2000);
|
|
25
|
-
return () => clearTimeout(copiedTimeout);
|
|
25
|
+
return (): void => clearTimeout(copiedTimeout);
|
|
26
26
|
}
|
|
27
27
|
}, [copied]);
|
|
28
28
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
|
2
|
-
import { DialogTitle as MDialogTitle
|
|
2
|
+
import { IconButton, DialogTitle as MDialogTitle } from "@mui/material";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
export interface DialogTitleProps {
|
|
@@ -11,12 +11,12 @@ import { InputFormControl } from "./select.styles";
|
|
|
11
11
|
* Basic form select component.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export type SelectProps = MSelectProps & {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
className?: string;
|
|
17
17
|
isFilled: boolean;
|
|
18
18
|
label?: string;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
export const Select = ({
|
|
22
22
|
children,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
warningLightest,
|
|
11
11
|
warningMain,
|
|
12
12
|
} from "../../../styles/common/mixins/colors";
|
|
13
|
-
import {
|
|
13
|
+
import { ICON_BADGE_COLOR, IconBadgeColor } from "./iconBadge";
|
|
14
14
|
|
|
15
15
|
interface Props {
|
|
16
16
|
color: IconBadgeColor;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
// TODO deprecate component if possible (see MDXMarkdown)
|
|
2
|
+
import { Box as MBox, BoxProps as MBoxProps } from "@mui/material";
|
|
2
3
|
import DOMPurify from "isomorphic-dompurify";
|
|
3
4
|
import React from "react";
|
|
4
5
|
|
|
5
6
|
export interface MarkdownProps {
|
|
6
7
|
content: string;
|
|
8
|
+
sx?: MBoxProps["sx"];
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
export const Markdown = ({ content }: MarkdownProps): JSX.Element => {
|
|
11
|
+
export const Markdown = ({ content, sx }: MarkdownProps): JSX.Element => {
|
|
10
12
|
return (
|
|
11
|
-
<
|
|
13
|
+
<MBox
|
|
14
|
+
component="div"
|
|
15
|
+
dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(content) }}
|
|
16
|
+
sx={{ minWidth: 0, wordBreak: "break-word", ...sx }}
|
|
17
|
+
/>
|
|
12
18
|
);
|
|
13
19
|
};
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// TODO move to Azul APIs section
|
|
5
5
|
import {
|
|
6
6
|
APIEndpoints,
|
|
7
|
+
AZUL_PARAM,
|
|
7
8
|
AzulCatalogResponse,
|
|
8
9
|
AzulEntitiesResponse,
|
|
9
10
|
AzulListParams,
|
|
10
11
|
AzulSummaryResponse,
|
|
11
|
-
AZUL_PARAM,
|
|
12
12
|
} from "../../apis/azul/common/entities";
|
|
13
13
|
import { transformFilters } from "../../apis/azul/common/filterTransformer";
|
|
14
14
|
import { getConfig } from "../../config/config";
|
|
@@ -17,7 +17,7 @@ import { useAsync } from "./useAsync";
|
|
|
17
17
|
import { useAuthentication } from "./useAuthentication/useAuthentication";
|
|
18
18
|
import { useConfig } from "./useConfig";
|
|
19
19
|
import { useEntityService } from "./useEntityService";
|
|
20
|
-
import {
|
|
20
|
+
import { EXPLORE_MODE, ExploreMode, useExploreMode } from "./useExploreMode";
|
|
21
21
|
import { useExploreState } from "./useExploreState";
|
|
22
22
|
import { useURLFilterParams } from "./useURLFilterParams";
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityConfig, EntityMapper } from "../config/entities";
|
|
2
2
|
import { getEntityConfig } from "../config/utils";
|
|
3
3
|
import { createEntityService } from "../entity/service/factory";
|
|
4
|
-
import {
|
|
4
|
+
import { ENTITY_SERVICE_TYPE, EntityService } from "../entity/service/model";
|
|
5
5
|
import { useCatalog } from "./useCatalog";
|
|
6
6
|
import { useConfig } from "./useConfig";
|
|
7
7
|
import { EXPLORE_MODE } from "./useExploreMode";
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { API_FILE_LOCATION_FETCH } from "../apis/azul/common/constants";
|
|
2
1
|
import {
|
|
3
2
|
useRequestFileLocation,
|
|
4
3
|
UseRequestFileLocationResult,
|
|
5
4
|
} from "./useRequestFileLocation";
|
|
6
5
|
|
|
6
|
+
const NOT_PREPENDED_WITH_FETCH_REGEX = /^(\/(?!fetch))/;
|
|
7
|
+
|
|
7
8
|
export interface UseFileLocation extends UseRequestFileLocationResult {
|
|
8
9
|
fileUrl?: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export const useFileLocation = (fileUrl?: string): UseFileLocation => {
|
|
12
|
-
// Prepend "/fetch" to the path of the specified file URL, if not already included.
|
|
13
13
|
const url = buildFetchFileUrl(fileUrl);
|
|
14
14
|
const fileLocation = useRequestFileLocation(url);
|
|
15
|
-
|
|
16
|
-
const { location } = data || {};
|
|
17
|
-
return { ...fileLocation, fileUrl: location };
|
|
15
|
+
return { ...fileLocation, fileUrl: fileLocation.data?.location };
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Prepends "/fetch" to the path of the specified file URL, if not already included.
|
|
22
|
-
* @param
|
|
23
|
-
* @returns file
|
|
20
|
+
* @param url - URL.
|
|
21
|
+
* @returns file URL with path prepended with "/fetch".
|
|
24
22
|
*/
|
|
25
|
-
function buildFetchFileUrl(
|
|
26
|
-
if (!
|
|
23
|
+
export function buildFetchFileUrl(url?: string): string | undefined {
|
|
24
|
+
if (!url) {
|
|
27
25
|
return;
|
|
28
26
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
try {
|
|
28
|
+
const urlObj = new URL(url);
|
|
29
|
+
urlObj.pathname = urlObj.pathname.replace(
|
|
30
|
+
NOT_PREPENDED_WITH_FETCH_REGEX,
|
|
31
|
+
"/fetch/"
|
|
32
|
+
);
|
|
33
|
+
return urlObj.href;
|
|
34
|
+
} catch (e) {
|
|
35
|
+
throw new Error(`Invalid file URL: ${url}`);
|
|
33
36
|
}
|
|
34
|
-
return url.toString();
|
|
35
37
|
}
|