@databiosphere/findable-ui 41.2.0 → 42.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +25 -0
- package/lib/components/DataDictionary/components/Description/description.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Description/description.styles.js +5 -5
- package/lib/components/DataDictionary/components/Entity/entity.js +2 -2
- package/lib/components/DataDictionary/components/Entity/entity.styles.js +2 -2
- package/lib/components/DataDictionary/components/Filters/components/ColumnFilterTags/columnFilterTags.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/filters.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.js +2 -2
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.js +2 -2
- package/lib/components/DataDictionary/components/Outline/outline.styles.js +4 -4
- package/lib/components/DataDictionary/components/Table/table.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Title/title.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Tooltip/components/Title/constants.d.ts +1 -2
- package/lib/components/DataDictionary/components/Tooltip/components/Title/constants.js +0 -4
- package/lib/components/DataDictionary/components/Tooltip/components/Title/title.js +4 -4
- package/lib/components/DataDictionary/components/Tooltip/constants.js +8 -7
- package/lib/components/DataDictionary/dataDictionary.styles.js +2 -2
- package/lib/components/Detail/components/Table/table.js +2 -3
- package/lib/components/Error/error.js +4 -3
- package/lib/components/Error/error.styles.js +4 -4
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +3 -3
- package/lib/components/Export/components/ExportForm/exportForm.styles.js +11 -11
- package/lib/components/Export/components/ExportMethod/exportMethod.js +4 -3
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.d.ts +0 -4
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.js +0 -6
- package/lib/components/Export/components/ExportSummary/exportSummary.styles.js +6 -5
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.js +5 -3
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.js +1 -1
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.js +2 -2
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.js +10 -10
- package/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.js +7 -7
- package/lib/components/Export/export.styles.d.ts +1 -1
- package/lib/components/Export/export.styles.js +6 -6
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterCountChip/filterCountChip.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.js +2 -3
- package/lib/components/Filter/components/FilterList/filterList.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.js +2 -2
- package/lib/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.js +3 -2
- package/lib/components/Filter/components/FilterRange/filterRange.styles.js +2 -2
- package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterTag/filterTag.styles.js +2 -1
- package/lib/components/Filter/components/Filters/filters.js +1 -1
- package/lib/components/Filter/components/Filters/filters.styles.d.ts +1 -1
- package/lib/components/Filter/components/Filters/filters.styles.js +4 -4
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.styles.js +2 -1
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.js +4 -4
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.js +7 -8
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +2 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +5 -6
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.styles.js +2 -2
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +3 -4
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +3 -3
- package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +2 -2
- package/lib/components/Filter/components/controls/Controls/controls.js +1 -1
- package/lib/components/Filter/components/controls/Controls/controls.styles.d.ts +1 -1
- package/lib/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.d.ts +1 -1
- package/lib/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.js +2 -2
- package/lib/components/Filter/components/surfaces/drawer/components/IconButton/iconButton.styles.d.ts +1 -1
- package/lib/components/Filter/components/views/select/components/ListItemButton/listItemButton.d.ts +1 -1
- package/lib/components/Filter/components/views/select/components/ListItemButton/listItemButton.styles.d.ts +1 -1
- package/lib/components/Filter/components/views/select/components/ListItemText/components/Count/count.js +1 -1
- package/lib/components/Filter/components/views/select/components/ListItemText/components/Term/term.js +1 -1
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.js +2 -2
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.d.ts +1 -1
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.js +2 -2
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.js +2 -2
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.d.ts +1 -1
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.js +2 -1
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.d.ts +1 -1
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.js +2 -2
- package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.js +1 -1
- package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.styles.d.ts +1 -1
- package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.d.ts +1 -1
- package/lib/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.js +4 -4
- package/lib/components/Index/index.styles.d.ts +4 -4
- package/lib/components/Index/index.styles.js +2 -2
- package/lib/components/Layout/components/BackPage/backPageView.styles.js +11 -10
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.js +3 -3
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.js +2 -2
- package/lib/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.js +2 -2
- package/lib/components/Layout/components/ContentLayout/contentLayout.styles.js +18 -19
- package/lib/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.js +2 -2
- package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.d.ts +1 -1
- package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.js +2 -2
- package/lib/components/Layout/components/Footer/footer.styles.js +8 -8
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +4 -4
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.js +2 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.js +3 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -4
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.js +6 -5
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.js +7 -7
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.js +5 -5
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.js +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.js +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.js +4 -4
- package/lib/components/Layout/components/Header/header.styles.js +2 -2
- package/lib/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.js +2 -1
- package/lib/components/Layout/components/Nav/nav.styles.d.ts +1 -1
- package/lib/components/Layout/components/Nav/nav.styles.js +8 -6
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.js +5 -4
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +2 -2
- package/lib/components/Layout/components/Outline/outline.styles.js +8 -8
- package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.js +6 -6
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.js +5 -5
- package/lib/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.js +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.js +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.js +2 -2
- package/lib/components/Layout/components/Sidebar/sidebar.js +4 -5
- package/lib/components/Layout/components/Sidebar/sidebar.styles.js +2 -2
- package/lib/components/Links/components/Link/link.js +2 -1
- package/lib/components/Loading/loading.js +2 -1
- package/lib/components/Loading/loading.styles.js +2 -2
- package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.js +2 -2
- package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.styles.js +1 -1
- package/lib/components/Login/components/Section/components/Warning/warning.js +1 -1
- package/lib/components/Login/login.js +6 -5
- package/lib/components/Login/login.styles.d.ts +2 -12
- package/lib/components/Login/login.styles.js +4 -13
- package/lib/components/MarkdownRenderer/components/Table/table.styles.js +2 -2
- package/lib/components/MarkdownRenderer/markdownRenderer.js +1 -1
- package/lib/components/NoResults/noResults.js +1 -1
- package/lib/components/NoResults/noResults.styles.js +2 -2
- package/lib/components/Project/components/Contacts/contacts.js +2 -1
- package/lib/components/Project/components/Details/details.js +3 -2
- package/lib/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.js +2 -1
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +2 -2
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.js +3 -3
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.js +5 -5
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js +1 -1
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.js +1 -1
- package/lib/components/Stepper/components/Step/step.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/step.styles.js +5 -5
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +5 -6
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.js +2 -2
- package/lib/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.js +2 -2
- package/lib/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.js +3 -3
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +6 -6
- package/lib/components/Table/common/gridTable.styles.js +1 -2
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.d.ts +1 -1
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.js +2 -2
- package/lib/components/Table/components/PaginationSummary/paginationSummary.js +5 -4
- package/lib/components/Table/components/TableCell/components/BasicCell/basicCell.js +3 -2
- package/lib/components/Table/components/TableCell/components/CodeCell/codeCell.styles.d.ts +1 -1
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.js +2 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.js +5 -5
- package/lib/components/Table/components/TableCell/components/LinkCell/stories/args.js +1 -1
- package/lib/components/Table/components/TableCell/components/NTagCell/nTagCell.js +2 -2
- package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.js +1 -1
- package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.styles.d.ts +1 -1
- package/lib/components/Table/components/TableFeatures/ColumnFilter/components/ColumnFilterTag/columnFilterTag.styles.d.ts +1 -1
- package/lib/components/Table/components/TablePagination/tablePagination.js +1 -1
- package/lib/components/Table/components/TablePagination/tablePagination.styles.d.ts +1 -1
- package/lib/components/Table/components/TableRow/tableRow.styles.js +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.js +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.js +5 -5
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.js +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.js +5 -5
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.js +2 -2
- package/lib/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.js +1 -1
- package/lib/components/Table/components/TableToolbar/components/RowSelection/rowSelection.js +2 -2
- package/lib/components/Table/table.js +2 -3
- package/lib/components/Table/table.styles.js +2 -2
- package/lib/components/common/Accordion/accordion.js +2 -2
- package/lib/components/common/Alert/alert.styles.js +3 -3
- package/lib/components/common/Banner/banner.styles.js +4 -4
- package/lib/components/common/Banner/components/CookieBanner/cookieBanner.styles.js +4 -4
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +1 -1
- package/lib/components/common/Button/components/HelpIconButton/helpIconButton.styles.js +2 -1
- package/lib/components/common/Button/components/NavigationButton/navigationButton.styles.js +5 -4
- package/lib/components/common/Card/card.styles.js +2 -2
- package/lib/components/common/Card/components/CardActions/cardActions.styles.js +2 -2
- package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.d.ts +2 -5
- package/lib/components/common/Card/components/CardSecondaryText/cardSecondaryText.js +3 -3
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.d.ts +2 -5
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.js +4 -4
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +2 -2
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.js +1 -1
- package/lib/components/common/Card/components/CardText/cardText.d.ts +2 -5
- package/lib/components/common/Card/components/CardText/cardText.js +3 -3
- package/lib/components/common/Card/components/CardTitle/cardTitle.d.ts +2 -5
- package/lib/components/common/Card/components/CardTitle/cardTitle.js +3 -3
- package/lib/components/common/Code/code.styles.js +10 -9
- package/lib/components/common/Dot/dot.styles.js +2 -1
- package/lib/components/common/Form/components/Input/input.js +2 -2
- package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
- package/lib/components/common/Form/components/Input/input.styles.js +4 -4
- package/lib/components/common/Form/components/Select/select.js +2 -2
- package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
- package/lib/components/common/Form/components/Select/select.styles.js +3 -3
- package/lib/components/common/Form/components/UploadFile/uploadFile.js +3 -3
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +1 -1
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.js +10 -10
- package/lib/components/common/IconBadge/iconBadge.styles.js +13 -13
- package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
- package/lib/components/common/IconButton/iconButton.styles.js +3 -3
- package/lib/components/common/Input/input.js +2 -2
- package/lib/components/common/Input/input.styles.d.ts +1 -1
- package/lib/components/common/Input/input.styles.js +3 -2
- package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.js +1 -1
- package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.js +1 -1
- package/lib/components/common/LoginDialog/constants.js +2 -2
- package/lib/components/common/MDXMarkdown/components/Section/mdxSection.styles.js +4 -4
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.d.ts +1 -1
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.d.ts +1 -1
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.js +2 -2
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.d.ts +1 -1
- package/lib/components/common/Paper/paper.styles.js +24 -24
- package/lib/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.js +6 -6
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +8 -8
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +1 -1
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.js +6 -5
- package/lib/components/common/Section/components/SectionTitle/sectionTitle.js +2 -1
- package/lib/components/common/Section/section.styles.d.ts +1 -1
- package/lib/components/common/Section/section.styles.js +4 -4
- package/lib/components/common/Socials/socials.styles.js +3 -3
- package/lib/components/common/StatusIcon/statusIcon.styles.js +13 -12
- package/lib/components/common/Tabs/tabs.styles.d.ts +1 -1
- package/lib/components/common/Tag/tag.d.ts +3 -6
- package/lib/components/common/Tag/tag.js +3 -2
- package/lib/components/common/Tag/tag.stories.d.ts +1 -1
- package/lib/components/common/Tag/tag.styles.d.ts +10 -2
- package/lib/components/common/Tag/tag.styles.js +4 -3
- package/lib/components/common/Title/title.js +1 -1
- package/lib/components/common/Typography/TypographyWordBreak/TypographyWordBreak.js +2 -1
- package/lib/styles/common/constants/app.d.ts +3 -0
- package/lib/styles/common/constants/app.js +3 -0
- package/lib/styles/common/constants/colorMixes.d.ts +1 -0
- package/lib/styles/common/constants/colorMixes.js +1 -0
- package/lib/styles/common/constants/font.d.ts +18 -0
- package/lib/styles/common/constants/font.js +18 -0
- package/lib/styles/common/constants/palette.d.ts +45 -45
- package/lib/styles/common/constants/palette.js +45 -45
- package/lib/styles/common/constants/shadows.js +3 -3
- package/lib/styles/common/mixins/breakpoints.d.ts +9 -7
- package/lib/styles/common/mixins/breakpoints.js +8 -7
- package/lib/styles/common/mui/typography.d.ts +32 -3
- package/lib/styles/common/mui/typography.js +22 -10
- package/lib/theme/common/breakpoints.d.ts +6 -27
- package/lib/theme/common/breakpoints.js +14 -36
- package/lib/theme/common/components.d.ts +2 -226
- package/lib/theme/common/components.js +1045 -1223
- package/lib/theme/common/fontStyles.d.ts +8 -0
- package/lib/theme/common/fontStyles.js +12 -0
- package/lib/theme/common/palette.d.ts +2 -42
- package/lib/theme/common/palette.js +22 -73
- package/lib/theme/common/typography.d.ts +2 -70
- package/lib/theme/common/typography.js +78 -126
- package/lib/theme/components/muiAlert.d.ts +2 -2
- package/lib/theme/components/muiAlert.js +95 -96
- package/lib/theme/components/muiAlertTitle.js +2 -2
- package/lib/theme/components/muiTableCell.d.ts +2 -2
- package/lib/theme/components/muiTableCell.js +43 -46
- package/lib/theme/theme.d.ts +0 -7
- package/lib/theme/theme.js +22 -100
- package/lib/theme/types.d.ts +4 -0
- package/lib/theme/types.js +1 -0
- package/package.json +1 -1
- package/src/components/DataDictionary/components/Description/description.styles.ts +5 -8
- package/src/components/DataDictionary/components/Entity/entity.styles.ts +2 -2
- package/src/components/DataDictionary/components/Entity/entity.tsx +2 -2
- package/src/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.ts +2 -2
- package/src/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.ts +2 -2
- package/src/components/DataDictionary/components/Outline/outline.styles.ts +4 -8
- package/src/components/DataDictionary/components/Tooltip/components/Title/constants.ts +1 -6
- package/src/components/DataDictionary/components/Tooltip/components/Title/title.tsx +8 -4
- package/src/components/DataDictionary/components/Tooltip/constants.ts +8 -7
- package/src/components/DataDictionary/dataDictionary.styles.ts +2 -5
- package/src/components/Detail/components/Table/table.tsx +2 -3
- package/src/components/Error/error.styles.ts +4 -4
- package/src/components/Error/error.tsx +10 -3
- package/src/components/Export/components/ExportForm/exportForm.styles.ts +12 -12
- package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +0 -7
- package/src/components/Export/components/ExportMethod/exportMethod.tsx +14 -3
- package/src/components/Export/components/ExportSummary/exportSummary.styles.ts +6 -5
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.styles.ts +1 -1
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/FormStep/formStep.tsx +9 -8
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.styles.ts +10 -15
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/terraSetUpForm.tsx +5 -2
- package/src/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.styles.ts +7 -7
- package/src/components/Export/export.styles.ts +7 -7
- package/src/components/Filter/components/FilterLabel/filterLabel.styles.ts +2 -3
- package/src/components/Filter/components/FilterMenuSearch/filterMenuSearch.styles.ts +2 -2
- package/src/components/Filter/components/FilterNoResultsFound/filterNoResultsFound.tsx +4 -3
- package/src/components/Filter/components/FilterRange/filterRange.styles.ts +2 -2
- package/src/components/Filter/components/FilterTag/filterTag.styles.ts +2 -1
- package/src/components/Filter/components/Filters/filters.styles.ts +4 -4
- package/src/components/Filter/components/Filters/filters.tsx +1 -1
- package/src/components/Filter/components/HighlightedLabel/highlightedLabel.styles.ts +2 -1
- package/src/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.ts +4 -4
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeList/VariableSizeList.tsx +7 -11
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.styles.ts +2 -2
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +7 -8
- package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +3 -7
- package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +3 -3
- package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +3 -3
- package/src/components/Filter/components/controls/Controls/controls.tsx +1 -1
- package/src/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.ts +2 -2
- package/src/components/Filter/components/views/select/components/ListItemText/components/Count/count.tsx +1 -1
- package/src/components/Filter/components/views/select/components/ListItemText/components/Term/term.tsx +1 -1
- package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.ts +2 -2
- package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.ts +2 -2
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts +2 -1
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.tsx +2 -2
- package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.ts +2 -2
- package/src/components/Index/components/EntityView/components/views/ChartView/chartView.tsx +1 -1
- package/src/components/Index/components/EntityView/components/views/ChartView/components/Chart/chart.styles.ts +4 -4
- package/src/components/Index/index.styles.ts +2 -2
- package/src/components/Layout/components/BackPage/backPageView.styles.ts +11 -10
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts +3 -3
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/Actions/actions.styles.ts +2 -2
- package/src/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle.tsx +6 -2
- package/src/components/Layout/components/ContentLayout/contentLayout.styles.ts +20 -36
- package/src/components/Layout/components/Footer/components/VersionInfo/components/Tooltip/components/Title/title.tsx +5 -2
- package/src/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.ts +2 -2
- package/src/components/Layout/components/Footer/footer.styles.ts +8 -8
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.ts +2 -1
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Content/components/Navigation/navigation.styles.ts +3 -6
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +4 -7
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.styles.ts +6 -8
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.ts +8 -12
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems.tsx +5 -10
- package/src/components/Layout/components/Header/components/Content/components/Navigation/navigation.styles.ts +2 -2
- package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.ts +4 -4
- package/src/components/Layout/components/Header/components/Content/components/Slogan/slogan.tsx +5 -2
- package/src/components/Layout/components/Header/header.styles.ts +2 -2
- package/src/components/Layout/components/Nav/components/NavBarHero/navBarHero.styles.ts +2 -1
- package/src/components/Layout/components/Nav/nav.styles.ts +8 -10
- package/src/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.ts +5 -4
- package/src/components/Layout/components/Outline/outline.styles.ts +10 -13
- package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.styles.ts +7 -10
- package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.styles.ts +5 -8
- package/src/components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel.tsx +5 -2
- package/src/components/Layout/components/Sidebar/components/SidebarPositioner/sidebarPositioner.styles.ts +2 -2
- package/src/components/Layout/components/Sidebar/components/SidebarTools/sidebarTools.styles.ts +2 -2
- package/src/components/Layout/components/Sidebar/sidebar.styles.ts +2 -2
- package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -8
- package/src/components/Links/components/Link/link.tsx +2 -1
- package/src/components/Loading/loading.styles.ts +2 -2
- package/src/components/Loading/loading.tsx +6 -1
- package/src/components/Login/components/Section/components/Consent/consent.styles.ts +1 -1
- package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -2
- package/src/components/Login/components/Section/components/Warning/warning.tsx +1 -1
- package/src/components/Login/login.styles.ts +5 -19
- package/src/components/Login/login.tsx +30 -7
- package/src/components/MarkdownRenderer/components/Table/table.styles.ts +2 -2
- package/src/components/MarkdownRenderer/markdownRenderer.tsx +1 -1
- package/src/components/NoResults/noResults.styles.ts +2 -2
- package/src/components/NoResults/noResults.tsx +1 -1
- package/src/components/Project/components/Contacts/contacts.tsx +7 -1
- package/src/components/Project/components/Details/details.tsx +7 -2
- package/src/components/Project/components/SupplementaryLinks/supplementaryLinks.styles.ts +2 -1
- package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +2 -2
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.ts +3 -6
- package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.ts +5 -9
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/constants.ts +1 -1
- package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.ts +1 -1
- package/src/components/Stepper/components/Step/step.styles.ts +6 -6
- package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +5 -6
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.styles.ts +2 -2
- package/src/components/Support/components/SupportRequest/components/SupportRequestForm/supportRequestForm.tsx +5 -2
- package/src/components/Support/components/SupportRequest/components/SupportRequestSubmitted/supportRequestSubmitted.tsx +8 -6
- package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +6 -10
- package/src/components/Table/common/gridTable.styles.ts +1 -2
- package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.ts +2 -2
- package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +9 -4
- package/src/components/Table/components/TableCell/components/BasicCell/basicCell.tsx +10 -2
- package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.styles.ts +5 -5
- package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.tsx +3 -3
- package/src/components/Table/components/TableCell/components/LinkCell/stories/args.ts +1 -1
- package/src/components/Table/components/TableCell/components/NTagCell/nTagCell.tsx +6 -3
- package/src/components/Table/components/TableFeatures/ColumnFilter/columnFilter.tsx +1 -1
- package/src/components/Table/components/TablePagination/tablePagination.tsx +1 -1
- package/src/components/Table/components/TableRow/tableRow.styles.ts +2 -2
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.styles.ts +5 -5
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/RowDrawer/rowDrawer.tsx +6 -2
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.styles.ts +6 -6
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/components/RowDetail/rowDetail.tsx +3 -3
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.styles.ts +1 -1
- package/src/components/Table/components/TableToolbar/components/RowPreview/components/Section/section.tsx +5 -2
- package/src/components/Table/components/TableToolbar/components/RowSelection/rowSelection.tsx +2 -2
- package/src/components/Table/table.styles.ts +2 -2
- package/src/components/Table/table.tsx +2 -3
- package/src/components/common/Accordion/accordion.tsx +4 -2
- package/src/components/common/Alert/alert.styles.ts +3 -6
- package/src/components/common/Banner/banner.styles.ts +4 -4
- package/src/components/common/Banner/components/CookieBanner/cookieBanner.styles.ts +4 -4
- package/src/components/common/Button/components/HelpIconButton/helpIconButton.styles.ts +2 -1
- package/src/components/common/Button/components/NavigationButton/navigationButton.styles.ts +5 -4
- package/src/components/common/Card/card.styles.ts +2 -2
- package/src/components/common/Card/components/CardActions/cardActions.styles.ts +2 -2
- package/src/components/common/Card/components/CardSecondaryText/cardSecondaryText.tsx +7 -16
- package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.ts +1 -1
- package/src/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.tsx +9 -17
- package/src/components/common/Card/components/CardText/cardText.tsx +8 -14
- package/src/components/common/Card/components/CardTitle/cardTitle.tsx +9 -14
- package/src/components/common/Code/code.styles.ts +11 -10
- package/src/components/common/Dot/dot.styles.ts +2 -1
- package/src/components/common/Form/components/Input/input.styles.ts +4 -4
- package/src/components/common/Form/components/Input/input.tsx +6 -2
- package/src/components/common/Form/components/Select/select.styles.ts +3 -3
- package/src/components/common/Form/components/Select/select.tsx +6 -2
- package/src/components/common/Form/components/UploadFile/uploadFile.styles.ts +10 -17
- package/src/components/common/Form/components/UploadFile/uploadFile.tsx +7 -3
- package/src/components/common/IconBadge/iconBadge.styles.ts +13 -22
- package/src/components/common/IconButton/iconButton.styles.ts +3 -3
- package/src/components/common/Input/input.styles.ts +3 -2
- package/src/components/common/Input/input.tsx +6 -2
- package/src/components/common/KeyValuePairs/components/KeyElType/keyElType.tsx +1 -1
- package/src/components/common/KeyValuePairs/components/ValueElType/valueElType.tsx +1 -1
- package/src/components/common/LoginDialog/constants.ts +2 -2
- package/src/components/common/MDXMarkdown/components/Section/mdxSection.styles.ts +4 -8
- package/src/components/common/Paper/components/FluidPaper/fluidPaper.styles.ts +2 -2
- package/src/components/common/Paper/paper.styles.ts +24 -24
- package/src/components/common/Progress/components/CircularProgress/components/CircularProgressTrack/circularProgressTrack.styles.ts +6 -12
- package/src/components/common/Section/components/CollapsableSection/collapsableSection.styles.ts +6 -5
- package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +11 -8
- package/src/components/common/Section/components/SectionTitle/sectionTitle.tsx +3 -2
- package/src/components/common/Section/section.styles.ts +5 -5
- package/src/components/common/Socials/socials.styles.ts +3 -3
- package/src/components/common/StatusIcon/statusIcon.styles.ts +13 -12
- package/src/components/common/Tag/tag.styles.ts +4 -3
- package/src/components/common/Tag/tag.tsx +14 -11
- package/src/components/common/Title/title.tsx +1 -1
- package/src/components/common/Typography/TypographyWordBreak/TypographyWordBreak.tsx +2 -1
- package/src/styles/common/constants/app.ts +3 -0
- package/src/styles/common/constants/colorMixes.ts +1 -0
- package/src/styles/common/constants/font.ts +18 -0
- package/src/styles/common/constants/palette.ts +45 -45
- package/src/styles/common/constants/shadows.ts +3 -3
- package/src/styles/common/mixins/breakpoints.ts +19 -14
- package/src/styles/common/mui/typography.ts +26 -14
- package/src/theme/common/breakpoints.ts +16 -38
- package/src/theme/common/components.ts +1046 -1249
- package/src/theme/common/fontStyles.ts +17 -0
- package/src/theme/common/palette.ts +30 -75
- package/src/theme/common/typography.ts +85 -147
- package/src/theme/components/muiAlert.ts +96 -97
- package/src/theme/components/muiAlertTitle.ts +2 -2
- package/src/theme/components/muiTableCell.ts +44 -47
- package/src/theme/theme.ts +25 -107
- package/src/theme/types.ts +5 -0
- package/tests/theme.test.ts +465 -0
- package/tests/tsconfig.json +1 -1
- package/types/data-explorer-ui.d.ts +73 -48
- package/lib/styles/common/mixins/colors.d.ts +0 -25
- package/lib/styles/common/mixins/colors.js +0 -32
- package/lib/styles/common/mixins/fonts.d.ts +0 -16
- package/lib/styles/common/mixins/fonts.js +0 -30
- package/src/styles/common/mixins/colors.ts +0 -71
- package/src/styles/common/mixins/fonts.ts +0 -52
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { Typography } from "@mui/material";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { FONT } from "../../../../styles/common/constants/font";
|
|
5
|
+
import { PALETTE } from "../../../../styles/common/constants/palette";
|
|
6
6
|
import { SURFACE_TYPE } from "../surfaces/types";
|
|
7
7
|
import { FiltersProps } from "./filters";
|
|
8
8
|
|
|
@@ -13,8 +13,8 @@ interface Props {
|
|
|
13
13
|
export const Filters = styled("div")<
|
|
14
14
|
Props & Pick<FiltersProps, "disabled" | "surfaceType">
|
|
15
15
|
>`
|
|
16
|
-
${
|
|
17
|
-
|
|
16
|
+
color: ${PALETTE.INK_MAIN};
|
|
17
|
+
font: ${FONT.BODY_500};
|
|
18
18
|
height: ${({ height }) => height}px;
|
|
19
19
|
margin: 8px 0;
|
|
20
20
|
overflow: auto;
|
|
@@ -103,7 +103,7 @@ export const Filters = ({
|
|
|
103
103
|
{label && (
|
|
104
104
|
<StyledTypography
|
|
105
105
|
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
106
|
-
variant={TYPOGRAPHY_PROPS.VARIANT.
|
|
106
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.UPPERCASE_500}
|
|
107
107
|
>
|
|
108
108
|
{label}
|
|
109
109
|
</StyledTypography>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
+
import { PALETTE } from "../../../../styles/common/constants/palette";
|
|
3
4
|
|
|
4
5
|
interface MatchHighlightProps {
|
|
5
6
|
leftOpen: boolean;
|
|
@@ -7,7 +8,7 @@ interface MatchHighlightProps {
|
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export const MatchHighlight = styled.mark<MatchHighlightProps>`
|
|
10
|
-
background: ${
|
|
11
|
+
background: ${PALETTE.WARNING_LIGHT};
|
|
11
12
|
color: inherit;
|
|
12
13
|
padding: 2px 0;
|
|
13
14
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Popper as MPopper } from "@mui/material";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { PALETTE } from "../../../../../../styles/common/constants/palette";
|
|
4
|
+
import { bpDownMd } from "../../../../../../styles/common/mixins/breakpoints";
|
|
5
5
|
|
|
6
6
|
export const AutocompletePopper = styled(MPopper)`
|
|
7
|
-
${
|
|
7
|
+
${bpDownMd} {
|
|
8
8
|
.MuiPaper-root {
|
|
9
|
-
background-color: ${
|
|
9
|
+
background-color: ${PALETTE.SMOKE_LIGHT};
|
|
10
10
|
|
|
11
11
|
.MuiList-root {
|
|
12
12
|
margin: 0;
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
} from "../../../../../../hooks/useBreakpointHelper";
|
|
22
22
|
import { OnFilterFn } from "../../../../../../hooks/useCategoryFilter";
|
|
23
23
|
import { useWindowResize } from "../../../../../../hooks/useWindowResize";
|
|
24
|
-
import { DESKTOP_SM } from "../../../../../../theme/common/breakpoints";
|
|
25
24
|
import {
|
|
26
25
|
LIST_ITEM_HEIGHT,
|
|
27
26
|
LIST_MARGIN,
|
|
@@ -132,10 +131,7 @@ export const VariableSizeList = forwardRef<
|
|
|
132
131
|
): JSX.Element {
|
|
133
132
|
const filteredItems = applyMenuFilter(selectCategoryViews, searchTerm);
|
|
134
133
|
let resizeRequired = true;
|
|
135
|
-
const
|
|
136
|
-
BREAKPOINT_FN_NAME.DOWN,
|
|
137
|
-
DESKTOP_SM
|
|
138
|
-
);
|
|
134
|
+
const bpDownMd = useBreakpointHelper(BREAKPOINT_FN_NAME.DOWN, "md");
|
|
139
135
|
const { height: windowHeight } = useWindowResize();
|
|
140
136
|
const [height, setHeight] = useState<number>(initHeight);
|
|
141
137
|
const itemSizeByItemKeyRef = useRef<ItemSizeByItemKey>(new Map());
|
|
@@ -157,10 +153,10 @@ export const VariableSizeList = forwardRef<
|
|
|
157
153
|
outerRef.current,
|
|
158
154
|
innerRef.current,
|
|
159
155
|
windowHeight,
|
|
160
|
-
|
|
156
|
+
bpDownMd
|
|
161
157
|
)
|
|
162
158
|
);
|
|
163
|
-
}, [
|
|
159
|
+
}, [bpDownMd, windowHeight]);
|
|
164
160
|
|
|
165
161
|
// Clears VariableSizeList cache (offsets and measurements) when values are updated (filtered).
|
|
166
162
|
// Facilitates correct positioning of list items when list is updated.
|
|
@@ -202,7 +198,7 @@ export const VariableSizeList = forwardRef<
|
|
|
202
198
|
outerRef.current,
|
|
203
199
|
innerRef.current,
|
|
204
200
|
windowHeight,
|
|
205
|
-
|
|
201
|
+
bpDownMd
|
|
206
202
|
)
|
|
207
203
|
);
|
|
208
204
|
}
|
|
@@ -270,18 +266,18 @@ function applyMenuFilter(
|
|
|
270
266
|
* @param outerListElem - Outer list element to reference list position from.
|
|
271
267
|
* @param innerListElem - Element containing list items.
|
|
272
268
|
* @param windowHeight - Window height.
|
|
273
|
-
* @param
|
|
269
|
+
* @param bpDownMd - True if viewport is "md" or smaller.
|
|
274
270
|
* @returns calculated height.
|
|
275
271
|
*/
|
|
276
272
|
function calculateListHeight(
|
|
277
273
|
outerListElem: HTMLDivElement,
|
|
278
274
|
innerListElem: HTMLUListElement,
|
|
279
275
|
windowHeight: number,
|
|
280
|
-
|
|
276
|
+
bpDownMd: boolean
|
|
281
277
|
): number {
|
|
282
278
|
// Calculate max possible list height, based on window height and top position of the list element.
|
|
283
279
|
const maxHeight = windowHeight - outerListElem.getBoundingClientRect().top;
|
|
284
|
-
if (
|
|
280
|
+
if (bpDownMd) {
|
|
285
281
|
return maxHeight;
|
|
286
282
|
}
|
|
287
283
|
// Grab the first and last element in the list.
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
import React, { useEffect, useRef } from "react";
|
|
9
9
|
import { VIEW_KIND } from "../../../../../../common/categories/views/types";
|
|
10
10
|
import { OnFilterFn } from "../../../../../../hooks/useCategoryFilter";
|
|
11
|
+
import { TYPOGRAPHY_PROPS } from "../../../../../../styles/common/mui/typography";
|
|
11
12
|
import { TEST_IDS } from "../../../../../../tests/testIds";
|
|
12
|
-
import { TEXT_BODY_SMALL_400 } from "../../../../../../theme/common/typography";
|
|
13
13
|
import { CheckedIcon } from "../../../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
|
|
14
14
|
import { UncheckedIcon } from "../../../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
|
|
15
15
|
import { FilterNoResultsFound } from "../../../FilterNoResultsFound/filterNoResultsFound";
|
|
@@ -83,9 +83,9 @@ export default function VariableSizeListItem({
|
|
|
83
83
|
}
|
|
84
84
|
secondary={
|
|
85
85
|
<Typography
|
|
86
|
-
color=
|
|
86
|
+
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
87
87
|
data-testid={TEST_IDS.FILTER_COUNT}
|
|
88
|
-
variant={
|
|
88
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_400}
|
|
89
89
|
>
|
|
90
90
|
{count}
|
|
91
91
|
</Typography>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Autocomplete as MAutocomplete } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { PALETTE } from "../../../../styles/common/constants/palette";
|
|
4
4
|
|
|
5
5
|
export const Autocomplete = styled(MAutocomplete)`
|
|
6
6
|
&.Mui-expanded {
|
|
7
7
|
.MuiOutlinedInput-root {
|
|
8
8
|
.MuiIconButton-root {
|
|
9
9
|
.MuiSvgIcon-root {
|
|
10
|
-
color: ${
|
|
10
|
+
color: ${PALETTE.INK_MAIN};
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
} from "../../../../hooks/useBreakpointHelper";
|
|
21
21
|
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
|
|
22
22
|
import { TEST_IDS } from "../../../../tests/testIds";
|
|
23
|
-
import { DESKTOP_SM } from "../../../../theme/common/breakpoints";
|
|
24
23
|
import { useDrawer } from "../../../common/Drawer/provider/hook";
|
|
25
24
|
import { SearchCloseButton } from "../SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton";
|
|
26
25
|
import { SearchAllFiltersSearch } from "../SearchAllFiltersSearch/searchAllFiltersSearch";
|
|
@@ -83,7 +82,7 @@ export const SearchAllFilters = ({
|
|
|
83
82
|
onFilter,
|
|
84
83
|
}: SearchAllFiltersProps): JSX.Element => {
|
|
85
84
|
const { open: isDrawerOpen } = useDrawer();
|
|
86
|
-
const
|
|
85
|
+
const bpUpMd = useBreakpointHelper(BREAKPOINT_FN_NAME.UP, "md");
|
|
87
86
|
const autocompleteRef = useRef<HTMLDivElement>(null);
|
|
88
87
|
const [open, setOpen] = useState(false);
|
|
89
88
|
const [searchTerm, setSearchTerm] = useState("");
|
|
@@ -91,9 +90,9 @@ export const SearchAllFilters = ({
|
|
|
91
90
|
isSelectCategoryView(view)
|
|
92
91
|
);
|
|
93
92
|
|
|
94
|
-
// Handles background scroll action (
|
|
93
|
+
// Handles background scroll action ("md" and up).
|
|
95
94
|
const handleBackgroundScroll = (overflowStyle: OVERFLOW_STYLE): void => {
|
|
96
|
-
if (
|
|
95
|
+
if (bpUpMd) {
|
|
97
96
|
setElementsOverflowStyle(
|
|
98
97
|
[
|
|
99
98
|
document.querySelector(SELECTOR.BODY),
|
|
@@ -160,13 +159,13 @@ export const SearchAllFilters = ({
|
|
|
160
159
|
}}
|
|
161
160
|
>
|
|
162
161
|
<Autocomplete
|
|
163
|
-
clearOnBlur={
|
|
162
|
+
clearOnBlur={bpUpMd}
|
|
164
163
|
data-testid={TEST_IDS.SEARCH_ALL_FILTERS}
|
|
165
164
|
filterOptions={(options): string[] => options}
|
|
166
165
|
freeSolo
|
|
167
166
|
ListboxComponent={Listbox}
|
|
168
|
-
onBlur={
|
|
169
|
-
onClose={
|
|
167
|
+
onBlur={bpUpMd ? onCloseSearch : undefined}
|
|
168
|
+
onClose={bpUpMd ? onCloseSearch : undefined}
|
|
170
169
|
onFocus={onOpenSearch}
|
|
171
170
|
onOpen={onOpen}
|
|
172
171
|
open={open}
|
|
@@ -186,7 +185,7 @@ export const SearchAllFilters = ({
|
|
|
186
185
|
},
|
|
187
186
|
})
|
|
188
187
|
}
|
|
189
|
-
slotProps={
|
|
188
|
+
slotProps={bpUpMd ? DEFAULT_SLOT_PROPS : DRAWER_SLOT_PROPS}
|
|
190
189
|
/>
|
|
191
190
|
</ListboxContext.Provider>
|
|
192
191
|
);
|
|
@@ -5,18 +5,14 @@ import {
|
|
|
5
5
|
BREAKPOINT_FN_NAME,
|
|
6
6
|
useBreakpointHelper,
|
|
7
7
|
} from "../../../../../../hooks/useBreakpointHelper";
|
|
8
|
-
import { DESKTOP_SM } from "../../../../../../theme/common/breakpoints";
|
|
9
8
|
import { ListboxContext } from "../../../SearchAllFilters/searchAllFilters";
|
|
10
9
|
|
|
11
10
|
export const SearchCloseButton = (): JSX.Element => {
|
|
12
|
-
const
|
|
13
|
-
BREAKPOINT_FN_NAME.DOWN,
|
|
14
|
-
DESKTOP_SM
|
|
15
|
-
);
|
|
11
|
+
const bpDownMd = useBreakpointHelper(BREAKPOINT_FN_NAME.DOWN, "md");
|
|
16
12
|
const { onClearSearch, onCloseSearch, open, searchTerm } =
|
|
17
13
|
useContext(ListboxContext);
|
|
18
|
-
const showButton = open && (
|
|
19
|
-
const onClickFn =
|
|
14
|
+
const showButton = open && (bpDownMd || searchTerm);
|
|
15
|
+
const onClickFn = bpDownMd ? onCloseSearch : onClearSearch;
|
|
20
16
|
return (
|
|
21
17
|
<Fragment>
|
|
22
18
|
{showButton && (
|
package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { TextField } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { PALETTE } from "../../../../styles/common/constants/palette";
|
|
4
4
|
|
|
5
5
|
export const InputField = styled(TextField)`
|
|
6
6
|
&& {
|
|
@@ -10,7 +10,7 @@ export const InputField = styled(TextField)`
|
|
|
10
10
|
|
|
11
11
|
.MuiInputBase-root {
|
|
12
12
|
& ::placeholder {
|
|
13
|
-
color: ${
|
|
13
|
+
color: ${PALETTE.INK_LIGHT};
|
|
14
14
|
opacity: 0.8;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ export const InputField = styled(TextField)`
|
|
|
26
26
|
padding: 0 0 0 12px;
|
|
27
27
|
|
|
28
28
|
.MuiAutocomplete-input {
|
|
29
|
-
color: ${
|
|
29
|
+
color: ${PALETTE.INK_MAIN};
|
|
30
30
|
padding: 10px 14px 10px 0;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -9,8 +9,8 @@ import { VIEW_KIND } from "../../../../common/categories/views/types";
|
|
|
9
9
|
import { CategoryKey } from "../../../../common/entities";
|
|
10
10
|
import { OnFilterFn } from "../../../../hooks/useCategoryFilter";
|
|
11
11
|
import { SELECT_CATEGORY_KEY } from "../../../../providers/exploreState/constants";
|
|
12
|
+
import { TYPOGRAPHY_PROPS } from "../../../../styles/common/mui/typography";
|
|
12
13
|
import { TEST_IDS } from "../../../../tests/testIds";
|
|
13
|
-
import { TEXT_BODY_SMALL_400 } from "../../../../theme/common/typography";
|
|
14
14
|
import { CheckedIcon } from "../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
|
|
15
15
|
import { UncheckedIcon } from "../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
|
|
16
16
|
import { FilterMenuSearchMatch } from "../../common/entities";
|
|
@@ -74,9 +74,9 @@ export default function VariableSizeListItem({
|
|
|
74
74
|
secondary={
|
|
75
75
|
categoryKey !== SELECT_CATEGORY_KEY.SAVED_FILTERS && (
|
|
76
76
|
<Typography
|
|
77
|
-
color=
|
|
77
|
+
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
78
78
|
data-testid={TEST_IDS.FILTER_COUNT}
|
|
79
|
-
variant={
|
|
79
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_400}
|
|
80
80
|
>
|
|
81
81
|
{count}
|
|
82
82
|
</Typography>
|
|
@@ -17,7 +17,7 @@ export const Controls = ({
|
|
|
17
17
|
}: BaseComponentProps & Pick<SurfaceProps, "onFilter">): JSX.Element | null => {
|
|
18
18
|
return (
|
|
19
19
|
<StyledGrid className={className} container>
|
|
20
|
-
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.
|
|
20
|
+
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.BODY_LARGE_500}>
|
|
21
21
|
Filters
|
|
22
22
|
</Typography>
|
|
23
23
|
<MButton
|
package/src/components/Filter/components/surfaces/drawer/components/ButtonBase/buttonBase.styles.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { ButtonBase } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { FONT } from "../../../../../../../styles/common/constants/font";
|
|
4
4
|
|
|
5
5
|
export const StyledButtonBase = styled(ButtonBase)`
|
|
6
|
-
${textBodyLarge500}
|
|
7
6
|
align-items: center;
|
|
8
7
|
display: flex;
|
|
8
|
+
font: ${FONT.BODY_LARGE_500};
|
|
9
9
|
gap: 8px;
|
|
10
10
|
justify-content: flex-start;
|
|
11
11
|
padding: 12px 16px;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Box } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { bpDownSm } from "../../../../../../../styles/common/mixins/breakpoints";
|
|
4
4
|
|
|
5
5
|
export const StyledBox = styled(Box)`
|
|
6
|
-
${
|
|
6
|
+
${bpDownSm} {
|
|
7
7
|
display: none;
|
|
8
8
|
}
|
|
9
9
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { bpUpMd } from "../../../../../../../styles/common/mixins/breakpoints";
|
|
4
4
|
|
|
5
5
|
export const StyledButton = styled(Button)`
|
|
6
|
-
${
|
|
6
|
+
${bpUpMd} {
|
|
7
7
|
display: none;
|
|
8
8
|
}
|
|
9
9
|
`;
|
package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
|
+
import { bpDown1024 } from "../../../../../../../styles/common/mixins/breakpoints";
|
|
3
4
|
import { Dot } from "../../../../../../common/Dot/dot";
|
|
4
5
|
|
|
5
6
|
export const StyledGrid = styled(Grid)`
|
|
@@ -9,7 +10,7 @@ export const StyledGrid = styled(Grid)`
|
|
|
9
10
|
max-width: fit-content;
|
|
10
11
|
padding: 12px 16px;
|
|
11
12
|
|
|
12
|
-
${
|
|
13
|
+
${bpDown1024} {
|
|
13
14
|
display: none;
|
|
14
15
|
}
|
|
15
16
|
`;
|
|
@@ -23,12 +23,12 @@ export const Summary = ({
|
|
|
23
23
|
{summaries.map(([count, label], i) => (
|
|
24
24
|
<Fragment key={i}>
|
|
25
25
|
{i !== 0 && <StyledDot />}
|
|
26
|
-
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.
|
|
26
|
+
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_500}>
|
|
27
27
|
{count}
|
|
28
28
|
</Typography>
|
|
29
29
|
<Typography
|
|
30
30
|
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
31
|
-
variant={TYPOGRAPHY_PROPS.VARIANT.
|
|
31
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_400}
|
|
32
32
|
>
|
|
33
33
|
{label}
|
|
34
34
|
</Typography>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { bpDownSm } from "../../../../../../../styles/common/mixins/breakpoints";
|
|
4
4
|
|
|
5
5
|
export const StyledGrid = styled(Grid)`
|
|
6
6
|
display: grid;
|
|
@@ -11,7 +11,7 @@ export const StyledGrid = styled(Grid)`
|
|
|
11
11
|
display: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
${
|
|
14
|
+
${bpDownSm} {
|
|
15
15
|
margin: 16px 0;
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
@@ -35,7 +35,7 @@ export const ChartView = ({
|
|
|
35
35
|
<StyledGrid data-testid={testId} ref={chartViewRef}>
|
|
36
36
|
{selectCategoryViews.map(({ key, label, values }) => (
|
|
37
37
|
<StyledGridPaperSection key={key}>
|
|
38
|
-
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.
|
|
38
|
+
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.HEADING_SMALL}>
|
|
39
39
|
{entityName} by {label}
|
|
40
40
|
</Typography>
|
|
41
41
|
<Chart selectCategoryValueViews={values} width={width} />
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { FONT } from "../../../../../../../../../styles/common/constants/font";
|
|
4
|
+
import { bpDownSm } from "../../../../../../../../../styles/common/mixins/breakpoints";
|
|
5
5
|
import { BarX } from "../../../../../../../../Plot/components/BarX/barX";
|
|
6
6
|
|
|
7
7
|
export const StyledBarX = styled(BarX)`
|
|
8
|
-
${
|
|
8
|
+
font: ${FONT.BODY_SMALL_400};
|
|
9
9
|
|
|
10
10
|
svg {
|
|
11
11
|
g.x-axis {
|
|
@@ -18,7 +18,7 @@ export const StyledBarX = styled(BarX)`
|
|
|
18
18
|
text-anchor: end;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
${
|
|
21
|
+
${bpDownSm} {
|
|
22
22
|
display: none;
|
|
23
23
|
&:nth-of-type(1),
|
|
24
24
|
&:nth-last-of-type(1) {
|
|
@@ -2,7 +2,7 @@ import styled from "@emotion/styled";
|
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
3
|
import { LayoutSpacing } from "../../hooks/UseLayoutSpacing/types";
|
|
4
4
|
import { PALETTE } from "../../styles/common/constants/palette";
|
|
5
|
-
import {
|
|
5
|
+
import { bpDownSm } from "../../styles/common/mixins/breakpoints";
|
|
6
6
|
import { FluidPaper } from "../common/Paper/components/FluidPaper/fluidPaper";
|
|
7
7
|
|
|
8
8
|
export const StyledGridEntityView = styled(Grid, {
|
|
@@ -63,7 +63,7 @@ export const StyledGridEntityList = styled(Grid)`
|
|
|
63
63
|
margin: 16px;
|
|
64
64
|
overflow: hidden;
|
|
65
65
|
|
|
66
|
-
${
|
|
66
|
+
${bpDownSm} {
|
|
67
67
|
margin: 16px 0;
|
|
68
68
|
}
|
|
69
69
|
`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import {
|
|
3
|
+
import { PALETTE } from "../../../../styles/common/constants/palette";
|
|
4
|
+
import { bpDownSm, bpUpSm } from "../../../../styles/common/mixins/breakpoints";
|
|
4
5
|
import { Sections } from "../../../common/Sections/sections";
|
|
5
6
|
|
|
6
7
|
export const BackPageView = styled.div`
|
|
@@ -11,7 +12,7 @@ export const BackPageView = styled.div`
|
|
|
11
12
|
margin: 0 16px;
|
|
12
13
|
padding: 24px 0;
|
|
13
14
|
|
|
14
|
-
${
|
|
15
|
+
${bpUpSm} {
|
|
15
16
|
grid-template-columns: repeat(12, 1fr);
|
|
16
17
|
margin: 0 auto;
|
|
17
18
|
max-width: min(calc(100% - 32px), 1232px);
|
|
@@ -29,7 +30,7 @@ export const BackPageHero = styled.div`
|
|
|
29
30
|
export const BackPageTabs = styled.div`
|
|
30
31
|
grid-column: 1 / -1;
|
|
31
32
|
|
|
32
|
-
${
|
|
33
|
+
${bpDownSm} {
|
|
33
34
|
margin-left: -16px;
|
|
34
35
|
margin-right: -16px;
|
|
35
36
|
}
|
|
@@ -45,7 +46,7 @@ export const BackPageContent = styled.div`
|
|
|
45
46
|
margin-left: -16px;
|
|
46
47
|
margin-right: -16px;
|
|
47
48
|
|
|
48
|
-
${
|
|
49
|
+
${bpUpSm} {
|
|
49
50
|
display: grid;
|
|
50
51
|
gap: 16px;
|
|
51
52
|
grid-template-columns: inherit;
|
|
@@ -61,11 +62,11 @@ export const BackPageContent = styled.div`
|
|
|
61
62
|
// - mobile - a gridded, flat paper environment, each section stacked with a 1px gap, and
|
|
62
63
|
// - tablet - a main and side column arrangement, and within each column, a gridded, rounded paper environment, each section stacked with a 1px gap.
|
|
63
64
|
export const DetailPageOverviewContent = styled(BackPageContent)`
|
|
64
|
-
background-color: ${
|
|
65
|
+
background-color: ${PALETTE.SMOKE_MAIN};
|
|
65
66
|
gap: 1px;
|
|
66
67
|
padding: 1px 0;
|
|
67
68
|
|
|
68
|
-
${
|
|
69
|
+
${bpUpSm} {
|
|
69
70
|
background-color: transparent;
|
|
70
71
|
padding: 0;
|
|
71
72
|
}
|
|
@@ -93,14 +94,14 @@ export const BackPageContentSingleColumn = styled(BackPageContentColumn)`
|
|
|
93
94
|
|
|
94
95
|
// Main column.
|
|
95
96
|
export const BackPageContentMainColumn = styled(BackPageContentColumn)`
|
|
96
|
-
${
|
|
97
|
+
${bpUpSm} {
|
|
97
98
|
${mainColumn};
|
|
98
99
|
}
|
|
99
100
|
`;
|
|
100
101
|
|
|
101
102
|
// Side column.
|
|
102
103
|
export const BackPageContentSideColumn = styled(BackPageContentColumn)`
|
|
103
|
-
${
|
|
104
|
+
${bpUpSm} {
|
|
104
105
|
${sideColumn};
|
|
105
106
|
}
|
|
106
107
|
`;
|
|
@@ -115,7 +116,7 @@ export const DetailPageOverviewContentMainColumn = styled(Sections)`
|
|
|
115
116
|
display: contents; // required to override nested GridPaper.
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
${
|
|
119
|
+
${bpUpSm} {
|
|
119
120
|
align-self: flex-start;
|
|
120
121
|
display: grid;
|
|
121
122
|
${mainColumn};
|
|
@@ -137,7 +138,7 @@ export const DetailPageOverviewContentSideColumn = styled(Sections)`
|
|
|
137
138
|
display: contents; // required to override nested GridPaper.
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
${
|
|
141
|
+
${bpUpSm} {
|
|
141
142
|
align-self: flex-start;
|
|
142
143
|
display: grid;
|
|
143
144
|
${sideColumn};
|
package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.styles.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Stack } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { bpUpSm } from "../../../../../../styles/common/mixins/breakpoints";
|
|
4
4
|
import { CallToActionButton as CTAButton } from "../../../../../common/Button/components/CallToActionButton/callToActionButton";
|
|
5
5
|
|
|
6
6
|
export const BackPageHeroHeadline = styled.div`
|
|
@@ -10,7 +10,7 @@ export const BackPageHeroHeadline = styled.div`
|
|
|
10
10
|
grid-column: 1 / -1; // Title and breadcrumbs consume full width of available grid.
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
${
|
|
13
|
+
${bpUpSm} {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex: 1;
|
|
16
16
|
gap: 88px;
|
|
@@ -29,7 +29,7 @@ export const CallToActionButton = styled(CTAButton)`
|
|
|
29
29
|
align-self: center;
|
|
30
30
|
justify-self: flex-start;
|
|
31
31
|
|
|
32
|
-
${
|
|
32
|
+
${bpUpSm} {
|
|
33
33
|
justify-self: flex-end;
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
-
import {
|
|
2
|
+
import { bpUpSm } from "../../../../../../../../styles/common/mixins/breakpoints";
|
|
3
3
|
|
|
4
4
|
export const BackPageHeroActions = styled.div`
|
|
5
5
|
align-items: center;
|
|
@@ -8,7 +8,7 @@ export const BackPageHeroActions = styled.div`
|
|
|
8
8
|
gap: 16px;
|
|
9
9
|
justify-self: flex-start;
|
|
10
10
|
|
|
11
|
-
${
|
|
11
|
+
${bpUpSm} {
|
|
12
12
|
justify-self: flex-end;
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Typography } from "@mui/material";
|
|
2
2
|
import React, { ReactNode } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { TYPOGRAPHY_PROPS } from "../../../../../../../../styles/common/mui/typography";
|
|
4
4
|
|
|
5
5
|
export interface SubTitleProps {
|
|
6
6
|
subTitle?: ReactNode;
|
|
@@ -13,7 +13,11 @@ export const SubTitle = ({
|
|
|
13
13
|
return (
|
|
14
14
|
<>
|
|
15
15
|
{typeof subTitle === "string" ? (
|
|
16
|
-
<Typography
|
|
16
|
+
<Typography
|
|
17
|
+
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
18
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_400}
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
17
21
|
{subTitle}
|
|
18
22
|
</Typography>
|
|
19
23
|
) : (
|