@databiosphere/findable-ui 25.0.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +56 -0
- package/lib/common/entities.d.ts +25 -0
- package/lib/components/DataDictionary/common/utils.js +10 -8
- package/lib/components/DataDictionary/components/Entities/entities.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entities/entities.js +2 -2
- package/lib/components/DataDictionary/components/Entities/types.d.ts +3 -1
- package/lib/components/DataDictionary/components/Entity/entity.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entity/entity.js +2 -2
- package/lib/components/DataDictionary/components/Entity/types.d.ts +3 -1
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +1 -2
- package/lib/components/DataDictionary/components/Table/hook.d.ts +2 -2
- package/lib/components/DataDictionary/components/Table/hook.js +2 -3
- package/lib/components/DataDictionary/dataDictionary.js +2 -2
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +7 -2
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +3 -1
- package/lib/components/Detail/components/Table/stories/args.d.ts +27 -0
- package/lib/components/Detail/components/Table/stories/args.js +100 -0
- package/lib/components/Detail/components/Table/stories/constants.d.ts +4 -0
- package/lib/components/Detail/components/Table/stories/constants.js +11 -0
- package/lib/components/Detail/components/Table/stories/filter/args.d.ts +5 -0
- package/lib/components/Detail/components/Table/stories/filter/args.js +50 -0
- package/lib/components/Detail/components/Table/stories/filter/filter.stories.d.ts +11 -0
- package/lib/components/Detail/components/Table/stories/filter/filter.stories.js +78 -0
- package/lib/components/Detail/components/Table/stories/table.stories.d.ts +6 -0
- package/lib/components/Detail/components/Table/stories/table.stories.js +19 -0
- package/lib/components/Detail/components/Table/table.js +2 -0
- package/lib/components/Export/components/ExportMethod/exportMethod.d.ts +2 -2
- package/lib/components/Export/components/ExportMethod/exportMethod.styles.js +1 -1
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +2 -1
- package/lib/components/Filter/components/Filter/filter.js +2 -1
- package/lib/components/Filter/components/FilterRange/constants.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/constants.js +27 -0
- package/lib/components/Filter/components/FilterRange/filterRange.d.ts +2 -0
- package/lib/components/Filter/components/FilterRange/filterRange.js +26 -0
- package/lib/components/Filter/components/FilterRange/filterRange.styles.d.ts +4 -0
- package/lib/components/Filter/components/FilterRange/filterRange.styles.js +66 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.d.ts +2 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.js +14 -0
- package/lib/components/Filter/components/FilterRange/hooks/UseFilterRange/types.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.d.ts +6 -0
- package/lib/components/Filter/components/FilterRange/stories/filterRange.stories.js +9 -0
- package/lib/components/Filter/components/FilterRange/types.d.ts +8 -0
- package/lib/components/Filter/components/FilterRange/types.js +6 -0
- package/lib/components/Filter/components/Filters/filters.js +2 -1
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.d.ts +3 -2
- package/lib/components/Filter/components/HighlightedLabel/highlightedLabel.js +2 -2
- package/lib/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.js +3 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +2 -1
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +1 -2
- package/lib/components/Filter/components/VariableSizeListItem/variableSizeListItem.js +3 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +1 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +5 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.d.ts +2 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +2 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.js +10 -7
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +6 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +4 -4
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.js +1 -2
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/args.js +1 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.js +0 -1
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +1 -1
- package/lib/components/Index/components/EntitiesView/entitiesView.js +3 -2
- package/lib/components/Index/components/EntitiesView/types.d.ts +2 -2
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +2 -1
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/outline.styles.js +1 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +2 -1
- package/lib/components/Layout/components/Sidebar/sidebar.js +4 -1
- package/lib/components/Loading/loading.styles.js +2 -1
- package/lib/components/Login/components/Button/constants.js +2 -3
- package/lib/components/Login/components/Button/types.d.ts +1 -1
- package/lib/components/Login/components/Buttons/types.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.js +4 -4
- package/lib/components/Support/components/ViewSupport/viewSupport.styles.js +2 -2
- package/lib/components/Table/columnDef/columnFilters/filterFn.d.ts +13 -0
- package/lib/components/Table/columnDef/columnFilters/filterFn.js +22 -0
- package/lib/components/Table/common/columnDef.js +2 -0
- package/lib/components/Table/common/utils.d.ts +1 -13
- package/lib/components/Table/common/utils.js +1 -23
- package/lib/components/Table/components/Pagination/pagination.js +3 -2
- package/lib/components/Table/components/PaginationSummary/paginationSummary.js +2 -1
- package/lib/components/Table/components/TableRows/tableRows.js +7 -3
- package/lib/components/Table/table.js +3 -1
- package/lib/components/TableCreator/tableCreator.js +12 -3
- package/lib/components/common/Button/components/ButtonOutline/buttonOutline.styles.js +7 -7
- package/lib/components/common/Button/constants.d.ts +2 -0
- package/lib/components/common/Button/constants.js +21 -0
- package/lib/components/common/LoginDialog/loginDialog.styles.js +2 -3
- package/lib/components/types.d.ts +3 -0
- package/lib/config/entities.d.ts +3 -3
- package/lib/config/utils.js +1 -1
- package/lib/hooks/useEntityList.js +2 -1
- package/lib/hooks/useEntityService.js +1 -1
- package/lib/hooks/useExploreMode/types.d.ts +6 -0
- package/lib/hooks/useExploreMode/types.js +6 -0
- package/lib/hooks/{useExploreMode.d.ts → useExploreMode/useExploreMode.d.ts} +1 -6
- package/lib/hooks/{useExploreMode.js → useExploreMode/useExploreMode.js} +1 -7
- package/lib/hooks/useFetchEntity.js +2 -1
- package/lib/styles/common/constants/colorMixes.d.ts +18 -0
- package/lib/styles/common/constants/colorMixes.js +19 -0
- package/lib/styles/common/constants/shadows.d.ts +5 -0
- package/lib/styles/common/constants/shadows.js +5 -0
- package/lib/styles/common/mui/button.d.ts +10 -2
- package/lib/styles/common/mui/button.js +12 -2
- package/lib/tests/mui/constants.d.ts +1 -0
- package/lib/tests/mui/constants.js +1 -0
- package/lib/tests/testIds.d.ts +19 -0
- package/lib/tests/testIds.js +19 -0
- package/lib/theme/common/components.d.ts +2 -3
- package/lib/theme/common/components.js +47 -51
- package/lib/theme/common/palette.d.ts +0 -44
- package/lib/theme/common/palette.js +27 -82
- package/lib/theme/common/shadows.d.ts +2 -28
- package/lib/theme/common/shadows.js +27 -32
- package/lib/theme/components/muiAlert.js +5 -5
- package/lib/theme/theme.js +7 -7
- package/lib/views/ExploreView/exploreView.js +4 -3
- package/package.json +4 -4
- package/src/common/entities.ts +30 -0
- package/src/components/DataDictionary/common/utils.ts +12 -8
- package/src/components/DataDictionary/components/Entities/entities.tsx +11 -2
- package/src/components/DataDictionary/components/Entities/types.ts +3 -1
- package/src/components/DataDictionary/components/Entity/entity.tsx +2 -1
- package/src/components/DataDictionary/components/Entity/types.ts +3 -1
- package/src/components/DataDictionary/components/Table/components/BasicCell/types.ts +1 -2
- package/src/components/DataDictionary/components/Table/hook.ts +6 -4
- package/src/components/DataDictionary/dataDictionary.tsx +2 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/hook.ts +8 -2
- package/src/components/DataDictionary/hooks/UseDataDictionary/types.ts +3 -1
- package/src/components/Detail/components/Table/stories/args.ts +104 -0
- package/src/components/Detail/components/Table/stories/constants.ts +15 -0
- package/src/components/Detail/components/Table/stories/filter/args.ts +54 -0
- package/src/components/Detail/components/Table/stories/filter/filter.stories.tsx +90 -0
- package/src/components/Detail/components/Table/stories/table.stories.tsx +32 -0
- package/src/components/Detail/components/Table/table.tsx +2 -0
- package/src/components/Export/components/ExportMethod/exportMethod.styles.ts +1 -1
- package/src/components/Export/components/ExportMethod/exportMethod.tsx +3 -2
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +7 -1
- package/src/components/Filter/components/Filter/filter.tsx +2 -0
- package/src/components/Filter/components/FilterRange/constants.ts +41 -0
- package/src/components/Filter/components/FilterRange/filterRange.styles.ts +71 -0
- package/src/components/Filter/components/FilterRange/filterRange.tsx +71 -0
- package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/hook.ts +20 -0
- package/src/components/Filter/components/FilterRange/hooks/UseFilterRange/types.ts +9 -0
- package/src/components/Filter/components/FilterRange/stories/filterRange.stories.tsx +15 -0
- package/src/components/Filter/components/FilterRange/types.ts +9 -0
- package/src/components/Filter/components/Filters/filters.tsx +7 -1
- package/src/components/Filter/components/HighlightedLabel/highlightedLabel.tsx +4 -2
- package/src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +2 -0
- package/src/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.ts +1 -2
- package/src/components/Filter/components/VariableSizeListItem/variableSizeListItem.tsx +14 -2
- package/src/components/Index/components/EntitiesView/components/ChartView/chartView.tsx +2 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.ts +3 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/plot.ts +10 -7
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.ts +10 -4
- package/src/components/Index/components/EntitiesView/components/ChartView/components/Chart/stories/chart.stories.tsx +1 -2
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/args.ts +1 -0
- package/src/components/Index/components/EntitiesView/components/ChartView/stories/chartView.stories.tsx +0 -1
- package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +2 -0
- package/src/components/Index/components/EntitiesView/entitiesView.tsx +2 -2
- package/src/components/Index/components/EntitiesView/types.ts +2 -2
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +2 -0
- package/src/components/Layout/components/Outline/outline.styles.ts +1 -2
- package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +2 -0
- package/src/components/Layout/components/Sidebar/sidebar.tsx +4 -1
- package/src/components/Loading/loading.styles.ts +2 -1
- package/src/components/Login/components/Button/constants.ts +2 -3
- package/src/components/Login/components/Button/types.ts +1 -1
- package/src/components/Login/components/Buttons/types.ts +1 -1
- package/src/components/Support/components/SupportRequest/components/Dialog/dialog.styles.ts +4 -4
- package/src/components/Support/components/ViewSupport/viewSupport.styles.ts +2 -2
- package/src/components/Table/columnDef/columnFilters/filterFn.ts +27 -0
- package/src/components/Table/common/columnDef.ts +2 -0
- package/src/components/Table/common/utils.ts +1 -27
- package/src/components/Table/components/Pagination/pagination.tsx +3 -2
- package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +2 -1
- package/src/components/Table/components/TableRows/tableRows.tsx +10 -3
- package/src/components/Table/table.tsx +3 -1
- package/src/components/TableCreator/tableCreator.tsx +17 -3
- package/src/components/common/Button/components/ButtonOutline/buttonOutline.styles.ts +7 -7
- package/src/components/common/Button/constants.ts +23 -0
- package/src/components/common/LoginDialog/loginDialog.styles.ts +2 -3
- package/src/components/types.ts +4 -0
- package/src/config/entities.ts +3 -3
- package/src/config/utils.ts +1 -1
- package/src/hooks/useEntityList.ts +2 -1
- package/src/hooks/useEntityService.ts +1 -1
- package/src/hooks/useExploreMode/types.ts +7 -0
- package/src/hooks/{useExploreMode.ts → useExploreMode/useExploreMode.ts} +2 -9
- package/src/hooks/useFetchEntity.tsx +2 -1
- package/src/styles/common/constants/colorMixes.ts +20 -0
- package/src/styles/common/constants/shadows.ts +5 -0
- package/src/styles/common/mui/button.ts +20 -2
- package/src/tests/mui/constants.ts +1 -0
- package/src/tests/testIds.ts +19 -0
- package/src/theme/common/components.ts +47 -59
- package/src/theme/common/palette.ts +27 -86
- package/src/theme/common/shadows.ts +28 -33
- package/src/theme/components/muiAlert.ts +5 -5
- package/src/theme/theme.ts +50 -51
- package/src/views/ExploreView/exploreView.tsx +8 -3
- package/tests/chart.test.tsx +113 -22
- package/tests/chartView.test.tsx +12 -0
- package/tests/entitiesView.test.tsx +7 -11
- package/tests/filterRange.test.tsx +87 -0
- package/tests/filterRangeMock.test.tsx +38 -0
- package/tests/tableFilter.test.tsx +90 -0
- package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +0 -6
- package/lib/components/DataDictionary/components/Table/columns/columnDef.js +0 -33
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +0 -5
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +0 -5
- package/lib/components/DataDictionary/components/Table/columns/types.d.ts +0 -2
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.d.ts +0 -8
- package/lib/components/Detail/components/Table/components/TableHead/tableHead.js +0 -36
- package/lib/components/Index/components/Cell/cell.d.ts +0 -7
- package/lib/components/Index/components/Cell/cell.js +0 -10
- package/lib/components/Index/components/EntitiesView/constants.d.ts +0 -1
- package/lib/components/Index/components/EntitiesView/constants.js +0 -1
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +0 -8
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +0 -57
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +0 -4
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +0 -10
- package/lib/components/Index/components/NTag/nTag.d.ts +0 -10
- package/lib/components/Index/components/NTag/nTag.js +0 -8
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +0 -11
- package/lib/components/Index/components/NTagCell/nTagCell.js +0 -29
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +0 -5
- package/lib/components/Index/components/NTagCell/nTagCell.stories.js +0 -16
- package/lib/components/Index/components/TitleCell/titleCell.d.ts +0 -6
- package/lib/components/Index/components/TitleCell/titleCell.js +0 -10
- package/lib/components/Index/components/TitleCell/titleCell.styles.d.ts +0 -3
- package/lib/components/Index/components/TitleCell/titleCell.styles.js +0 -6
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +0 -6
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +0 -10
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.d.ts +0 -5
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.stories.js +0 -29
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.d.ts +0 -6
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.js +0 -13
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.d.ts +0 -36
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/RequestAuthentication/requestAuthentication.styles.js +0 -9
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.d.ts +0 -5
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.js +0 -10
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.d.ts +0 -36
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/SearchButton/searchButton.styles.js +0 -9
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.d.ts +0 -5
- package/lib/components/Layout/components/Header/hooks/useMeasureHeader.js +0 -19
- package/lib/components/Layout/components/Outline/common/constants.d.ts +0 -2
- package/lib/components/Layout/components/Outline/common/constants.js +0 -1
- package/lib/components/Login/login.stories.d.ts +0 -6
- package/lib/components/Login/login.stories.js +0 -31
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.d.ts +0 -16
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.js +0 -28
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.d.ts +0 -5
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.stories.js +0 -46
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.d.ts +0 -3
- package/lib/components/Table/components/CheckboxMenu/checkboxMenu.styles.js +0 -21
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.d.ts +0 -2
- package/lib/components/Table/components/EntityViewToggle/entityViewToggle.js +0 -37
- package/lib/components/TableCreator/common/constants.d.ts +0 -6
- package/lib/components/TableCreator/common/constants.js +0 -19
- package/lib/components/TableCreator/common/entities.d.ts +0 -5
- package/lib/components/TableCreator/common/entities.js +0 -1
- package/lib/components/TableCreator/tableCreator.styles.d.ts +0 -4
- package/lib/components/TableCreator/tableCreator.styles.js +0 -4
- package/lib/components/common/Alert/alert.stories.d.ts +0 -6
- package/lib/components/common/Alert/alert.stories.js +0 -36
- package/lib/components/common/Alert/components/AlertText/alertText.styles.d.ts +0 -4
- package/lib/components/common/Alert/components/AlertText/alertText.styles.js +0 -19
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.d.ts +0 -7
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.js +0 -5
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.d.ts +0 -3
- package/lib/components/common/Banner/components/BannerPrimary/bannerPrimary.styles.js +0 -19
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.d.ts +0 -10
- package/lib/components/common/Banner/components/DismissibleBanner/dismissibleBanner.js +0 -16
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.d.ts +0 -3
- package/lib/components/common/Banner/components/SessionTimeout/sessionTimeout.styles.js +0 -21
- package/lib/components/common/Button/components/LoginButton/loginButton.d.ts +0 -3
- package/lib/components/common/Button/components/LoginButton/loginButton.js +0 -6
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.d.ts +0 -7
- package/lib/components/common/Button/components/LoginButton/loginButton.styles.js +0 -11
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.d.ts +0 -5
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.js +0 -10
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts +0 -3
- package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js +0 -9
- package/lib/hooks/useAuthentication/common/constants.d.ts +0 -4
- package/lib/hooks/useAuthentication/common/constants.js +0 -19
- package/lib/hooks/useAuthentication/common/entities.d.ts +0 -25
- package/lib/hooks/useAuthentication/common/entities.js +0 -11
- package/lib/hooks/useAuthentication/common/utils.d.ts +0 -15
- package/lib/hooks/useAuthentication/common/utils.js +0 -25
- package/lib/hooks/useAuthentication/useAuthentication.d.ts +0 -6
- package/lib/hooks/useAuthentication/useAuthentication.js +0 -9
- package/lib/hooks/useAuthentication/useAuthenticationComplete.d.ts +0 -6
- package/lib/hooks/useAuthentication/useAuthenticationComplete.js +0 -55
- package/lib/hooks/useAuthentication/useAuthenticationForm.d.ts +0 -20
- package/lib/hooks/useAuthentication/useAuthenticationForm.js +0 -88
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.d.ts +0 -18
- package/lib/hooks/useAuthentication/useAuthenticationNIHExpiry.js +0 -50
- package/lib/hooks/useAuthentication/useAuthenticationStatus.d.ts +0 -20
- package/lib/hooks/useAuthentication/useAuthenticationStatus.js +0 -32
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.d.ts +0 -21
- package/lib/hooks/useAuthentication/useFetchGoogleProfile.js +0 -41
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.d.ts +0 -18
- package/lib/hooks/useAuthentication/useFetchTerraNIHProfile.js +0 -62
- package/lib/hooks/useAuthentication/useFetchTerraProfile.d.ts +0 -24
- package/lib/hooks/useAuthentication/useFetchTerraProfile.js +0 -62
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.d.ts +0 -15
- package/lib/hooks/useAuthentication/useFetchTerraTermsOfService.js +0 -62
- package/lib/hooks/useAuthentication/useTokenClient.d.ts +0 -11
- package/lib/hooks/useAuthentication/useTokenClient.js +0 -29
- package/lib/hooks/useAuthenticationConfig.d.ts +0 -6
- package/lib/hooks/useAuthenticationConfig.js +0 -14
- package/lib/hooks/useCategoryConfigs.d.ts +0 -6
- package/lib/hooks/useCategoryConfigs.js +0 -17
- package/lib/hooks/useEntityListRelatedView.d.ts +0 -15
- package/lib/hooks/useEntityListRelatedView.js +0 -62
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.d.ts +0 -15
- package/lib/hooks/useFileManifest/common/buildFileManifestRequestURL.js +0 -27
- package/lib/hooks/useFileManifest/useFileManifestURL.d.ts +0 -5
- package/lib/hooks/useFileManifest/useFileManifestURL.js +0 -11
- package/lib/hooks/useFileManifest/useRequestFileManifest.d.ts +0 -9
- package/lib/hooks/useFileManifest/useRequestFileManifest.js +0 -37
- package/lib/hooks/useLayoutState.d.ts +0 -6
- package/lib/hooks/useLayoutState.js +0 -9
- package/lib/hooks/useMenu.d.ts +0 -10
- package/lib/hooks/useMenu.js +0 -17
- package/lib/hooks/useMenuWithPosition.d.ts +0 -14
- package/lib/hooks/useMenuWithPosition.js +0 -33
- package/lib/hooks/useSessionTimeout.d.ts +0 -11
- package/lib/hooks/useSessionTimeout.js +0 -28
- package/lib/providers/authentication.d.ts +0 -51
- package/lib/providers/authentication.js +0 -110
- package/lib/providers/layoutState.d.ts +0 -40
- package/lib/providers/layoutState.js +0 -47
- package/lib/styles/common/mixins/shadows.d.ts +0 -3
- package/lib/styles/common/mixins/shadows.js +0 -4
- package/lib/theme/common/entities.d.ts +0 -6
- package/lib/theme/common/entities.js +0 -1
- package/src/components/DataDictionary/components/Table/columns/columnDef.ts +0 -47
- package/src/components/DataDictionary/components/Table/columns/columnIdentifier.ts +0 -5
- package/src/components/DataDictionary/components/Table/columns/types.ts +0 -3
- package/src/components/Index/components/EntitiesView/constants.ts +0 -1
- package/src/styles/common/mixins/shadows.ts +0 -7
- package/src/theme/common/entities.ts +0 -7
- /package/lib/components/{DataDictionary/components/Table/columns → Filter/components/FilterRange/hooks/UseFilterRange}/types.js +0 -0
- /package/lib/styles/common/{mui → constants}/palette.d.ts +0 -0
- /package/lib/styles/common/{mui → constants}/palette.js +0 -0
- /package/src/styles/common/{mui → constants}/palette.ts +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react";
|
|
2
|
-
import { useLayoutState } from "../../../../../hooks/useLayoutState";
|
|
3
|
-
import { getBorderBoxSizeHeight, useResizeObserver, } from "../../../../../hooks/useResizeObserver";
|
|
4
|
-
import { LayoutActionKind } from "../../../../../providers/layoutState";
|
|
5
|
-
export const useMeasureHeader = () => {
|
|
6
|
-
const { layoutDispatch } = useLayoutState();
|
|
7
|
-
const headerRef = useRef(null);
|
|
8
|
-
const { height } = useResizeObserver(headerRef, getBorderBoxSizeHeight) || {};
|
|
9
|
-
// Updates layout state header height.
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (!height)
|
|
12
|
-
return;
|
|
13
|
-
layoutDispatch({
|
|
14
|
-
payload: height,
|
|
15
|
-
type: LayoutActionKind.UpdateHeaderHeight,
|
|
16
|
-
});
|
|
17
|
-
}, [height, layoutDispatch]);
|
|
18
|
-
return { headerRef };
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_TAB_VALUE = "";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { HelpIconButton } from "../common/Button/components/HelpIconButton/helpIconButton";
|
|
3
|
-
import { Login } from "./login";
|
|
4
|
-
export default {
|
|
5
|
-
argTypes: {
|
|
6
|
-
isGoogle: { control: "boolean" },
|
|
7
|
-
termsOfService: { control: "object" },
|
|
8
|
-
text: { control: "object" },
|
|
9
|
-
title: { control: "text" },
|
|
10
|
-
warning: { control: "object" },
|
|
11
|
-
},
|
|
12
|
-
component: Login,
|
|
13
|
-
parameters: {
|
|
14
|
-
layout: "fullscreen",
|
|
15
|
-
},
|
|
16
|
-
title: "Components/Login",
|
|
17
|
-
};
|
|
18
|
-
export const LoginStory = {
|
|
19
|
-
args: {
|
|
20
|
-
isGoogle: true,
|
|
21
|
-
termsOfService: (React.createElement("p", null, "I have read and agree to privacy notice and terms of use")),
|
|
22
|
-
text: (React.createElement("p", null,
|
|
23
|
-
"Please sign in to your Data Explorer account",
|
|
24
|
-
" ",
|
|
25
|
-
React.createElement(HelpIconButton, { url: "https://www.google.com/" }))),
|
|
26
|
-
title: "Sign in to your account",
|
|
27
|
-
warning: (React.createElement("div", null,
|
|
28
|
-
React.createElement("p", null, "WARNING NOTICE"),
|
|
29
|
-
React.createElement("p", null, "This is a warning notice."))),
|
|
30
|
-
},
|
|
31
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type MenuListItemOnChangeFn = (event: unknown) => void;
|
|
2
|
-
type onResetFn = () => void;
|
|
3
|
-
export interface CheckboxMenuListItem {
|
|
4
|
-
checked: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
label: string;
|
|
7
|
-
onChange: MenuListItemOnChangeFn;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CheckboxMenuProps {
|
|
11
|
-
label: string;
|
|
12
|
-
onReset: onResetFn;
|
|
13
|
-
options: CheckboxMenuListItem[];
|
|
14
|
-
}
|
|
15
|
-
export declare const CheckboxMenu: ({ label: buttonLabel, onReset, options, }: CheckboxMenuProps) => JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Checkbox, ListItem, ListItemButton, ListItemText, } from "@mui/material";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { ButtonTextPrimary } from "../../../common/Button/components/ButtonTextPrimary/buttonTextPrimary";
|
|
4
|
-
import { DropdownButton } from "../../../common/Button/components/DropdownButton/dropdownButton";
|
|
5
|
-
import { CheckedIcon } from "../../../common/CustomIcon/components/CheckedIcon/checkedIcon";
|
|
6
|
-
import { UncheckedIcon } from "../../../common/CustomIcon/components/UncheckedIcon/uncheckedIcon";
|
|
7
|
-
import { Menu } from "./checkboxMenu.styles";
|
|
8
|
-
export const CheckboxMenu = ({ label: buttonLabel, onReset, options, }) => {
|
|
9
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
|
10
|
-
const open = Boolean(anchorEl);
|
|
11
|
-
const onOpenMenu = (event) => {
|
|
12
|
-
setAnchorEl(event.currentTarget);
|
|
13
|
-
};
|
|
14
|
-
const onCloseMenu = () => {
|
|
15
|
-
setAnchorEl(null);
|
|
16
|
-
};
|
|
17
|
-
return (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(DropdownButton, { onClick: onOpenMenu, open: open }, buttonLabel),
|
|
19
|
-
React.createElement(Menu, { anchorEl: anchorEl, anchorOrigin: { horizontal: "right", vertical: "bottom" }, onClose: onCloseMenu, open: open, slotProps: { paper: { variant: "menu" } }, transformOrigin: {
|
|
20
|
-
horizontal: "right",
|
|
21
|
-
vertical: "top",
|
|
22
|
-
} },
|
|
23
|
-
options.map(({ checked, disabled = false, label, onChange, value }) => (React.createElement(ListItemButton, { disabled: disabled, key: value, onClick: onChange, role: undefined },
|
|
24
|
-
React.createElement(Checkbox, { checked: checked, checkedIcon: React.createElement(CheckedIcon, null), disabled: disabled, icon: React.createElement(UncheckedIcon, null) }),
|
|
25
|
-
React.createElement(ListItemText, { disableTypography: true, primary: React.createElement("span", null, label) })))),
|
|
26
|
-
React.createElement(ListItem, { component: "div" },
|
|
27
|
-
React.createElement(ButtonTextPrimary, { onClick: onReset }, "Reset")))));
|
|
28
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta } from "@storybook/react";
|
|
2
|
-
import { CheckboxMenu } from "./checkboxMenu";
|
|
3
|
-
declare const _default: ComponentMeta<typeof CheckboxMenu>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const CheckboxMenuStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./checkboxMenu").CheckboxMenuProps>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CheckboxMenu } from "./checkboxMenu";
|
|
3
|
-
export default {
|
|
4
|
-
argTypes: {
|
|
5
|
-
label: { control: "text" },
|
|
6
|
-
onReset: { control: { disabled: true } },
|
|
7
|
-
options: { control: "array" },
|
|
8
|
-
},
|
|
9
|
-
component: CheckboxMenu,
|
|
10
|
-
title: "Components/Common/Menu/CheckboxMenu",
|
|
11
|
-
};
|
|
12
|
-
const CheckboxMenuTemplate = (args) => (React.createElement(CheckboxMenu, { ...args }));
|
|
13
|
-
const onChange = () => {
|
|
14
|
-
// onChange function
|
|
15
|
-
};
|
|
16
|
-
const onReset = () => {
|
|
17
|
-
// onReset function
|
|
18
|
-
};
|
|
19
|
-
export const CheckboxMenuStory = CheckboxMenuTemplate.bind({});
|
|
20
|
-
CheckboxMenuStory.args = {
|
|
21
|
-
label: "Options",
|
|
22
|
-
onReset: onReset,
|
|
23
|
-
options: [
|
|
24
|
-
{
|
|
25
|
-
checked: true,
|
|
26
|
-
disabled: true,
|
|
27
|
-
label: "Item 1",
|
|
28
|
-
onChange,
|
|
29
|
-
value: "item_1",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
checked: false,
|
|
33
|
-
disabled: false,
|
|
34
|
-
label: "Item 2",
|
|
35
|
-
onChange,
|
|
36
|
-
value: "item_2",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
checked: true,
|
|
40
|
-
disabled: false,
|
|
41
|
-
label: "Item 3",
|
|
42
|
-
onChange,
|
|
43
|
-
value: "item_3",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { Menu as MMenu } from "@mui/material";
|
|
3
|
-
export const Menu = styled(MMenu) `
|
|
4
|
-
.MuiPaper-menu {
|
|
5
|
-
margin: 4px 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// List item button
|
|
9
|
-
.MuiListItemButton-root {
|
|
10
|
-
gap: 8px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// List item
|
|
14
|
-
.MuiListItem-root {
|
|
15
|
-
padding: 10px 16px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.MuiListItemButton-root.Mui-disabled {
|
|
19
|
-
opacity: 1;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EntityViewToggle = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const useExploreState_1 = require("../../../../hooks/useExploreState");
|
|
9
|
-
const exploreState_1 = require("../../../../providers/exploreState");
|
|
10
|
-
const toggleButtonGroup_1 = require("../../../common/ToggleButtonGroup/toggleButtonGroup");
|
|
11
|
-
const EntityViewToggle = () => {
|
|
12
|
-
const { exploreDispatch } = (0, useExploreState_1.useExploreState)();
|
|
13
|
-
const toggleButtons = [
|
|
14
|
-
{
|
|
15
|
-
label: "Exact Match",
|
|
16
|
-
onToggle: () => onChange(exploreState_1.ENTITY_VIEW.EXACT),
|
|
17
|
-
value: exploreState_1.ENTITY_VIEW.EXACT,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
label: "Related Match",
|
|
21
|
-
onToggle: () => onChange(exploreState_1.ENTITY_VIEW.RELATED),
|
|
22
|
-
value: exploreState_1.ENTITY_VIEW.RELATED,
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
/**
|
|
26
|
-
* Callback fired when toggle button value changes.
|
|
27
|
-
* @param entityView - Entity list view.
|
|
28
|
-
*/
|
|
29
|
-
const onChange = (entityView) => {
|
|
30
|
-
exploreDispatch({
|
|
31
|
-
payload: entityView,
|
|
32
|
-
type: exploreState_1.ExploreActionKind.ToggleEntityView,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
return react_1.default.createElement(toggleButtonGroup_1.ToggleButtonGroup, { toggleButtons: toggleButtons });
|
|
36
|
-
};
|
|
37
|
-
exports.EntityViewToggle = EntityViewToggle;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RowSelectionCell } from "../../Table/components/TableCell/components/RowSelectionCell/rowSelectionCell";
|
|
2
|
-
export const ACCESSOR_KEYS = {
|
|
3
|
-
SELECT: "select",
|
|
4
|
-
};
|
|
5
|
-
export const COLUMN_CONFIGS = {
|
|
6
|
-
SELECT: {
|
|
7
|
-
columnPinned: false,
|
|
8
|
-
columnVisible: false,
|
|
9
|
-
componentConfig: { component: RowSelectionCell },
|
|
10
|
-
disableHiding: true,
|
|
11
|
-
disableSorting: true,
|
|
12
|
-
header: ACCESSOR_KEYS.SELECT,
|
|
13
|
-
id: ACCESSOR_KEYS.SELECT,
|
|
14
|
-
meta: {
|
|
15
|
-
header: "",
|
|
16
|
-
},
|
|
17
|
-
width: "max-content",
|
|
18
|
-
},
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
export const TableCreator = styled.div `
|
|
3
|
-
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.
|
|
4
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Alert } from "./alert";
|
|
2
|
-
export default {
|
|
3
|
-
argTypes: {
|
|
4
|
-
children: {
|
|
5
|
-
control: "text",
|
|
6
|
-
description: "Inner text",
|
|
7
|
-
},
|
|
8
|
-
color: {
|
|
9
|
-
description: "Color of alert",
|
|
10
|
-
},
|
|
11
|
-
icon: {
|
|
12
|
-
control: "text",
|
|
13
|
-
description: "Top left icon. If provided will replace severity.",
|
|
14
|
-
},
|
|
15
|
-
severity: {
|
|
16
|
-
description: "Top left predefined icon. Combine with color.",
|
|
17
|
-
},
|
|
18
|
-
title: {
|
|
19
|
-
control: "text",
|
|
20
|
-
description: "Highlighted text",
|
|
21
|
-
},
|
|
22
|
-
variant: {
|
|
23
|
-
description: "Type of the alert",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
component: Alert,
|
|
27
|
-
title: "Components/Common/Alert",
|
|
28
|
-
};
|
|
29
|
-
export const AlertStory = {
|
|
30
|
-
args: {
|
|
31
|
-
children: "Something certainly happened",
|
|
32
|
-
color: "warning",
|
|
33
|
-
severity: "warning",
|
|
34
|
-
title: "Ouch!",
|
|
35
|
-
},
|
|
36
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
export const AlertText = styled.div `
|
|
3
|
-
ul {
|
|
4
|
-
padding-left: 24px;
|
|
5
|
-
margin: 8px 0;
|
|
6
|
-
|
|
7
|
-
li {
|
|
8
|
-
margin: 4px 0;
|
|
9
|
-
|
|
10
|
-
&:last-child {
|
|
11
|
-
margin-bottom: 0;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
*:last-child {
|
|
17
|
-
margin-bottom: 0;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AlertProps as MAlertProps } from "@mui/material";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
export interface BannerPrimaryProps extends MAlertProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const BannerPrimary: ({ children, className, ...props }: BannerPrimaryProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Alert } from "./bannerPrimary.styles";
|
|
3
|
-
export const BannerPrimary = ({ children, className, ...props /* Spread props to allow for Mui AlertProps specific prop overrides. */ }) => {
|
|
4
|
-
return (React.createElement(Alert, { className: className, color: "primary", elevation: 0, icon: false, variant: "standard", ...props }, children));
|
|
5
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { Alert as MAlert } from "@mui/material";
|
|
3
|
-
import { primaryMain, white } from "../../../../../styles/common/mixins/colors";
|
|
4
|
-
import { textBodySmall400 } from "../../../../../styles/common/mixins/fonts";
|
|
5
|
-
export const Alert = styled(MAlert) `
|
|
6
|
-
border-radius: 0;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: 8px;
|
|
9
|
-
|
|
10
|
-
&.MuiAlert-standardPrimary {
|
|
11
|
-
background-color: ${primaryMain};
|
|
12
|
-
color: ${white};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.MuiAlert-message {
|
|
16
|
-
${textBodySmall400};
|
|
17
|
-
text-align: center;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AlertProps as MAlertProps } from "@mui/material";
|
|
2
|
-
import { ElementType, ReactNode } from "react";
|
|
3
|
-
export interface CookieBannerProps extends MAlertProps {
|
|
4
|
-
Alert?: ElementType;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
onDismiss?: () => void;
|
|
8
|
-
open: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const DismissibleBanner: ({ Alert, className, children, onDismiss, open, ...props }: CookieBannerProps) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Fade, Alert as MAlert, } from "@mui/material";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
export const DismissibleBanner = ({ Alert = MAlert /* Requires forwardRef to be used as a child of Fade. */, className, children, onDismiss, open, ...props /* Spread props to allow for Mui AlertProps specific prop overrides. */ }) => {
|
|
4
|
-
const [isIn, setIsIn] = useState(false);
|
|
5
|
-
// Callback fired when the component requests to be closed.
|
|
6
|
-
const onClose = () => {
|
|
7
|
-
onDismiss?.();
|
|
8
|
-
setIsIn(false);
|
|
9
|
-
};
|
|
10
|
-
// Sets the open state.
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
setIsIn(open);
|
|
13
|
-
}, [open]);
|
|
14
|
-
return (React.createElement(Fade, { in: isIn, unmountOnExit: true },
|
|
15
|
-
React.createElement(Alert, { className: className, onClose: onClose, ...props }, children)));
|
|
16
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { mediaDesktopUp } from "../../../../../styles/common/mixins/breakpoints";
|
|
3
|
-
import { BannerPrimary } from "../BannerPrimary/bannerPrimary";
|
|
4
|
-
export const Banner = styled(BannerPrimary) `
|
|
5
|
-
gap: 12px;
|
|
6
|
-
padding: 8px 12px;
|
|
7
|
-
|
|
8
|
-
${mediaDesktopUp} {
|
|
9
|
-
padding: 8px 16px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.MuiAlert-message {
|
|
13
|
-
align-self: center;
|
|
14
|
-
flex: 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.MuiAlert-action {
|
|
18
|
-
margin: -8px;
|
|
19
|
-
padding: 0;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LoginButton as Button, LoginButtonText } from "./loginButton.styles";
|
|
3
|
-
export const LoginButton = ({ children, ...props }) => {
|
|
4
|
-
return (React.createElement(Button, { fullWidth: true, ...props },
|
|
5
|
-
React.createElement(LoginButtonText, null, children)));
|
|
6
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const LoginButton: import("@emotion/styled").StyledComponent<Omit<import("../../button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
}, {}, {}>;
|
|
4
|
-
export declare const LoginButtonText: import("@emotion/styled").StyledComponent<{
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { ButtonSecondary } from "../ButtonSecondary/buttonSecondary";
|
|
3
|
-
export const LoginButton = styled(ButtonSecondary) `
|
|
4
|
-
.MuiButton-endIcon {
|
|
5
|
-
margin-right: -6px;
|
|
6
|
-
}
|
|
7
|
-
`;
|
|
8
|
-
export const LoginButtonText = styled.span `
|
|
9
|
-
flex: 1;
|
|
10
|
-
text-align: left;
|
|
11
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LoadingIcon } from "../../../CustomIcon/components/LoadingIcon/loadingIcon";
|
|
3
|
-
import { MockIconButtonPrimary } from "../../iconButton.styles";
|
|
4
|
-
/**
|
|
5
|
-
* Mock "loading" icon button - a placeholder element styled like a primary icon button without the use of a button element.
|
|
6
|
-
*/
|
|
7
|
-
export const LoadingIconButton = () => {
|
|
8
|
-
return (React.createElement(MockIconButtonPrimary, null,
|
|
9
|
-
React.createElement(LoadingIcon, { fontSize: "small" })));
|
|
10
|
-
};
|
package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, unknown>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const LoadingIconButtonStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, unknown>;
|
package/lib/components/common/IconButton/components/LoadingIconButton/loadingIconButton.stories.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LoadingIconButton } from "./loadingIconButton";
|
|
3
|
-
export default {
|
|
4
|
-
component: LoadingIconButton,
|
|
5
|
-
title: "Components/Common/IconButton/Download",
|
|
6
|
-
};
|
|
7
|
-
const LoadingIconButtonTemplate = () => React.createElement(LoadingIconButton, null);
|
|
8
|
-
export const LoadingIconButtonStory = LoadingIconButtonTemplate.bind({});
|
|
9
|
-
LoadingIconButtonStory.args = {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { LoginResponse, LoginStatus } from "./entities";
|
|
2
|
-
export declare const LOGIN_STATUS_FAILED: LoginStatus<LoginResponse>;
|
|
3
|
-
export declare const LOGIN_STATUS_NOT_STARTED: LoginStatus<LoginResponse>;
|
|
4
|
-
export declare const LOGIN_STATUS_NOT_SUPPORTED: LoginStatus<LoginResponse>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { REQUEST_STATUS } from "./entities";
|
|
2
|
-
export const LOGIN_STATUS_FAILED = {
|
|
3
|
-
isSuccess: false,
|
|
4
|
-
isSupported: true,
|
|
5
|
-
requestStatus: REQUEST_STATUS.FAILED,
|
|
6
|
-
response: undefined,
|
|
7
|
-
};
|
|
8
|
-
export const LOGIN_STATUS_NOT_STARTED = {
|
|
9
|
-
isSuccess: false,
|
|
10
|
-
isSupported: true,
|
|
11
|
-
requestStatus: REQUEST_STATUS.NOT_STARTED,
|
|
12
|
-
response: undefined,
|
|
13
|
-
};
|
|
14
|
-
export const LOGIN_STATUS_NOT_SUPPORTED = {
|
|
15
|
-
isSuccess: false,
|
|
16
|
-
isSupported: false,
|
|
17
|
-
requestStatus: REQUEST_STATUS.NOT_STARTED,
|
|
18
|
-
response: undefined,
|
|
19
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { GoogleResponse } from "../useFetchGoogleProfile";
|
|
2
|
-
import { TerraNIHResponse } from "../useFetchTerraNIHProfile";
|
|
3
|
-
import { TerraResponse } from "../useFetchTerraProfile";
|
|
4
|
-
import { TerraTermsOfServiceResponse } from "../useFetchTerraTermsOfService";
|
|
5
|
-
export declare enum AUTHENTICATION_STATUS {
|
|
6
|
-
COMPLETED = "COMPLETED",
|
|
7
|
-
INCOMPLETE = "INCOMPLETE"
|
|
8
|
-
}
|
|
9
|
-
export type LoginResponse = GoogleResponse | TerraResponse | TerraNIHResponse | TerraTermsOfServiceResponse;
|
|
10
|
-
export interface LoginResponseError {
|
|
11
|
-
message: string;
|
|
12
|
-
source: string;
|
|
13
|
-
statusCode: number;
|
|
14
|
-
}
|
|
15
|
-
export interface LoginStatus<T> {
|
|
16
|
-
isSuccess: boolean;
|
|
17
|
-
isSupported: boolean;
|
|
18
|
-
requestStatus: REQUEST_STATUS;
|
|
19
|
-
response: T | undefined;
|
|
20
|
-
}
|
|
21
|
-
export declare enum REQUEST_STATUS {
|
|
22
|
-
COMPLETED = "COMPLETED",
|
|
23
|
-
FAILED = "FAILED",
|
|
24
|
-
NOT_STARTED = "NOT_STARTED"
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var AUTHENTICATION_STATUS;
|
|
2
|
-
(function (AUTHENTICATION_STATUS) {
|
|
3
|
-
AUTHENTICATION_STATUS["COMPLETED"] = "COMPLETED";
|
|
4
|
-
AUTHENTICATION_STATUS["INCOMPLETE"] = "INCOMPLETE";
|
|
5
|
-
})(AUTHENTICATION_STATUS || (AUTHENTICATION_STATUS = {}));
|
|
6
|
-
export var REQUEST_STATUS;
|
|
7
|
-
(function (REQUEST_STATUS) {
|
|
8
|
-
REQUEST_STATUS["COMPLETED"] = "COMPLETED";
|
|
9
|
-
REQUEST_STATUS["FAILED"] = "FAILED";
|
|
10
|
-
REQUEST_STATUS["NOT_STARTED"] = "NOT_STARTED";
|
|
11
|
-
})(REQUEST_STATUS || (REQUEST_STATUS = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LoginResponse, LoginStatus } from "./entities";
|
|
2
|
-
/**
|
|
3
|
-
* Returns the options for an authentication request.
|
|
4
|
-
* @param token - Token.
|
|
5
|
-
* @returns request options.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getAuthenticationRequestOptions(token: string): RequestInit;
|
|
8
|
-
/**
|
|
9
|
-
* Returns login status.
|
|
10
|
-
* An undefined endpoint will return a not supported login status,
|
|
11
|
-
* otherwise a not started login status is returned.
|
|
12
|
-
* @param endpoint - Endpoint.
|
|
13
|
-
* @returns initial login status.
|
|
14
|
-
*/
|
|
15
|
-
export declare function initLoginStatus(endpoint?: string): LoginStatus<LoginResponse>;
|