@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,42 @@
|
|
|
1
|
+
import { composeStories } from "@storybook/react";
|
|
2
|
+
import { render, screen } from "@testing-library/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { STEP_ICON_TEST_ID } from "../src/components/Stepper/components/Step/components/StepIcon/constants";
|
|
5
|
+
import * as stories from "../src/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories";
|
|
6
|
+
import { MUI_CLASSES } from "../src/tests/mui/constants";
|
|
7
|
+
import { getClassNames, getTagName } from "../src/utils/tests";
|
|
8
|
+
|
|
9
|
+
const { Active, Completed, Default } = composeStories(stories);
|
|
10
|
+
|
|
11
|
+
describe("StepIcon", () => {
|
|
12
|
+
it("renders correctly", () => {
|
|
13
|
+
render(<Default testId={STEP_ICON_TEST_ID} />);
|
|
14
|
+
const stepIconEl = screen.getByTestId(STEP_ICON_TEST_ID);
|
|
15
|
+
expect(stepIconEl).not.toBeNull();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("renders inactive step icon", () => {
|
|
19
|
+
render(<Default testId={STEP_ICON_TEST_ID} />);
|
|
20
|
+
const stepIconEl = screen.getByTestId(STEP_ICON_TEST_ID);
|
|
21
|
+
expect(stepIconEl.textContent).toEqual("1");
|
|
22
|
+
expect(getClassNames(stepIconEl)).not.toContain(MUI_CLASSES.ACTIVE);
|
|
23
|
+
expect(getClassNames(stepIconEl)).not.toContain(MUI_CLASSES.COMPLETED);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it("renders active step icon", () => {
|
|
27
|
+
render(<Active testId={STEP_ICON_TEST_ID} />);
|
|
28
|
+
const stepIconEl = screen.getByTestId(STEP_ICON_TEST_ID);
|
|
29
|
+
expect(stepIconEl.textContent).toEqual("1");
|
|
30
|
+
expect(getClassNames(stepIconEl)).toContain(MUI_CLASSES.ACTIVE);
|
|
31
|
+
expect(getClassNames(stepIconEl)).not.toContain(MUI_CLASSES.COMPLETED);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it("renders completed step icon", () => {
|
|
35
|
+
render(<Completed testId={STEP_ICON_TEST_ID} />);
|
|
36
|
+
const stepIconEl = screen.getByTestId(STEP_ICON_TEST_ID);
|
|
37
|
+
expect(stepIconEl.textContent).not.toEqual("1");
|
|
38
|
+
expect(getClassNames(stepIconEl)).not.toContain(MUI_CLASSES.ACTIVE);
|
|
39
|
+
expect(getClassNames(stepIconEl)).toContain(MUI_CLASSES.COMPLETED);
|
|
40
|
+
expect(getTagName(stepIconEl.firstElementChild)).toBe("path");
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Theme as MTheme,
|
|
3
|
+
PaletteColorOptions,
|
|
4
|
+
TypographyStyleOptions,
|
|
5
|
+
} from "@mui/material";
|
|
2
6
|
import type {} from "@mui/material/Alert";
|
|
3
7
|
import type {} from "@mui/material/Button";
|
|
4
8
|
import type {} from "@mui/material/Checkbox";
|
|
@@ -7,12 +11,10 @@ import type {} from "@mui/material/CircularProgress";
|
|
|
7
11
|
import type {} from "@mui/material/IconButton";
|
|
8
12
|
import type {} from "@mui/material/Paper";
|
|
9
13
|
import type {} from "@mui/material/styles";
|
|
10
|
-
import type {} from "@mui/material/styles/createPalette";
|
|
11
|
-
import { PaletteColorOptions } from "@mui/material/styles/createPalette";
|
|
12
|
-
import { TypographyStyleOptions } from "@mui/material/styles/createTypography";
|
|
13
14
|
import type {} from "@mui/material/SvgIcon";
|
|
14
15
|
import type {} from "@mui/material/TableCell";
|
|
15
16
|
import type {} from "@mui/material/Tabs";
|
|
17
|
+
import type {} from "@mui/material/themeCssVarsAugmentation";
|
|
16
18
|
import type {} from "@mui/material/Toolbar";
|
|
17
19
|
import type {} from "@mui/material/Typography";
|
|
18
20
|
import type {} from "@tanstack/react-table";
|
|
@@ -29,9 +31,6 @@ import {
|
|
|
29
31
|
import { GridTrackSize } from "../src/config/entities";
|
|
30
32
|
import { SIZE } from "../src/styles/common/constants/size";
|
|
31
33
|
|
|
32
|
-
/**
|
|
33
|
-
* Alert prop options.
|
|
34
|
-
*/
|
|
35
34
|
declare module "@mui/material/Alert" {
|
|
36
35
|
interface AlertProps {
|
|
37
36
|
size?: SIZE.MEDIUM | SIZE.LARGE;
|
|
@@ -44,22 +43,6 @@ declare module "@mui/material/Alert" {
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
/**
|
|
48
|
-
* Breakpoint definitions.
|
|
49
|
-
*/
|
|
50
|
-
declare module "@mui/material/styles" {
|
|
51
|
-
interface BreakpointOverrides {
|
|
52
|
-
lg: true;
|
|
53
|
-
md: true;
|
|
54
|
-
sm: true;
|
|
55
|
-
xl: false;
|
|
56
|
-
xs: true;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Button prop options.
|
|
62
|
-
*/
|
|
63
46
|
declare module "@mui/material/Button" {
|
|
64
47
|
interface ButtonPropsVariantOverrides {
|
|
65
48
|
activeNav: true;
|
|
@@ -68,27 +51,18 @@ declare module "@mui/material/Button" {
|
|
|
68
51
|
}
|
|
69
52
|
}
|
|
70
53
|
|
|
71
|
-
/**
|
|
72
|
-
* CircularProgress prop options.
|
|
73
|
-
*/
|
|
74
54
|
declare module "@mui/material/CircularProgress" {
|
|
75
55
|
interface CircularProgressPropsColorOverrides {
|
|
76
56
|
alert: true;
|
|
77
57
|
}
|
|
78
58
|
}
|
|
79
59
|
|
|
80
|
-
/**
|
|
81
|
-
* Checkbox prop options.
|
|
82
|
-
*/
|
|
83
60
|
declare module "@mui/material/Checkbox" {
|
|
84
61
|
interface CheckboxPropsSizeOverrides {
|
|
85
62
|
xsmall: true;
|
|
86
63
|
}
|
|
87
64
|
}
|
|
88
65
|
|
|
89
|
-
/**
|
|
90
|
-
* Chip prop options.
|
|
91
|
-
*/
|
|
92
66
|
declare module "@mui/material/Chip" {
|
|
93
67
|
interface ChipPropsColorOverrides {
|
|
94
68
|
default: true;
|
|
@@ -103,9 +77,6 @@ declare module "@mui/material/Chip" {
|
|
|
103
77
|
}
|
|
104
78
|
}
|
|
105
79
|
|
|
106
|
-
/**
|
|
107
|
-
* IconButton prop options.
|
|
108
|
-
*/
|
|
109
80
|
declare module "@mui/material/IconButton" {
|
|
110
81
|
interface IconButtonPropsColorOverrides {
|
|
111
82
|
ink: true;
|
|
@@ -119,34 +90,6 @@ declare module "@mui/material/IconButton" {
|
|
|
119
90
|
}
|
|
120
91
|
}
|
|
121
92
|
|
|
122
|
-
/**
|
|
123
|
-
* Palette definitions.
|
|
124
|
-
*/
|
|
125
|
-
declare module "@mui/material/styles/createPalette" {
|
|
126
|
-
interface Palette {
|
|
127
|
-
alert: PaletteColor;
|
|
128
|
-
ink: PaletteColor;
|
|
129
|
-
smoke: PaletteColor;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface PaletteColor {
|
|
133
|
-
lightest?: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
interface PaletteOptions {
|
|
137
|
-
alert?: PaletteColorOptions;
|
|
138
|
-
ink?: PaletteColorOptions;
|
|
139
|
-
smoke?: PaletteColorOptions;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
interface SimplePaletteColorOptions {
|
|
143
|
-
lightest?: string;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Paper prop options.
|
|
149
|
-
*/
|
|
150
93
|
declare module "@mui/material/Paper" {
|
|
151
94
|
interface PaperPropsVariantOverrides {
|
|
152
95
|
footer: true;
|
|
@@ -157,9 +100,6 @@ declare module "@mui/material/Paper" {
|
|
|
157
100
|
}
|
|
158
101
|
}
|
|
159
102
|
|
|
160
|
-
/**
|
|
161
|
-
* SvgIcon prop options.
|
|
162
|
-
*/
|
|
163
103
|
declare module "@mui/material/SvgIcon" {
|
|
164
104
|
interface SvgIconPropsColorOverrides {
|
|
165
105
|
inkLight: true;
|
|
@@ -173,9 +113,6 @@ declare module "@mui/material/SvgIcon" {
|
|
|
173
113
|
}
|
|
174
114
|
}
|
|
175
115
|
|
|
176
|
-
/**
|
|
177
|
-
* Tabs prop options.
|
|
178
|
-
*/
|
|
179
116
|
declare module "@mui/material/Tabs" {
|
|
180
117
|
interface TabsPropsIndicatorColorOverrides {
|
|
181
118
|
transparent: true;
|
|
@@ -184,10 +121,35 @@ declare module "@mui/material/Tabs" {
|
|
|
184
121
|
|
|
185
122
|
/* eslint-disable sonarjs/no-duplicate-string -- ignoring duplicate strings here */
|
|
186
123
|
|
|
187
|
-
/**
|
|
188
|
-
* Typography definitions.
|
|
189
|
-
*/
|
|
190
124
|
declare module "@mui/material/styles" {
|
|
125
|
+
interface BreakpointOverrides {
|
|
126
|
+
lg: true;
|
|
127
|
+
md: true;
|
|
128
|
+
sm: true;
|
|
129
|
+
xl: false;
|
|
130
|
+
xs: true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface Palette {
|
|
134
|
+
alert: PaletteColor;
|
|
135
|
+
ink: PaletteColor;
|
|
136
|
+
smoke: PaletteColor;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface PaletteColor {
|
|
140
|
+
lightest?: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface PaletteOptions {
|
|
144
|
+
alert?: PaletteColorOptions;
|
|
145
|
+
ink?: PaletteColorOptions;
|
|
146
|
+
smoke?: PaletteColorOptions;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface SimplePaletteColorOptions {
|
|
150
|
+
lightest?: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
191
153
|
interface TypographyVariants {
|
|
192
154
|
"text-body-400": TypographyStyleOptions;
|
|
193
155
|
"text-body-400-2lines": TypographyStyleOptions;
|
|
@@ -203,6 +165,7 @@ declare module "@mui/material/styles" {
|
|
|
203
165
|
"text-heading-large": TypographyStyleOptions;
|
|
204
166
|
"text-heading-small": TypographyStyleOptions;
|
|
205
167
|
"text-heading-xlarge": TypographyStyleOptions;
|
|
168
|
+
"text-heading-xsmall": TypographyStyleOptions;
|
|
206
169
|
"text-uppercase-500": TypographyStyleOptions;
|
|
207
170
|
}
|
|
208
171
|
|
|
@@ -221,22 +184,19 @@ declare module "@mui/material/styles" {
|
|
|
221
184
|
"text-heading-large"?: TypographyStyleOptions;
|
|
222
185
|
"text-heading-small"?: TypographyStyleOptions;
|
|
223
186
|
"text-heading-xlarge"?: TypographyStyleOptions;
|
|
187
|
+
"text-heading-xsmall"?: TypographyStyleOptions;
|
|
224
188
|
"text-uppercase-500"?: TypographyStyleOptions;
|
|
225
189
|
}
|
|
226
190
|
}
|
|
227
191
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
*/
|
|
192
|
+
/* eslint-enable sonarjs/no-duplicate-string -- watching duplicate strings here */
|
|
193
|
+
|
|
231
194
|
declare module "@mui/material/Toolbar" {
|
|
232
195
|
interface ToolbarPropsVariantOverrides {
|
|
233
196
|
table: true;
|
|
234
197
|
}
|
|
235
198
|
}
|
|
236
199
|
|
|
237
|
-
/**
|
|
238
|
-
* Typography variant overrides.
|
|
239
|
-
*/
|
|
240
200
|
declare module "@mui/material/Typography" {
|
|
241
201
|
interface TypographyPropsVariantOverrides {
|
|
242
202
|
"text-body-400": true;
|
|
@@ -253,12 +213,11 @@ declare module "@mui/material/Typography" {
|
|
|
253
213
|
"text-heading-large": true;
|
|
254
214
|
"text-heading-small": true;
|
|
255
215
|
"text-heading-xlarge": true;
|
|
216
|
+
"text-heading-xsmall": true;
|
|
256
217
|
"text-uppercase-500": true;
|
|
257
218
|
}
|
|
258
219
|
}
|
|
259
220
|
|
|
260
|
-
/* eslint-enable sonarjs/no-duplicate-string -- watching duplicate strings here */
|
|
261
|
-
|
|
262
221
|
declare module "@emotion/react" {
|
|
263
222
|
export interface Theme extends MTheme {
|
|
264
223
|
name: "EmotionTheme";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
export interface CellProps {
|
|
4
|
-
value?: number | string | string[];
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated - use BasicCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell"
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export const Cell = ({ value = "Unspecified" }: CellProps): JSX.Element => {
|
|
12
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
13
|
-
return <div>{value}</div>;
|
|
14
|
-
}
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
{value.map((v: string) => (
|
|
18
|
-
<div key={v}>{v}</div>
|
|
19
|
-
))}
|
|
20
|
-
</>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip as MTooltip,
|
|
3
|
-
TooltipProps as MTooltipProps,
|
|
4
|
-
PopperProps,
|
|
5
|
-
} from "@mui/material";
|
|
6
|
-
import { detectOverflow } from "@popperjs/core";
|
|
7
|
-
import { State } from "@popperjs/core/lib/types";
|
|
8
|
-
import React, { useMemo, useState } from "react";
|
|
9
|
-
import { TooltipContent } from "./tooltip.styles";
|
|
10
|
-
|
|
11
|
-
const DEFAULT_FLIP_MODIFIER = {
|
|
12
|
-
enabled: true,
|
|
13
|
-
name: "flip",
|
|
14
|
-
options: {
|
|
15
|
-
fallbackPlacements: ["bottom", "right", "left"],
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const DEFAULT_PREVENT_OVERFLOW_MODIFIER = {
|
|
20
|
-
enabled: true,
|
|
21
|
-
name: "preventOverflow",
|
|
22
|
-
options: {
|
|
23
|
-
padding: 16,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export interface TooltipProps extends MTooltipProps {
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated - use Tooltip from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/components/Tooltip/tooltip"
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
export const Tooltip = ({
|
|
36
|
-
children,
|
|
37
|
-
className,
|
|
38
|
-
title,
|
|
39
|
-
...props /* Spread props to allow for Mui Tooltip specific prop overrides. */
|
|
40
|
-
}: TooltipProps): JSX.Element => {
|
|
41
|
-
const [maxHeight, setMaxHeight] = useState<number>();
|
|
42
|
-
const modifiers: PopperProps["modifiers"] = useMemo(
|
|
43
|
-
() => [
|
|
44
|
-
{
|
|
45
|
-
enabled: true,
|
|
46
|
-
fn: ({ state }): void => setMaxHeight(calculateMaxHeight(state)),
|
|
47
|
-
name: "maxHeight",
|
|
48
|
-
phase: "main",
|
|
49
|
-
requiresIfExists: ["offset"],
|
|
50
|
-
},
|
|
51
|
-
DEFAULT_FLIP_MODIFIER,
|
|
52
|
-
DEFAULT_PREVENT_OVERFLOW_MODIFIER,
|
|
53
|
-
],
|
|
54
|
-
[]
|
|
55
|
-
);
|
|
56
|
-
return (
|
|
57
|
-
<MTooltip
|
|
58
|
-
arrow
|
|
59
|
-
className={className}
|
|
60
|
-
onClose={(): void => setMaxHeight(undefined)}
|
|
61
|
-
slotProps={{
|
|
62
|
-
popper: { modifiers },
|
|
63
|
-
tooltip: { style: { display: "flex", maxHeight, padding: 0 } },
|
|
64
|
-
}}
|
|
65
|
-
title={<TooltipContent>{title}</TooltipContent>}
|
|
66
|
-
{...props}
|
|
67
|
-
>
|
|
68
|
-
{children}
|
|
69
|
-
</MTooltip>
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Calculate the max height of the tooltip based on the current popper modifier state.
|
|
75
|
-
* @param state - Popper modifier state.
|
|
76
|
-
* @returns tooltip maximum height.
|
|
77
|
-
*/
|
|
78
|
-
function calculateMaxHeight(state: State): number | undefined {
|
|
79
|
-
const overflow = detectOverflow(state);
|
|
80
|
-
const { placement } = state;
|
|
81
|
-
if (placement === "left" || placement === "right") {
|
|
82
|
-
return window.innerHeight - 32;
|
|
83
|
-
}
|
|
84
|
-
if (placement === "top") {
|
|
85
|
-
return state.rects.popper.height - overflow.top - 24;
|
|
86
|
-
}
|
|
87
|
-
if (placement === "bottom") {
|
|
88
|
-
return state.rects.popper.height - overflow.bottom - 24;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { Tooltip } from "./components/Tooltip/tooltip";
|
|
3
|
-
|
|
4
|
-
export interface NTagProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
Tag: ReactElement;
|
|
7
|
-
TooltipTitle: ReactElement;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated - use NTag from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/components/NTag/nTag"
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
export const NTag = ({
|
|
15
|
-
className,
|
|
16
|
-
Tag,
|
|
17
|
-
TooltipTitle,
|
|
18
|
-
...props /* Spread props to allow for Mui Tooltip specific prop overrides. */
|
|
19
|
-
}: NTagProps): JSX.Element => {
|
|
20
|
-
return (
|
|
21
|
-
<Tooltip className={className} title={TooltipTitle} {...props}>
|
|
22
|
-
{Tag}
|
|
23
|
-
</Tooltip>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { NTagCell } from "./nTagCell";
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
argTypes: {
|
|
6
|
-
label: { control: "text" },
|
|
7
|
-
values: { control: "object" },
|
|
8
|
-
},
|
|
9
|
-
component: NTagCell,
|
|
10
|
-
title: "Components/Table/Cell/NTagCell",
|
|
11
|
-
} satisfies Meta<typeof NTagCell>;
|
|
12
|
-
|
|
13
|
-
export default meta;
|
|
14
|
-
|
|
15
|
-
type Story = StoryObj<typeof meta>;
|
|
16
|
-
|
|
17
|
-
export const NTagCellStory: Story = {
|
|
18
|
-
args: {
|
|
19
|
-
label: "species",
|
|
20
|
-
values: ["Homo sapiens", "Mus musculus"],
|
|
21
|
-
},
|
|
22
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Chip as MChip,
|
|
3
|
-
ChipProps as MChipProps,
|
|
4
|
-
Typography,
|
|
5
|
-
} from "@mui/material";
|
|
6
|
-
import React, { forwardRef } from "react";
|
|
7
|
-
import { TEXT_BODY_SMALL_400 } from "../../../../theme/common/typography";
|
|
8
|
-
import { TypographyProps } from "../../../common/Typography/common/entities";
|
|
9
|
-
import { NTag } from "../NTag/nTag";
|
|
10
|
-
|
|
11
|
-
// Template constants
|
|
12
|
-
const MAX_DISPLAYABLE_VALUES = 1;
|
|
13
|
-
|
|
14
|
-
export type MetadataValue = string;
|
|
15
|
-
|
|
16
|
-
export interface NTagCellProps {
|
|
17
|
-
label: string;
|
|
18
|
-
TypographyProps?: TypographyProps;
|
|
19
|
-
values: MetadataValue[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* String-concatenates the specified list of metadata values to a string value, joined by a comma ",".
|
|
24
|
-
* @param metadataValues - List of metadata values.
|
|
25
|
-
* @returns the metadata values in a string, each value joined by a comma.
|
|
26
|
-
*/
|
|
27
|
-
function stringifyMetadataValues(metadataValues: MetadataValue[]): string {
|
|
28
|
-
return metadataValues.join(", ");
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Renders tag for NTag component.
|
|
33
|
-
* Tooltip children require forward ref.
|
|
34
|
-
*/
|
|
35
|
-
const Tag = forwardRef<HTMLDivElement, MChipProps>(function Tag(props, ref) {
|
|
36
|
-
return <MChip ref={ref} {...props} />;
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated - use NTagCell from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/nTagCell"
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export const NTagCell = ({
|
|
44
|
-
label,
|
|
45
|
-
TypographyProps,
|
|
46
|
-
values,
|
|
47
|
-
}: NTagCellProps): JSX.Element => {
|
|
48
|
-
const metadataCount = values.length;
|
|
49
|
-
const showNTag = metadataCount > MAX_DISPLAYABLE_VALUES;
|
|
50
|
-
return (
|
|
51
|
-
<>
|
|
52
|
-
{showNTag ? (
|
|
53
|
-
<NTag
|
|
54
|
-
Tag={<Tag label={`${metadataCount} ${label}`} variant="ntag" />}
|
|
55
|
-
TooltipTitle={
|
|
56
|
-
<Typography display="block" variant={TEXT_BODY_SMALL_400}>
|
|
57
|
-
{stringifyMetadataValues(values)}
|
|
58
|
-
</Typography>
|
|
59
|
-
}
|
|
60
|
-
/>
|
|
61
|
-
) : (
|
|
62
|
-
values.map((value, v) => (
|
|
63
|
-
<Typography
|
|
64
|
-
key={`${value}${v}`}
|
|
65
|
-
variant="inherit"
|
|
66
|
-
{...TypographyProps}
|
|
67
|
-
>
|
|
68
|
-
{value}
|
|
69
|
-
</Typography>
|
|
70
|
-
))
|
|
71
|
-
)}
|
|
72
|
-
</>
|
|
73
|
-
);
|
|
74
|
-
};
|
package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.tsx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { BackPageHero } from "./backPageHero";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
component: BackPageHero,
|
|
6
|
-
title: "Components/Hero",
|
|
7
|
-
} as Meta<typeof BackPageHero>;
|
|
8
|
-
|
|
9
|
-
type Story = StoryObj<typeof BackPageHero>;
|
|
10
|
-
|
|
11
|
-
export const BackPageHeroStory: Story = {
|
|
12
|
-
args: {
|
|
13
|
-
title:
|
|
14
|
-
"A Single-Cell Transcriptomic Map of the Human and Mouse Pancreas Reveals Inter- and Intra-cell Population Structure",
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
|
|
3
|
-
export const TableCreator = styled.div`
|
|
4
|
-
position: relative; // Required; when the table mounts, the loading element should not transition in and therefore to position the loading element correctly, the parent container must be styled with position relative.
|
|
5
|
-
`;
|