@databiosphere/findable-ui 23.0.0 → 25.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/.storybook/preview.js +4 -37
- package/CHANGELOG.md +64 -0
- package/jest.config.js +1 -0
- package/lib/common/entities.d.ts +1 -0
- package/lib/components/DataDictionary/components/Entities/constants.d.ts +2 -2
- package/lib/components/DataDictionary/components/Entities/constants.js +1 -1
- package/lib/components/DataDictionary/components/Entities/entities.js +3 -3
- package/lib/components/DataDictionary/components/Entity/constants.d.ts +2 -2
- package/lib/components/DataDictionary/components/Entity/constants.js +1 -1
- package/lib/components/DataDictionary/components/Entity/entity.js +4 -4
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +8 -0
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +36 -0
- package/lib/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.js +1 -1
- package/lib/components/Filter/components/FilterLabel/filterLabel.js +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +2 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +17 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +13 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.js +12 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +9 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +9 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +86 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +105 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +196 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.js +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.js +29 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.d.ts +4 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.js +70 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.d.ts +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +19 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.d.ts +7 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.js +11 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +96 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +16 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/utils.d.ts +14 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/utils.js +21 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +16 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/types.js +1 -0
- package/lib/components/Index/components/EntitiesView/constants.d.ts +1 -0
- package/lib/components/Index/components/EntitiesView/constants.js +1 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.js +14 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +20 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.js +14 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.d.ts +13 -0
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.js +5 -0
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +8 -0
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +50 -0
- package/lib/components/Index/components/EntitiesView/types.d.ts +8 -0
- package/lib/components/Index/components/EntitiesView/types.js +1 -0
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -16
- package/lib/components/Index/components/NTagCell/nTagCell.stories.js +8 -8
- package/lib/components/Index/components/TitleCell/titleCell.d.ts +6 -0
- package/lib/components/Index/components/TitleCell/titleCell.js +10 -0
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +3 -0
- package/lib/components/Index/components/TitleCell/titleCell.styles.js +6 -0
- package/lib/components/Index/index.d.ts +2 -13
- package/lib/components/Index/index.js +6 -2
- package/lib/components/Index/index.stories.js +3 -2
- package/lib/components/Index/types.d.ts +12 -0
- package/lib/components/Index/types.js +1 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.d.ts +1 -1
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +5 -4
- package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.d.ts +6 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.js +18 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.js +3 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +5 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +29 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +2 -2
- 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/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +6 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +13 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +36 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +9 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.js +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.js +2 -2
- 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.js +5 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.d.ts +5 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.js +4 -3
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +5 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +10 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +36 -0
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +9 -0
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.js +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.js +2 -2
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +5 -0
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +19 -0
- package/lib/components/Layout/components/Outline/common/constants.d.ts +2 -0
- package/lib/components/Layout/components/Outline/common/constants.js +1 -0
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +1 -1
- package/lib/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.js +2 -2
- package/lib/components/Loading/loading.d.ts +2 -1
- package/lib/components/Loading/loading.js +2 -2
- package/lib/components/Loading/loading.stories.d.ts +3 -31
- package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.js +3 -3
- 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 +2 -2
- package/lib/components/Login/components/Section/components/Consent/types.d.ts +2 -2
- package/lib/components/Login/login.stories.d.ts +6 -0
- package/lib/components/Login/login.stories.js +31 -0
- package/lib/components/NoResults/noResults.d.ts +1 -8
- package/lib/components/NoResults/noResults.js +9 -8
- package/lib/components/NoResults/noResults.styles.d.ts +2 -2
- package/lib/components/NoResults/noResults.styles.js +4 -2
- package/lib/components/NoResults/types.d.ts +8 -0
- package/lib/components/NoResults/types.js +1 -0
- package/lib/components/Plot/components/BarX/barX.d.ts +2 -0
- package/lib/components/Plot/components/BarX/barX.js +13 -0
- package/lib/components/Plot/components/BarX/types.d.ts +5 -0
- package/lib/components/Plot/components/BarX/types.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.js +7 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +17 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.js +8 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.js +15 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.js +4 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/constants.d.ts +1 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/constants.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.js +27 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.d.ts +9 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.js +38 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.js +11 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.js +9 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.js +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.d.ts +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.js +20 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.d.ts +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.js +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.d.ts +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.js +21 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.js +5 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/constants.js +8 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.js +12 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/contants.d.ts +4 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/contants.js +15 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.d.ts +8 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.js +37 -0
- package/lib/components/Stepper/components/Step/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/constants.js +4 -0
- package/lib/components/Stepper/components/Step/step.d.ts +3 -0
- package/lib/components/Stepper/components/Step/step.js +6 -0
- package/lib/components/Stepper/components/Step/step.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/step.styles.js +31 -0
- package/lib/components/Stepper/components/Step/stories/contants.d.ts +4 -0
- package/lib/components/Stepper/components/Step/stories/contants.js +14 -0
- package/lib/components/Stepper/components/Step/stories/step.stories.d.ts +8 -0
- package/lib/components/Stepper/components/Step/stories/step.stories.js +62 -0
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.js +2 -2
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +16 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +28 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +5 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +46 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +3 -0
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +21 -0
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +2 -0
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +37 -0
- package/lib/components/Table/components/Pagination/pagination.js +3 -4
- package/lib/components/Table/components/TableHead/tableHead.js +2 -2
- package/lib/components/Table/table.js +11 -11
- package/lib/components/TableCreator/common/constants.d.ts +6 -0
- package/lib/components/TableCreator/common/constants.js +19 -0
- package/lib/components/TableCreator/common/entities.d.ts +5 -0
- package/lib/components/TableCreator/common/entities.js +1 -0
- package/lib/components/TableCreator/tableCreator.js +1 -6
- package/lib/components/common/Alert/alert.stories.d.ts +6 -0
- package/lib/components/common/Alert/alert.stories.js +36 -0
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +4 -0
- package/lib/components/common/Alert/components/AlertText/alertText.styles.js +19 -0
- package/lib/components/common/AnchorLink/anchorLink.js +2 -2
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +7 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +5 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +3 -0
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +19 -0
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +10 -0
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +16 -0
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +3 -0
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +21 -0
- package/lib/components/common/Breadcrumbs/breadcrumbs.js +2 -2
- package/lib/components/common/Breadcrumbs/typeGuard.d.ts +13 -0
- package/lib/components/common/Breadcrumbs/typeGuard.js +23 -0
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.js +2 -2
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +3 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.js +6 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +7 -0
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +11 -0
- package/lib/components/common/Button/components/NavigationButton/navigationButton.js +2 -2
- package/lib/components/common/CopyToClipboard/copyToClipboard.js +2 -2
- package/lib/components/common/Dialog/components/DialogTitle/dialogTitle.js +2 -2
- package/lib/components/common/Drawer/components/DrawerTitle/drawerTitle.js +2 -2
- package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.d.ts +2 -3
- package/lib/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.js +3 -3
- package/lib/components/common/Form/components/UploadFile/uploadFile.js +2 -2
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +5 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +10 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +3 -0
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +9 -0
- package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
- package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.d.ts +2 -5
- package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.js +6 -2
- package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.d.ts +2 -5
- package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.js +6 -2
- package/lib/components/common/LoginDialog/loginDialog.styles.js +1 -1
- package/lib/components/common/Paper/paper.d.ts +2 -1
- package/lib/components/common/Paper/paper.js +2 -2
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.js +2 -3
- package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.d.ts +2 -0
- package/lib/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.js +10 -0
- package/lib/components/types.d.ts +3 -0
- package/lib/config/entities.d.ts +2 -0
- package/lib/hooks/useAuthentication/common/constants.d.ts +4 -0
- package/lib/hooks/useAuthentication/common/constants.js +19 -0
- package/lib/hooks/useAuthentication/common/entities.d.ts +25 -0
- package/lib/hooks/useAuthentication/common/entities.js +11 -0
- package/lib/hooks/useAuthentication/common/utils.d.ts +15 -0
- package/lib/hooks/useAuthentication/common/utils.js +25 -0
- package/lib/hooks/useAuthentication/useAuthentication.d.ts +6 -0
- package/lib/hooks/useAuthentication/useAuthentication.js +9 -0
- package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +6 -0
- package/lib/hooks/useAuthentication/useAuthenticationComplete.js +55 -0
- package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +20 -0
- package/lib/hooks/useAuthentication/useAuthenticationForm.js +88 -0
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +18 -0
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +50 -0
- package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +20 -0
- package/lib/hooks/useAuthentication/useAuthenticationStatus.js +32 -0
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +21 -0
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +41 -0
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +18 -0
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +62 -0
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +24 -0
- package/lib/hooks/useAuthentication/useFetchTerraProfile.js +62 -0
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +15 -0
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +62 -0
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +11 -0
- package/lib/hooks/useAuthentication/useTokenClient.js +29 -0
- package/lib/hooks/useAuthenticationConfig.d.ts +6 -0
- package/lib/hooks/useAuthenticationConfig.js +14 -0
- package/lib/hooks/useCategoryConfigs.d.ts +6 -0
- package/lib/hooks/useCategoryConfigs.js +17 -0
- package/lib/hooks/useCategoryFilter.js +1 -0
- package/lib/hooks/useEntityListRelatedView.d.ts +15 -0
- package/lib/hooks/useEntityListRelatedView.js +62 -0
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +15 -0
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +27 -0
- package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +5 -0
- package/lib/hooks/useFileManifest/useFileManifestURL.js +11 -0
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +9 -0
- package/lib/hooks/useFileManifest/useRequestFileManifest.js +37 -0
- package/lib/hooks/useLayoutState.d.ts +6 -0
- package/lib/hooks/useLayoutState.js +9 -0
- package/lib/hooks/useMenu.d.ts +10 -0
- package/lib/hooks/useMenu.js +17 -0
- package/lib/hooks/useMenuWithPosition.d.ts +14 -0
- package/lib/hooks/useMenuWithPosition.js +33 -0
- package/lib/hooks/useResizeObserver.d.ts +2 -1
- package/lib/hooks/useResizeObserver.js +5 -2
- package/lib/hooks/useSessionTimeout.d.ts +11 -0
- package/lib/hooks/useSessionTimeout.js +28 -0
- package/lib/providers/authentication.d.ts +51 -0
- package/lib/providers/authentication.js +110 -0
- package/lib/providers/layoutState.d.ts +40 -0
- package/lib/providers/layoutState.js +47 -0
- package/lib/storybook/controls/constants.d.ts +4 -0
- package/lib/storybook/controls/constants.js +6 -0
- package/lib/storybook/controls/types.d.ts +4 -0
- package/lib/storybook/controls/types.js +5 -0
- package/lib/storybook/controls/utils.d.ts +9 -0
- package/lib/storybook/controls/utils.js +10 -0
- package/lib/storybook/decorators.d.ts +2 -0
- package/lib/storybook/decorators.js +11 -0
- package/lib/storybook/loremIpsum.d.ts +4 -0
- package/lib/storybook/loremIpsum.js +4 -0
- package/lib/storybook/parameters.d.ts +2 -0
- package/lib/storybook/parameters.js +12 -0
- package/lib/styles/common/mui/palette.d.ts +47 -0
- package/lib/styles/common/mui/palette.js +47 -0
- package/lib/styles/common/mui/stepper.d.ts +7 -0
- package/lib/styles/common/mui/stepper.js +7 -0
- package/lib/styles/common/mui/svgIcon.d.ts +9 -0
- package/lib/styles/common/mui/svgIcon.js +26 -0
- package/lib/styles/common/mui/typography.js +1 -0
- package/lib/tests/mui/constants.d.ts +4 -0
- package/lib/tests/mui/constants.js +4 -0
- package/lib/theme/common/typography.d.ts +6 -2
- package/lib/theme/common/typography.js +10 -1
- package/lib/theme/theme.js +2 -0
- package/lib/utils/tests.d.ts +12 -0
- package/lib/utils/tests.js +20 -0
- package/lib/views/ExploreView/exploreView.js +4 -24
- package/package.json +6 -4
- package/src/common/entities.ts +1 -0
- package/src/components/DataDictionary/components/Entities/constants.ts +2 -2
- package/src/components/DataDictionary/components/Entities/entities.tsx +4 -4
- package/src/components/DataDictionary/components/Entity/constants.ts +2 -2
- package/src/components/DataDictionary/components/Entity/entity.tsx +6 -6
- package/src/components/Export/components/ExportToTerra/components/TerraSetUpForm/components/NIHAccountExpiryWarning/nihAccountExpiryWarning.tsx +1 -1
- package/src/components/Filter/components/FilterLabel/filterLabel.tsx +2 -2
- package/src/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.tsx +2 -2
- package/src/components/Index/components/EntitiesView/components/ChartView/chartView.styles.ts +14 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +38 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +13 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +104 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +229 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.styles.ts +30 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/chart.tsx +16 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/constants.ts +1 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/args.ts +74 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +29 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/types.ts +9 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/constants.ts +1 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/types.ts +8 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/hooks/UseChartView/useChartView.ts +29 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +99 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +25 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +7 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/utils.ts +26 -0
- package/src/components/Index/components/EntitiesView/components/EntityList/entityList.tsx +29 -0
- package/src/components/Index/components/EntitiesView/components/EntityList/types.ts +3 -0
- package/src/components/Index/components/EntitiesView/constants.ts +1 -0
- package/src/components/Index/components/EntitiesView/entitiesView.styles.ts +21 -0
- package/src/components/Index/components/EntitiesView/entitiesView.tsx +30 -0
- package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.ts +15 -0
- package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/types.ts +16 -0
- package/src/components/Index/components/EntitiesView/stories/entitiesView.stories.tsx +76 -0
- package/src/components/Index/components/EntitiesView/types.ts +9 -0
- package/src/components/Index/index.stories.tsx +3 -2
- package/src/components/Index/index.tsx +15 -15
- package/src/components/Index/types.ts +13 -0
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +19 -14
- package/src/components/Layout/components/BackPage/components/BackPageHero/stories/backPageHero.stories.tsx +24 -0
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/authentication.tsx +3 -3
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/components/Toolbar/toolbar.tsx +2 -2
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Menu/menu.tsx +2 -2
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.styles.ts +8 -3
- package/src/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchBar/searchBar.tsx +5 -2
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationDrawer/navigationDrawer.tsx +2 -2
- package/src/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.tsx +2 -2
- package/src/components/Layout/components/Sidebar/components/SidebarButton/sidebarButton.tsx +2 -2
- package/src/components/Loading/loading.stories.tsx +2 -2
- package/src/components/Loading/loading.tsx +11 -3
- package/src/components/Login/components/Section/components/Consent/consent.styles.ts +2 -2
- package/src/components/Login/components/Section/components/Consent/consent.tsx +4 -4
- package/src/components/Login/components/Section/components/Consent/types.ts +2 -2
- package/src/components/NoResults/noResults.styles.ts +4 -2
- package/src/components/NoResults/noResults.tsx +16 -22
- package/src/components/NoResults/types.ts +13 -0
- package/src/components/Plot/components/BarX/barX.tsx +20 -0
- package/src/components/Plot/components/BarX/types.ts +6 -0
- package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +18 -0
- package/src/components/Stepper/components/Step/components/StepContent/stepContent.tsx +16 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.ts +19 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.tsx +20 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.ts +6 -0
- package/src/components/Stepper/components/Step/components/StepIcon/constants.ts +1 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.ts +32 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.tsx +21 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.tsx +52 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.ts +14 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.tsx +13 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.ts +6 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.tsx +30 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/constants.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/label.tsx +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.tsx +31 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.ts +7 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.tsx +9 -0
- package/src/components/Stepper/components/Step/components/StepLabel/constants.ts +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.ts +13 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stepLabel.tsx +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stories/contants.ts +19 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.tsx +48 -0
- package/src/components/Stepper/components/Step/constants.ts +6 -0
- package/src/components/Stepper/components/Step/step.styles.ts +33 -0
- package/src/components/Stepper/components/Step/step.tsx +12 -0
- package/src/components/Stepper/components/Step/stories/contants.ts +18 -0
- package/src/components/Stepper/components/Step/stories/step.stories.tsx +87 -0
- package/src/components/Support/components/SupportRequest/components/Dialog/dialog.tsx +2 -2
- package/src/components/Table/components/Pagination/pagination.tsx +3 -4
- package/src/components/Table/components/TableHead/tableHead.tsx +2 -2
- package/src/components/Table/table.tsx +42 -38
- package/src/components/TableCreator/tableCreator.tsx +8 -18
- package/src/components/common/AnchorLink/anchorLink.tsx +2 -2
- package/src/components/common/Breadcrumbs/breadcrumbs.tsx +2 -2
- package/src/components/common/Breadcrumbs/typeGuard.ts +24 -0
- package/src/components/common/Button/components/DropdownButton/dropdownButton.tsx +2 -2
- package/src/components/common/Button/components/NavigationButton/navigationButton.tsx +2 -2
- package/src/components/common/CopyToClipboard/copyToClipboard.tsx +2 -2
- package/src/components/common/Dialog/components/DialogTitle/dialogTitle.tsx +2 -2
- package/src/components/common/Drawer/components/DrawerTitle/drawerTitle.tsx +2 -2
- package/src/components/common/Form/components/Select/components/DropDownIcon/dropDownIcon.tsx +5 -6
- package/src/components/common/Form/components/UploadFile/uploadFile.tsx +2 -2
- package/src/components/common/KeyValuePairs/components/KeyElType/keyElType.tsx +14 -9
- package/src/components/common/KeyValuePairs/components/ValueElType/valueElType.tsx +8 -9
- package/src/components/common/LoginDialog/loginDialog.styles.ts +1 -1
- package/src/components/common/Paper/paper.tsx +9 -3
- package/src/components/common/Section/components/CollapsableSection/collapsableSection.tsx +2 -3
- package/src/components/common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook.ts +17 -0
- package/src/components/types.ts +4 -0
- package/src/config/entities.ts +2 -0
- package/src/hooks/useCategoryFilter.ts +1 -0
- package/src/hooks/useResizeObserver.ts +5 -2
- package/src/storybook/controls/constants.ts +12 -0
- package/src/storybook/controls/types.ts +4 -0
- package/src/storybook/controls/utils.ts +18 -0
- package/src/storybook/decorators.tsx +17 -0
- package/src/storybook/loremIpsum.ts +5 -0
- package/src/storybook/parameters.ts +14 -0
- package/src/styles/common/mui/palette.ts +47 -0
- package/src/styles/common/mui/stepper.ts +14 -0
- package/src/styles/common/mui/svgIcon.ts +35 -0
- package/src/styles/common/mui/typography.ts +1 -0
- package/src/tests/mui/constants.ts +4 -0
- package/src/theme/common/typography.ts +12 -1
- package/src/theme/theme.ts +2 -0
- package/src/utils/tests.ts +20 -0
- package/src/views/ExploreView/exploreView.tsx +8 -42
- package/tests/chart.test.tsx +170 -0
- package/tests/chartView.test.tsx +36 -0
- package/tests/entitiesView.test.tsx +36 -0
- package/tests/setup.ts +19 -0
- package/tests/stepIcon.test.tsx +42 -0
- package/types/data-explorer-ui.d.ts +39 -80
- package/src/components/Index/components/Cell/cell.tsx +0 -22
- package/src/components/Index/components/NTag/components/Tooltip/tooltip.styles.ts +0 -11
- package/src/components/Index/components/NTag/components/Tooltip/tooltip.tsx +0 -90
- package/src/components/Index/components/NTag/nTag.tsx +0 -25
- package/src/components/Index/components/NTagCell/nTagCell.stories.tsx +0 -22
- package/src/components/Index/components/NTagCell/nTagCell.tsx +0 -74
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.tsx +0 -16
- package/src/components/TableCreator/tableCreator.styles.ts +0 -5
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ToggleButton, ToggleButtonGroup, Toolbar } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { GridPaper } from "../../../common/Paper/paper.styles";
|
|
4
|
+
import { StyledFluidPaper } from "./entitiesView.styles";
|
|
5
|
+
import { VIEW_MODE } from "./hooks/UseEntitiesView/types";
|
|
6
|
+
import { EntitiesViewProps } from "./types";
|
|
7
|
+
|
|
8
|
+
export const EntitiesView = ({
|
|
9
|
+
children,
|
|
10
|
+
onChange,
|
|
11
|
+
testId,
|
|
12
|
+
viewMode,
|
|
13
|
+
viewStatus,
|
|
14
|
+
}: EntitiesViewProps): JSX.Element => {
|
|
15
|
+
return (
|
|
16
|
+
<StyledFluidPaper testId={testId}>
|
|
17
|
+
<GridPaper>
|
|
18
|
+
{viewStatus.disabled ? null : (
|
|
19
|
+
<Toolbar>
|
|
20
|
+
<ToggleButtonGroup exclusive value={viewMode} onChange={onChange}>
|
|
21
|
+
<ToggleButton value={VIEW_MODE.TABLE}>Table View</ToggleButton>
|
|
22
|
+
<ToggleButton value={VIEW_MODE.CHART}>Chart View</ToggleButton>
|
|
23
|
+
</ToggleButtonGroup>
|
|
24
|
+
</Toolbar>
|
|
25
|
+
)}
|
|
26
|
+
{children}
|
|
27
|
+
</GridPaper>
|
|
28
|
+
</StyledFluidPaper>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useConfig } from "../../../../../../hooks/useConfig";
|
|
2
|
+
import { useToggleButtonGroup } from "../../../../../common/ToggleButtonGroup/hooks/UseToggleButtonGroup/hook";
|
|
3
|
+
import { UseEntitiesViewProps, VIEW_MODE } from "./types";
|
|
4
|
+
|
|
5
|
+
export const useEntitiesView = (): UseEntitiesViewProps => {
|
|
6
|
+
const { onChange, value } = useToggleButtonGroup<VIEW_MODE>(VIEW_MODE.TABLE);
|
|
7
|
+
const { config } = useConfig();
|
|
8
|
+
const { enableEntitiesView = false } = config;
|
|
9
|
+
const disabled = !enableEntitiesView;
|
|
10
|
+
return {
|
|
11
|
+
onChange,
|
|
12
|
+
viewMode: value,
|
|
13
|
+
viewStatus: { disabled },
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
|
|
3
|
+
export enum VIEW_MODE {
|
|
4
|
+
CHART = "chart",
|
|
5
|
+
TABLE = "table",
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ViewStatus {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface UseEntitiesViewProps {
|
|
13
|
+
onChange: ToggleButtonGroupProps["onChange"];
|
|
14
|
+
viewMode: VIEW_MODE;
|
|
15
|
+
viewStatus: ViewStatus;
|
|
16
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Box } from "@mui/material";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import { fn } from "@storybook/test";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { LOREM_IPSUM } from "../../../../../storybook/loremIpsum";
|
|
6
|
+
import { EntitiesView } from "../entitiesView";
|
|
7
|
+
import { VIEW_MODE } from "../hooks/UseEntitiesView/types";
|
|
8
|
+
|
|
9
|
+
const meta: Meta<typeof EntitiesView> = {
|
|
10
|
+
args: {
|
|
11
|
+
onChange: fn(),
|
|
12
|
+
viewMode: VIEW_MODE.TABLE,
|
|
13
|
+
viewStatus: { disabled: true },
|
|
14
|
+
},
|
|
15
|
+
component: EntitiesView,
|
|
16
|
+
title: "Components/Entities/EntitiesView",
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
|
|
23
|
+
export const Default: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
children: (
|
|
26
|
+
<Box
|
|
27
|
+
sx={{
|
|
28
|
+
backgroundColor: "white",
|
|
29
|
+
maxWidth: "800px",
|
|
30
|
+
padding: 5,
|
|
31
|
+
width: "100%",
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
34
|
+
{LOREM_IPSUM.LONG}
|
|
35
|
+
</Box>
|
|
36
|
+
),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const ChartView: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
children: (
|
|
43
|
+
<Box
|
|
44
|
+
sx={{
|
|
45
|
+
backgroundColor: "white",
|
|
46
|
+
maxWidth: "800px",
|
|
47
|
+
padding: 5,
|
|
48
|
+
width: "100%",
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
{LOREM_IPSUM.SHORT}
|
|
52
|
+
</Box>
|
|
53
|
+
),
|
|
54
|
+
viewMode: VIEW_MODE.CHART,
|
|
55
|
+
viewStatus: { disabled: false },
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const TableView: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
children: (
|
|
62
|
+
<Box
|
|
63
|
+
sx={{
|
|
64
|
+
backgroundColor: "white",
|
|
65
|
+
maxWidth: "800px",
|
|
66
|
+
padding: 5,
|
|
67
|
+
width: "100%",
|
|
68
|
+
}}
|
|
69
|
+
>
|
|
70
|
+
{LOREM_IPSUM.SHORT}
|
|
71
|
+
</Box>
|
|
72
|
+
),
|
|
73
|
+
viewMode: VIEW_MODE.TABLE,
|
|
74
|
+
viewStatus: { disabled: false },
|
|
75
|
+
},
|
|
76
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
import { ChildrenProps, TestIdProps } from "../../../types";
|
|
3
|
+
import { VIEW_MODE, ViewStatus } from "./hooks/UseEntitiesView/types";
|
|
4
|
+
|
|
5
|
+
export interface EntitiesViewProps extends ChildrenProps, TestIdProps {
|
|
6
|
+
onChange: ToggleButtonGroupProps["onChange"];
|
|
7
|
+
viewMode: VIEW_MODE;
|
|
8
|
+
viewStatus: ViewStatus;
|
|
9
|
+
}
|
|
@@ -6,9 +6,9 @@ import { Index } from "./index";
|
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
argTypes: {
|
|
9
|
-
List: { table: { disable: true } },
|
|
10
9
|
Summaries: { table: { disable: true } },
|
|
11
10
|
Tabs: { table: { disable: true } },
|
|
11
|
+
list: { table: { disable: true } },
|
|
12
12
|
title: { table: { disable: true } },
|
|
13
13
|
},
|
|
14
14
|
component: Index,
|
|
@@ -22,9 +22,10 @@ type Story = StoryObj<typeof Index>;
|
|
|
22
22
|
|
|
23
23
|
export const IndexStory: Story = {
|
|
24
24
|
args: {
|
|
25
|
-
List: undefined,
|
|
26
25
|
Summaries: <Summaries {...SummariesStory.args} />,
|
|
27
26
|
Tabs: undefined,
|
|
27
|
+
chart: undefined,
|
|
28
|
+
list: undefined,
|
|
28
29
|
title: "Explore Data",
|
|
29
30
|
},
|
|
30
31
|
};
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { useLayoutDimensions } from "../../providers/layoutDimensions/hook";
|
|
3
|
-
import {
|
|
3
|
+
import { EntitiesView } from "./components/EntitiesView/entitiesView";
|
|
4
|
+
import { useEntitiesView } from "./components/EntitiesView/hooks/UseEntitiesView/hook";
|
|
5
|
+
import { VIEW_MODE } from "./components/EntitiesView/hooks/UseEntitiesView/types";
|
|
4
6
|
import { Hero } from "./components/Hero/hero";
|
|
5
7
|
import { Index as IndexLayout } from "./index.styles";
|
|
6
|
-
|
|
7
|
-
export interface IndexProps {
|
|
8
|
-
className?: string;
|
|
9
|
-
List?: ReactNode;
|
|
10
|
-
ListHero?: ReactNode | ReactNode[];
|
|
11
|
-
SideBarButton?: ReactNode;
|
|
12
|
-
SubTitleHero?: ReactNode | ReactNode[];
|
|
13
|
-
Summaries?: ReactNode;
|
|
14
|
-
Tabs?: ReactNode;
|
|
15
|
-
title: HeroTitle;
|
|
16
|
-
}
|
|
8
|
+
import { IndexProps } from "./types";
|
|
17
9
|
|
|
18
10
|
export const Index = ({
|
|
11
|
+
chart,
|
|
19
12
|
className,
|
|
20
|
-
|
|
13
|
+
list,
|
|
21
14
|
ListHero,
|
|
22
15
|
SideBarButton,
|
|
23
16
|
SubTitleHero,
|
|
@@ -25,6 +18,7 @@ export const Index = ({
|
|
|
25
18
|
Tabs,
|
|
26
19
|
title,
|
|
27
20
|
}: IndexProps): JSX.Element => {
|
|
21
|
+
const { onChange, viewMode, viewStatus } = useEntitiesView();
|
|
28
22
|
const { dimensions } = useLayoutDimensions();
|
|
29
23
|
return (
|
|
30
24
|
<IndexLayout className={className} marginTop={dimensions.header.height}>
|
|
@@ -32,7 +26,13 @@ export const Index = ({
|
|
|
32
26
|
{SubTitleHero}
|
|
33
27
|
{Tabs}
|
|
34
28
|
{ListHero}
|
|
35
|
-
|
|
29
|
+
<EntitiesView
|
|
30
|
+
onChange={onChange}
|
|
31
|
+
viewMode={viewMode}
|
|
32
|
+
viewStatus={viewStatus}
|
|
33
|
+
>
|
|
34
|
+
{viewMode === VIEW_MODE.TABLE ? list : chart}
|
|
35
|
+
</EntitiesView>
|
|
36
36
|
</IndexLayout>
|
|
37
37
|
);
|
|
38
38
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseComponentProps } from "components/types";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
export interface IndexProps extends BaseComponentProps {
|
|
5
|
+
chart?: ReactNode;
|
|
6
|
+
list?: ReactNode;
|
|
7
|
+
ListHero?: ReactNode | ReactNode[];
|
|
8
|
+
SideBarButton?: ReactNode;
|
|
9
|
+
SubTitleHero?: ReactNode | ReactNode[];
|
|
10
|
+
Summaries?: ReactNode;
|
|
11
|
+
Tabs?: ReactNode;
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
}
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
Breadcrumb,
|
|
4
4
|
Breadcrumbs,
|
|
5
5
|
} from "../../../../../common/Breadcrumbs/breadcrumbs";
|
|
6
|
+
import { isBreadcrumbArray } from "../../../../../common/Breadcrumbs/typeGuard";
|
|
6
7
|
import { CallToAction } from "../../../../../common/Button/components/CallToActionButton/callToActionButton";
|
|
7
8
|
import { Title } from "../../../../../common/Title/title";
|
|
8
9
|
import {
|
|
@@ -18,7 +19,7 @@ import { SubTitle } from "./components/SubTitle/subTitle";
|
|
|
18
19
|
|
|
19
20
|
export interface BackPageHeroProps {
|
|
20
21
|
actions?: ReactNode;
|
|
21
|
-
breadcrumbs?: Breadcrumb[];
|
|
22
|
+
breadcrumbs?: Breadcrumb[] | ReactNode;
|
|
22
23
|
callToAction?: CallToAction;
|
|
23
24
|
children?: ReactNode;
|
|
24
25
|
subTitle?: ReactNode;
|
|
@@ -36,19 +37,23 @@ export const BackPageHero = ({
|
|
|
36
37
|
const HeroHeadline =
|
|
37
38
|
actions || callToAction ? BackPageHeroHeadline : Fragment;
|
|
38
39
|
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
<Fragment>
|
|
41
|
+
<HeroHeadline>
|
|
42
|
+
<HeroHeader gap={1}>
|
|
43
|
+
{breadcrumbs ? (
|
|
44
|
+
isBreadcrumbArray(breadcrumbs) ? (
|
|
45
|
+
<Breadcrumbs breadcrumbs={breadcrumbs} />
|
|
46
|
+
) : (
|
|
47
|
+
breadcrumbs
|
|
48
|
+
)
|
|
49
|
+
) : null}
|
|
50
|
+
{title && <Title title={title} />}
|
|
51
|
+
<SubTitle subTitle={subTitle} />
|
|
52
|
+
</HeroHeader>
|
|
53
|
+
{actions}
|
|
54
|
+
{callToAction && <CallToActionButton callToAction={callToAction} />}
|
|
55
|
+
</HeroHeadline>
|
|
51
56
|
{children}
|
|
52
|
-
|
|
57
|
+
</Fragment>
|
|
53
58
|
);
|
|
54
59
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { BackPageHero } from "../backPageHero";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof BackPageHero> = {
|
|
5
|
+
component: BackPageHero,
|
|
6
|
+
title: "Components/EntityView/BackPageHero",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj<typeof BackPageHero>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
args: {
|
|
15
|
+
breadcrumbs: [
|
|
16
|
+
{ path: "/", text: "Explore" },
|
|
17
|
+
{
|
|
18
|
+
path: "",
|
|
19
|
+
text: "Spatial multi-omic map of human myocardial infarction",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
title: "Spatial multi-omic map of human myocardial infarction",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LoginRounded } from "@mui/icons-material";
|
|
2
2
|
import {
|
|
3
3
|
ButtonProps as MButtonProps,
|
|
4
4
|
IconButton as MIconButton,
|
|
@@ -50,7 +50,7 @@ export function renderButton(
|
|
|
50
50
|
): JSX.Element {
|
|
51
51
|
return (
|
|
52
52
|
<StyledButton
|
|
53
|
-
startIcon={<
|
|
53
|
+
startIcon={<LoginRounded />}
|
|
54
54
|
variant={
|
|
55
55
|
isNavigationLinkSelected(pathname, [ROUTE.LOGIN]) ? "activeNav" : "nav"
|
|
56
56
|
}
|
|
@@ -69,7 +69,7 @@ export function renderButton(
|
|
|
69
69
|
export function renderIconButton(props: MIconButtonProps): JSX.Element {
|
|
70
70
|
return (
|
|
71
71
|
<MIconButton color="ink" {...props}>
|
|
72
|
-
<
|
|
72
|
+
<LoginRounded />
|
|
73
73
|
</MIconButton>
|
|
74
74
|
);
|
|
75
75
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CloseRounded } from "@mui/icons-material";
|
|
2
2
|
import { IconButton, Toolbar as MToolbar } from "@mui/material";
|
|
3
3
|
import React, { Fragment, ReactNode } from "react";
|
|
4
4
|
import { ComponentsConfig } from "../../../../../../../../../../../../config/entities";
|
|
@@ -57,7 +57,7 @@ export const Toolbar = ({
|
|
|
57
57
|
{actions}
|
|
58
58
|
{/* Close menu */}
|
|
59
59
|
<IconButton color="ink" onClick={onClose}>
|
|
60
|
-
<
|
|
60
|
+
<CloseRounded />
|
|
61
61
|
</IconButton>
|
|
62
62
|
</Actions>
|
|
63
63
|
</Right>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuRounded } from "@mui/icons-material";
|
|
2
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";
|
|
@@ -47,7 +47,7 @@ export const Menu = forwardRef<HTMLButtonElement, MenuProps>(
|
|
|
47
47
|
return (
|
|
48
48
|
<Fragment>
|
|
49
49
|
<IconButton color="ink" onClick={openMenu} ref={ref} style={style}>
|
|
50
|
-
<
|
|
50
|
+
<MenuRounded />
|
|
51
51
|
</IconButton>
|
|
52
52
|
<MDialog
|
|
53
53
|
{...DIALOG_PROPS}
|
|
@@ -5,14 +5,19 @@ import {
|
|
|
5
5
|
smokeMain,
|
|
6
6
|
} from "../../../../../../../../../../../../styles/common/mixins/colors";
|
|
7
7
|
import { IconButton } from "../../../../../../../../../../../common/IconButton/iconButton";
|
|
8
|
-
import { HEADER_HEIGHT } from "../../../../../../../../common/constants";
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
interface Props {
|
|
10
|
+
yOffset: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const SearchBar = styled(Dialog, {
|
|
14
|
+
shouldForwardProp: (prop) => prop !== "yOffset",
|
|
15
|
+
})<Props>`
|
|
11
16
|
.MuiDialog-container {
|
|
12
17
|
width: 100%;
|
|
13
18
|
|
|
14
19
|
.MuiDialog-paper {
|
|
15
|
-
margin-top: ${
|
|
20
|
+
margin-top: ${(props) => props.yOffset}px;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
23
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CloseRounded } from "@mui/icons-material";
|
|
2
2
|
import { useSearchParams } from "next/navigation";
|
|
3
3
|
import Router from "next/router";
|
|
4
4
|
import React, {
|
|
@@ -9,6 +9,7 @@ import React, {
|
|
|
9
9
|
useState,
|
|
10
10
|
} from "react";
|
|
11
11
|
import { isValidUrl } from "../../../../../../../../../../../../common/utils";
|
|
12
|
+
import { useLayoutDimensions } from "../../../../../../../../../../../../providers/layoutDimensions/hook";
|
|
12
13
|
import { ButtonPrimary } from "../../../../../../../../../../../common/Button/components/ButtonPrimary/buttonPrimary";
|
|
13
14
|
import { SearchIcon } from "../../../../../../../../../../../common/CustomIcon/components/SearchIcon/searchIcon";
|
|
14
15
|
import { isClientSideNavigation } from "../../../../../../../../../../../Links/common/utils";
|
|
@@ -33,6 +34,7 @@ export default function SearchBar({
|
|
|
33
34
|
searchOpen,
|
|
34
35
|
searchURL,
|
|
35
36
|
}: Props): JSX.Element {
|
|
37
|
+
const { dimensions } = useLayoutDimensions();
|
|
36
38
|
const inputRef = useRef<HTMLInputElement>(null);
|
|
37
39
|
const searchParams = useSearchParams();
|
|
38
40
|
const [searchTerm, setSearchTerm] = useState<string>("");
|
|
@@ -108,6 +110,7 @@ export default function SearchBar({
|
|
|
108
110
|
open={searchOpen}
|
|
109
111
|
PaperProps={{ variant: "searchbar" }}
|
|
110
112
|
TransitionProps={{ onExited: handleExited }}
|
|
113
|
+
yOffset={dimensions.header.height - 1} // 1px border.
|
|
111
114
|
>
|
|
112
115
|
<SearchForm
|
|
113
116
|
onSubmit={(e: FormEvent<HTMLFormElement>): void =>
|
|
@@ -122,7 +125,7 @@ export default function SearchBar({
|
|
|
122
125
|
searchTerm ? (
|
|
123
126
|
<ClearButton
|
|
124
127
|
edge="end"
|
|
125
|
-
Icon={
|
|
128
|
+
Icon={CloseRounded}
|
|
126
129
|
onClick={handleClear}
|
|
127
130
|
size="small"
|
|
128
131
|
/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArrowDropDownRounded } from "@mui/icons-material";
|
|
2
2
|
import React, { ReactNode, useCallback } from "react";
|
|
3
3
|
import { Button } from "../../../../../../../../../common/Button/button";
|
|
4
4
|
import { BackArrowIcon } from "../../../../../../../../../common/CustomIcon/components/BackArrowIcon/backArrowIcon";
|
|
@@ -43,7 +43,7 @@ export const NavigationDrawer = ({
|
|
|
43
43
|
return (
|
|
44
44
|
<>
|
|
45
45
|
<Button
|
|
46
|
-
EndIcon={
|
|
46
|
+
EndIcon={ArrowDropDownRounded}
|
|
47
47
|
onClick={onOpen}
|
|
48
48
|
variant={isSelected ? "activeNav" : "nav"}
|
|
49
49
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArrowDropDownRounded } from "@mui/icons-material";
|
|
2
2
|
import {
|
|
3
3
|
Grow,
|
|
4
4
|
ClickAwayListener as MClickAwayListener,
|
|
@@ -55,7 +55,7 @@ export const NavigationMenu = ({
|
|
|
55
55
|
return (
|
|
56
56
|
<MenuItem>
|
|
57
57
|
<Button
|
|
58
|
-
EndIcon={
|
|
58
|
+
EndIcon={ArrowDropDownRounded}
|
|
59
59
|
isActive={open}
|
|
60
60
|
onClick={onOpen}
|
|
61
61
|
variant={isSelected ? "activeNav" : "nav"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FilterListRounded } from "@mui/icons-material";
|
|
2
2
|
import React, { ReactNode } from "react";
|
|
3
3
|
import { Badge, SidebarButton as Button } from "./sidebarButton.styles";
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ export const SidebarButton = ({
|
|
|
18
18
|
}: SidebarButtonProps): JSX.Element => {
|
|
19
19
|
return (
|
|
20
20
|
<Button className={className} onClick={onClick} {...props}>
|
|
21
|
-
<
|
|
21
|
+
<FilterListRounded fontSize="small" />
|
|
22
22
|
{label}
|
|
23
23
|
{count > 0 && <Badge>{count}</Badge>}
|
|
24
24
|
</Button>
|
|
@@ -3,7 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { PAPER_PANEL_STYLE } from "../common/Paper/paper";
|
|
4
4
|
import { Loading } from "./loading";
|
|
5
5
|
|
|
6
|
-
const meta = {
|
|
6
|
+
const meta: Meta<typeof Loading> = {
|
|
7
7
|
argTypes: {
|
|
8
8
|
appear: { control: "boolean" },
|
|
9
9
|
iconSize: { control: "select", options: ["small", "medium", "large"] },
|
|
@@ -30,7 +30,7 @@ const meta = {
|
|
|
30
30
|
),
|
|
31
31
|
],
|
|
32
32
|
title: "Components/Communication/Loading",
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
|
|
35
35
|
export default meta;
|
|
36
36
|
|
|
@@ -21,7 +21,14 @@ export enum LOADING_PANEL_STYLE {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface LoadingProps {
|
|
24
|
-
appear
|
|
24
|
+
/* `appear`, if false, the component will not transition on the initial render and onEnter callbacks will not be called.
|
|
25
|
+
* In this instance, ensure the parent container is styled correctly with position relative.
|
|
26
|
+
*/
|
|
27
|
+
appear?: boolean;
|
|
28
|
+
/* `autoPosition`, if true, the loading component will automatically apply `position: relative` to its parent on enter and remove it on exit.
|
|
29
|
+
* False will disable this behavior, and the parent will need to be styled with `position: relative` manually.
|
|
30
|
+
*/
|
|
31
|
+
autoPosition?: boolean;
|
|
25
32
|
iconSize?: SvgIconProps["fontSize"];
|
|
26
33
|
loading: boolean;
|
|
27
34
|
panelStyle?: LoadingPanelStyle; // Enables loading to mirror parent container styles.
|
|
@@ -30,6 +37,7 @@ export interface LoadingProps {
|
|
|
30
37
|
|
|
31
38
|
export const Loading = ({
|
|
32
39
|
appear = true,
|
|
40
|
+
autoPosition = true,
|
|
33
41
|
iconSize = "large",
|
|
34
42
|
loading,
|
|
35
43
|
panelStyle = PAPER_PANEL_STYLE.ROUNDED,
|
|
@@ -40,8 +48,8 @@ export const Loading = ({
|
|
|
40
48
|
appear={appear}
|
|
41
49
|
in={loading}
|
|
42
50
|
mountOnEnter
|
|
43
|
-
onEnter={
|
|
44
|
-
onExited={
|
|
51
|
+
onEnter={autoPosition ? onFadeEnter : undefined}
|
|
52
|
+
onExited={autoPosition ? onFadeExited : undefined}
|
|
45
53
|
timeout={300}
|
|
46
54
|
unmountOnExit
|
|
47
55
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const StyledGrid = styled(Grid)`
|
|
5
5
|
align-items: center;
|
|
6
6
|
align-self: flex-start;
|
|
7
7
|
display: flex;
|
|
@@ -5,7 +5,7 @@ import { CheckedIcon } from "../../../../../common/CustomIcon/components/Checked
|
|
|
5
5
|
import { UncheckedErrorIcon } from "../../../../../common/CustomIcon/components/UncheckedErrorIcon/uncheckedErrorIcon";
|
|
6
6
|
import { UncheckedIcon } from "../../../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
|
|
7
7
|
import { BaseComponentProps } from "../../../../../types";
|
|
8
|
-
import {
|
|
8
|
+
import { StyledGrid } from "./consent.styles";
|
|
9
9
|
import { ConsentProps } from "./types";
|
|
10
10
|
|
|
11
11
|
export const Consent = ({
|
|
@@ -14,17 +14,17 @@ export const Consent = ({
|
|
|
14
14
|
handleConsent,
|
|
15
15
|
isDisabled,
|
|
16
16
|
isError,
|
|
17
|
-
...props /* Mui
|
|
17
|
+
...props /* Mui GridProps */
|
|
18
18
|
}: BaseComponentProps & ConsentProps): JSX.Element | null => {
|
|
19
19
|
if (isDisabled) return null;
|
|
20
20
|
return (
|
|
21
|
-
<
|
|
21
|
+
<StyledGrid className={className} {...props}>
|
|
22
22
|
<Checkbox
|
|
23
23
|
checkedIcon={<CheckedIcon />}
|
|
24
24
|
icon={isError ? <UncheckedErrorIcon /> : <UncheckedIcon />}
|
|
25
25
|
onChange={handleConsent}
|
|
26
26
|
/>
|
|
27
27
|
<Typography variant={TEXT_BODY_400}>{children}</Typography>
|
|
28
|
-
</
|
|
28
|
+
</StyledGrid>
|
|
29
29
|
);
|
|
30
30
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridProps } from "@mui/material";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { UseUserConsent } from "../../../../hooks/useUserConsent/types";
|
|
4
4
|
|
|
5
5
|
export interface ConsentProps
|
|
6
|
-
extends
|
|
6
|
+
extends GridProps,
|
|
7
7
|
Pick<UseUserConsent, "handleConsent">,
|
|
8
8
|
Pick<UseUserConsent["state"], "isDisabled" | "isError"> {
|
|
9
9
|
children: ReactNode;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
+
import { white } from "../../styles/common/mixins/colors";
|
|
2
3
|
import { Section, SectionContent } from "../common/Section/section.styles";
|
|
3
4
|
|
|
4
|
-
export const
|
|
5
|
+
export const StyledSection = styled(Section)`
|
|
5
6
|
align-items: center;
|
|
7
|
+
background-color: ${white};
|
|
6
8
|
padding: 40px !important; /* Overrides section padding. */
|
|
7
9
|
`;
|
|
8
10
|
|
|
9
|
-
export const
|
|
11
|
+
export const StyledSectionContent = styled(SectionContent)`
|
|
10
12
|
max-width: 456px;
|
|
11
13
|
text-align: center;
|
|
12
14
|
`;
|