@databiosphere/findable-ui 50.6.0 → 50.7.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/README.md +32 -19
- package/lib/components/DataDictionary/components/Table/columns/columnDef.d.ts +6 -0
- package/lib/components/DataDictionary/components/Table/columns/columnDef.js +33 -0
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.d.ts +5 -0
- package/lib/components/DataDictionary/components/Table/columns/columnIdentifier.js +5 -0
- package/lib/components/DataDictionary/components/Table/columns/types.d.ts +2 -0
- package/lib/components/DataDictionary/components/Table/columns/types.js +1 -0
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.d.ts +4 -0
- package/lib/components/DataDictionary/components/Table/components/BasicCell/types.js +1 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.d.ts +4 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/hook.js +23 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.d.ts +8 -0
- package/lib/components/DataDictionary/hooks/UseDataDictionary/types.js +1 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.d.ts +2 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/hook.js +10 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.d.ts +7 -0
- package/lib/components/DataDictionary/hooks/UseLayoutSpacing/types.js +1 -0
- 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/ExportMethod/exportMethod.stories.d.ts +22 -0
- package/lib/components/Export/components/ExportMethod/exportMethod.stories.js +20 -0
- package/lib/components/Filter/components/Filter/filter.stories.d.ts +25 -0
- package/lib/components/Filter/components/Filter/filter.stories.js +42 -0
- package/lib/components/Filter/components/FilterTag/filterTag.stories.d.ts +16 -0
- package/lib/components/Filter/components/FilterTag/filterTag.stories.js +17 -0
- package/lib/components/Filter/components/Filters/components/CategoryLabel/categoryLabel.d.ts +9 -0
- package/lib/components/Filter/components/Filters/components/CategoryLabel/categoryLabel.js +15 -0
- package/lib/components/Filter/components/Filters/components/Controls/controls.d.ts +12 -0
- package/lib/components/Filter/components/Filters/components/Controls/controls.js +20 -0
- package/lib/components/Filter/components/Filters/components/Controls/controls.styles.d.ts +5 -0
- package/lib/components/Filter/components/Filters/components/Controls/controls.styles.js +7 -0
- package/lib/components/Filter/components/Filters/components/Controls/types.d.ts +6 -0
- package/lib/components/Filter/components/Filters/components/Controls/types.js +1 -0
- package/lib/components/Filter/components/Filters/filters.stories.d.ts +6 -0
- package/lib/components/Filter/components/Filters/filters.stories.js +91 -0
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.d.ts +3 -0
- package/lib/components/Filter/components/SearchAllFilters/components/AutocompletePopper/autocompletePopper.styles.js +15 -0
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.d.ts +6 -0
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.stories.js +82 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.d.ts +1 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/components/SearchCloseButton/searchCloseButton.js +14 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.d.ts +2 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.js +12 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.d.ts +5 -0
- package/lib/components/Filter/components/SearchAllFiltersSearch/searchAllFiltersSearch.styles.js +34 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/constants.d.ts +5 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/constants.js +5 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.js +19 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.styles.d.ts +12 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/endAdornment.styles.js +22 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/types.d.ts +4 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/types.js +1 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/utils.d.ts +8 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/EndAdornment/utils.js +14 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/title.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/title.js +15 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/types.d.ts +7 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/components/Title/types.js +1 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/constants.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/constants.js +27 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/hook.d.ts +9 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/hook.js +16 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/tooltip.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/tooltip.js +11 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/types.d.ts +5 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/components/Tooltip/types.js +1 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.js +17 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.styles.d.ts +5 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/resultSummary.styles.js +10 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/types.d.ts +8 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/types.js +1 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/utils.d.ts +7 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/components/ResultSummary/utils.js +19 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/constants.d.ts +2 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/constants.js +10 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.d.ts +6 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.js +70 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.styles.d.ts +8 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/facetAssistant.styles.js +14 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/stories/aiFacetAssistant.stories.d.ts +6 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/stories/aiFacetAssistant.stories.js +12 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/types.d.ts +13 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/types.js +1 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/utils.d.ts +15 -0
- package/lib/components/Filter/components/ai/components/FacetAssistant/utils.js +91 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.d.ts +9 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.js +16 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.styles.d.ts +3 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/aiSwitch.styles.js +9 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/stories/aiSwitch.stories.d.ts +6 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/stories/aiSwitch.stories.js +8 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/types.d.ts +4 -0
- package/lib/components/Filter/components/controls/Controls/components/AiSwitch/types.js +1 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.d.ts +10 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.js +16 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.styles.d.ts +6 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/button.styles.js +18 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/types.d.ts +2 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/Button/types.js +1 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/constants.d.ts +2 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/constants.js +4 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.d.ts +10 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.js +18 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.styles.d.ts +6 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/iconButton.styles.js +13 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/types.d.ts +2 -0
- package/lib/components/Filter/components/controls/Controls/components/FilterSort/components/IconButton/types.js +1 -0
- package/lib/components/Filter/components/surfaces/drawer/components/Button/types.d.ts +4 -0
- package/lib/components/Filter/components/surfaces/drawer/components/Button/types.js +1 -0
- package/lib/components/Index/components/Cell/cell.d.ts +7 -0
- package/lib/components/Index/components/Cell/cell.js +10 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.d.ts +2 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.js +20 -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 +10 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/constants.js +10 -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 +91 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.d.ts +132 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/components/Chart/barX/utils.js +230 -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 +18 -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 +97 -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 +15 -0
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +8 -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 +23 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +3 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.js +14 -0
- package/lib/components/Index/components/EntitiesView/components/EntityList/types.d.ts +6 -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 +15 -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/Hero/components/ExportButton/exportButton.d.ts +1 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +13 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +3 -0
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.js +13 -0
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.d.ts +6 -0
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js +14 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.d.ts +9 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.js +12 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.d.ts +13 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.stories.js +18 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +7 -0
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.js +26 -0
- package/lib/components/Index/components/Hero/hero.d.ts +11 -0
- package/lib/components/Index/components/Hero/hero.js +12 -0
- package/lib/components/Index/components/Hero/hero.stories.d.ts +23 -0
- package/lib/components/Index/components/Hero/hero.stories.js +22 -0
- package/lib/components/Index/components/Hero/hero.styles.d.ts +16 -0
- package/lib/components/Index/components/Hero/hero.styles.js +44 -0
- package/lib/components/Index/components/Hero/stories/hero.stories.d.ts +6 -0
- package/lib/components/Index/components/Hero/stories/hero.stories.js +16 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.d.ts +8 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.js +57 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.d.ts +4 -0
- package/lib/components/Index/components/NTag/components/Tooltip/tooltip.styles.js +10 -0
- package/lib/components/Index/components/NTag/nTag.d.ts +10 -0
- package/lib/components/Index/components/NTag/nTag.js +8 -0
- package/lib/components/Index/components/NTagCell/nTagCell.d.ts +11 -0
- package/lib/components/Index/components/NTagCell/nTagCell.js +29 -0
- package/lib/components/Index/components/NTagCell/nTagCell.stories.d.ts +5 -0
- package/lib/components/Index/components/NTagCell/nTagCell.stories.js +16 -0
- package/lib/components/Index/components/Tabs/common/utils.d.ts +8 -0
- package/lib/components/Index/components/Tabs/common/utils.js +19 -0
- package/lib/components/Index/components/Tabs/tabs.d.ts +1 -0
- package/lib/components/Index/components/Tabs/tabs.js +20 -0
- 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.stories.d.ts +6 -0
- package/lib/components/Index/index.stories.js +26 -0
- package/lib/components/Index/stories/index.stories.d.ts +6 -0
- package/lib/components/Index/stories/index.stories.js +17 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.d.ts +6 -0
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.stories.js +10 -0
- package/lib/components/Layout/components/Footer/footer.stories.d.ts +27 -0
- package/lib/components/Layout/components/Footer/footer.stories.js +64 -0
- 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/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/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/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/Login/login.stories.d.ts +6 -0
- package/lib/components/Login/login.stories.js +31 -0
- 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/DownloadEntityResults/downloadEntityResults.d.ts +6 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.js +17 -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.d.ts +9 -0
- package/lib/components/Table/components/Pagination/pagination.js +19 -0
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +28 -0
- package/lib/components/Table/components/Pagination/pagination.stories.js +24 -0
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +4 -0
- package/lib/components/Table/components/Pagination/pagination.styles.js +15 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.d.ts +3 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.js +3 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.d.ts +8 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.js +18 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.d.ts +4 -0
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.js +1 -0
- package/lib/components/Table/components/TableBody/utils.d.ts +12 -0
- package/lib/components/Table/components/TableBody/utils.js +17 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/stories/types.js +1 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.d.ts +3 -0
- package/lib/components/Table/components/TableCell/components/MarkdownCell/types.js +1 -0
- 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.styles.d.ts +4 -0
- package/lib/components/TableCreator/tableCreator.styles.js +4 -0
- 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/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/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/CustomIcon/components/AiIcon/aiIcon.d.ts +2 -0
- package/lib/components/common/CustomIcon/components/AiIcon/aiIcon.js +6 -0
- 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/Switch/provider/context.d.ts +2 -0
- package/lib/components/common/Switch/provider/context.js +6 -0
- package/lib/components/common/Switch/provider/hook.d.ts +6 -0
- package/lib/components/common/Switch/provider/hook.js +9 -0
- package/lib/components/common/Switch/provider/provider.d.ts +9 -0
- package/lib/components/common/Switch/provider/provider.js +16 -0
- package/lib/components/common/Switch/provider/types.d.ts +6 -0
- package/lib/components/common/Switch/provider/types.js +1 -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/useEntityListRelatedView.d.ts +15 -0
- package/lib/hooks/useEntityListRelatedView.js +62 -0
- package/lib/hooks/useExploreMode.d.ts +14 -0
- package/lib/hooks/useExploreMode.js +20 -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/useScroll.d.ts +10 -0
- package/lib/hooks/useScroll.js +12 -0
- package/lib/hooks/useSessionTimeout.d.ts +11 -0
- package/lib/hooks/useSessionTimeout.js +28 -0
- package/lib/mocks/@storybook/addon-actions.d.ts +9 -0
- package/lib/mocks/@storybook/addon-actions.js +9 -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/styles/common/mixins/colors.d.ts +25 -0
- package/lib/styles/common/mixins/colors.js +32 -0
- package/lib/styles/common/mixins/fonts.d.ts +16 -0
- package/lib/styles/common/mixins/fonts.js +30 -0
- package/lib/styles/common/mixins/shadows.d.ts +3 -0
- package/lib/styles/common/mixins/shadows.js +4 -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/switch.d.ts +7 -0
- package/lib/styles/common/mui/switch.js +13 -0
- package/lib/theme/common/entities.d.ts +6 -0
- package/lib/theme/common/entities.js +1 -0
- package/lib/theme/components/muiSwitch.d.ts +2 -0
- package/lib/theme/components/muiSwitch.js +52 -0
- package/lib/utils/form.d.ts +8 -0
- package/lib/utils/form.js +17 -0
- package/lib/views/ExploreView/components/filters/Search/search.d.ts +12 -0
- package/lib/views/ExploreView/components/filters/Search/search.js +19 -0
- package/package.json +6 -1
- package/.eslintignore +0 -5
- package/.eslintrc.json +0 -79
- package/.github/copilot-instructions.md +0 -176
- package/.github/workflows/release-please.yml +0 -49
- package/.github/workflows/run-checks.yml +0 -57
- package/.husky/commit-msg +0 -18
- package/.husky/pre-commit +0 -43
- package/.prettierignore +0 -19
- package/.prettierrc.json +0 -1
- package/.release-please-manifest.json +0 -3
- package/.storybook/main.ts +0 -10
- package/.storybook/preview-head.html +0 -4
- package/.storybook/preview.js +0 -6
- package/CHANGELOG.md +0 -1117
- package/CLAUDE.md +0 -214
- package/backend/README.md +0 -64
- package/backend/__init__.py +0 -0
- package/backend/controllers/__init__.py +0 -0
- package/backend/controllers/facets_controller.py +0 -16
- package/backend/controllers/models.py +0 -11
- package/backend/main.py +0 -8
- package/backend/requirements.txt +0 -4
- package/backend/services/__init__.py +0 -0
- package/backend/services/facets_service.py +0 -68
- package/backend/services/models.py +0 -43
- package/commitlint.config.js +0 -1
- package/docs/TRUSTED_PUBLISHING.md +0 -132
- package/jest.config.js +0 -6
- package/release-please-config.json +0 -23
- package/tests/azulFileDownload.test.tsx +0 -96
- package/tests/buildCategoryViews.test.ts +0 -282
- package/tests/buildRequestFilters.test.ts +0 -60
- package/tests/buildRequestManifest.test.ts +0 -103
- package/tests/chart.test.tsx +0 -274
- package/tests/chartSortUtils.test.ts +0 -119
- package/tests/chartView.test.tsx +0 -48
- package/tests/dataDictionaryColumnFilters.test.tsx +0 -101
- package/tests/dataDictionary_utils.test.ts +0 -153
- package/tests/fetchApi.test.ts +0 -93
- package/tests/filter.test.tsx +0 -100
- package/tests/filterMenu.test.ts +0 -100
- package/tests/filterRange.test.tsx +0 -372
- package/tests/filterSortUtils.test.ts +0 -180
- package/tests/filters.test.tsx +0 -61
- package/tests/getFacetedMinMaxValues.test.ts +0 -166
- package/tests/getFilterSortType.test.ts +0 -45
- package/tests/getProfileStatus.test.ts +0 -290
- package/tests/linkCell.test.tsx +0 -89
- package/tests/markdownCell.test.tsx +0 -52
- package/tests/provider.test.tsx +0 -189
- package/tests/research.chatState.test.ts +0 -463
- package/tests/research.fetchResponse.test.ts +0 -164
- package/tests/research.queryProvider.test.ts +0 -321
- package/tests/research.useKeyShortCuts.test.ts +0 -256
- package/tests/rowSelectionValidation.test.ts +0 -282
- package/tests/setup.ts +0 -19
- package/tests/stepIcon.test.tsx +0 -42
- package/tests/tableFilter.test.tsx +0 -90
- package/tests/terraProfileProvider.test.tsx +0 -117
- package/tests/theme.test.ts +0 -465
- package/tests/toggleButtonGroupProvider.test.tsx +0 -125
- package/tests/transformRoute.test.ts +0 -21
- package/tests/tsconfig.json +0 -8
- package/tests/useFileLocation.test.ts +0 -36
- package/tests/useRequestManifest.test.ts +0 -201
- package/tests/useRouteHistory.test.ts +0 -97
- package/tests/useSessionActive.test.ts +0 -106
- package/tests/useWindowResize.test.ts +0 -130
- package/tests/viewModelBuilders_utils.test.ts +0 -58
- package/tests/viewToggle.test.tsx +0 -54
- package/tsconfig.json +0 -25
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuProps as MMenuProps } from "@mui/material";
|
|
2
|
+
import { MouseEvent } from "react";
|
|
3
|
+
export interface UseMenuWithPosition {
|
|
4
|
+
anchorEl: MMenuProps["anchorEl"];
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onOpen: (event: MouseEvent<HTMLElement>) => void;
|
|
7
|
+
onToggleOpen: (event: MouseEvent<HTMLElement>) => void;
|
|
8
|
+
open: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Menu functionality for menu dropdown, with menu position.
|
|
12
|
+
* @returns menu functionality.
|
|
13
|
+
*/
|
|
14
|
+
export declare const useMenuWithPosition: () => UseMenuWithPosition;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useCallback, useMemo, useState } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Menu functionality for menu dropdown, with menu position.
|
|
4
|
+
* @returns menu functionality.
|
|
5
|
+
*/
|
|
6
|
+
export const useMenuWithPosition = () => {
|
|
7
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
8
|
+
const open = useMemo(() => Boolean(anchorEl), [anchorEl]);
|
|
9
|
+
// Closes header menu.
|
|
10
|
+
const onClose = useCallback(() => {
|
|
11
|
+
setAnchorEl(null);
|
|
12
|
+
}, []);
|
|
13
|
+
// Opens header menu.
|
|
14
|
+
const onOpen = useCallback((event) => {
|
|
15
|
+
setAnchorEl(event.currentTarget);
|
|
16
|
+
}, []);
|
|
17
|
+
// Toggles menu open/close.
|
|
18
|
+
const onToggleOpen = useCallback((event) => {
|
|
19
|
+
if (open) {
|
|
20
|
+
setAnchorEl(null);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
setAnchorEl(event.currentTarget);
|
|
24
|
+
}
|
|
25
|
+
}, [open]);
|
|
26
|
+
return {
|
|
27
|
+
anchorEl,
|
|
28
|
+
onClose,
|
|
29
|
+
onOpen,
|
|
30
|
+
onToggleOpen,
|
|
31
|
+
open,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ScrollType = "top" | "bottom";
|
|
2
|
+
type UseScrollReturn = () => void;
|
|
3
|
+
/**
|
|
4
|
+
* Hook used to scroll the to top or bottom of the page.
|
|
5
|
+
* This hook can only be used on the client-side.
|
|
6
|
+
* @param scrollType - top or bottom of the page. Default = top
|
|
7
|
+
* @returns scroll function
|
|
8
|
+
*/
|
|
9
|
+
export declare const useScroll: (scrollType?: ScrollType) => UseScrollReturn;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Hook used to scroll the to top or bottom of the page.
|
|
4
|
+
* This hook can only be used on the client-side.
|
|
5
|
+
* @param scrollType - top or bottom of the page. Default = top
|
|
6
|
+
* @returns scroll function
|
|
7
|
+
*/
|
|
8
|
+
export const useScroll = (scrollType = "top") => {
|
|
9
|
+
return useCallback(() => window.scrollTo({
|
|
10
|
+
top: scrollType === "top" ? 0 : document.body.scrollHeight,
|
|
11
|
+
}), [scrollType]);
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const INACTIVITY_PARAM = "inactivityTimeout";
|
|
2
|
+
interface UseSessionTimeout {
|
|
3
|
+
clearSessionTimeout: () => void;
|
|
4
|
+
isSessionTimeout: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Session timeout hook.
|
|
8
|
+
* @returns flag indicating if the session has timed out.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useSessionTimeout: () => UseSessionTimeout;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Router from "next/router";
|
|
2
|
+
import { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import { useConfig } from "./useConfig";
|
|
4
|
+
import { useLocation } from "./useLocation";
|
|
5
|
+
export const INACTIVITY_PARAM = "inactivityTimeout";
|
|
6
|
+
/**
|
|
7
|
+
* Session timeout hook.
|
|
8
|
+
* @returns flag indicating if the session has timed out.
|
|
9
|
+
*/
|
|
10
|
+
export const useSessionTimeout = () => {
|
|
11
|
+
const { config: { redirectRootToPath }, } = useConfig();
|
|
12
|
+
const [isSessionTimeout, setIsSessionTimeout] = useState(false);
|
|
13
|
+
// Get the session timeout from URL parameters.
|
|
14
|
+
const { search } = useLocation() || {};
|
|
15
|
+
const sessionTimeout = search?.get(INACTIVITY_PARAM);
|
|
16
|
+
// Clears session timeout state.
|
|
17
|
+
const clearSessionTimeout = useCallback(() => {
|
|
18
|
+
setIsSessionTimeout(false);
|
|
19
|
+
Router.replace(redirectRootToPath);
|
|
20
|
+
}, [redirectRootToPath]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
setIsSessionTimeout(sessionTimeout === "true");
|
|
23
|
+
}, [sessionTimeout]);
|
|
24
|
+
return {
|
|
25
|
+
clearSessionTimeout,
|
|
26
|
+
isSessionTimeout,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jest } from "@jest/globals";
|
|
2
|
+
/**
|
|
3
|
+
* Mock for Storybook's @storybook/addon-actions function.
|
|
4
|
+
* The mock keeps the same function signature as the real Storybook action,
|
|
5
|
+
* does not trigger any Storybook logic, and simply returns a Jest mock function
|
|
6
|
+
* for use in tests.
|
|
7
|
+
* @returns A Jest mock function.
|
|
8
|
+
*/
|
|
9
|
+
export declare const action: () => jest.Mock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jest } from "@jest/globals";
|
|
2
|
+
/**
|
|
3
|
+
* Mock for Storybook's @storybook/addon-actions function.
|
|
4
|
+
* The mock keeps the same function signature as the real Storybook action,
|
|
5
|
+
* does not trigger any Storybook logic, and simply returns a Jest mock function
|
|
6
|
+
* for use in tests.
|
|
7
|
+
* @returns A Jest mock function.
|
|
8
|
+
*/
|
|
9
|
+
export const action = () => jest.fn();
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { AUTHENTICATION_STATUS, LoginStatus } from "../hooks/useAuthentication/common/entities";
|
|
3
|
+
import { UserProfile } from "../hooks/useAuthentication/useFetchGoogleProfile";
|
|
4
|
+
import { TerraNIHResponse } from "../hooks/useAuthentication/useFetchTerraNIHProfile";
|
|
5
|
+
import { TerraResponse } from "../hooks/useAuthentication/useFetchTerraProfile";
|
|
6
|
+
import { TerraTermsOfServiceResponse } from "../hooks/useAuthentication/useFetchTerraTermsOfService";
|
|
7
|
+
export declare const ROUTE_LOGIN = "/login";
|
|
8
|
+
type AuthenticateUserFn = () => void;
|
|
9
|
+
type RequestAuthenticationFn = () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Model of authentication context.
|
|
12
|
+
*/
|
|
13
|
+
export interface AuthContextProps {
|
|
14
|
+
authenticateUser: AuthenticateUserFn;
|
|
15
|
+
authenticationStatus: AUTHENTICATION_STATUS;
|
|
16
|
+
isAuthenticated: boolean;
|
|
17
|
+
isEnabled: boolean;
|
|
18
|
+
requestAuthentication: RequestAuthenticationFn;
|
|
19
|
+
terraNIHProfileLoginStatus: LoginStatus<TerraNIHResponse>;
|
|
20
|
+
terraProfileLoginStatus: LoginStatus<TerraResponse>;
|
|
21
|
+
terraTOSLoginStatus: LoginStatus<TerraTermsOfServiceResponse>;
|
|
22
|
+
token?: string;
|
|
23
|
+
userProfile?: UserProfile;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Auth context for storing and using auth-related state.
|
|
27
|
+
*/
|
|
28
|
+
export declare const AuthContext: React.Context<AuthContextProps>;
|
|
29
|
+
interface Props {
|
|
30
|
+
children: ReactNode | ReactNode[];
|
|
31
|
+
sessionTimeout?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Auth provider for consuming components to subscribe to changes in auth-related state.
|
|
35
|
+
* @param props - Component inputs.
|
|
36
|
+
* @param props.children - Set of children components that can possibly consume the query provider.
|
|
37
|
+
* @param props.sessionTimeout - If provided, will set the value for a session timeout (in milliseconds).
|
|
38
|
+
* @returns Provider element to be used by consumers to both update authentication state and subscribe to changes in authentication state.
|
|
39
|
+
*/
|
|
40
|
+
export declare function AuthProvider({ children, sessionTimeout }: Props): JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Token is released for the following conditions:
|
|
43
|
+
* - Terra endpoint is configured and the terms of service response is successful, or
|
|
44
|
+
* - Terra endpoint is not configured and the user profile response is successful.
|
|
45
|
+
* @param userProfileLoginStatus - User profile login status.
|
|
46
|
+
* @param terraProfileLoginStatus - Terra profile login status.
|
|
47
|
+
* @param terraTOSLoginStatus - Terra terms of service login status.
|
|
48
|
+
* @returns true if the token should be released.
|
|
49
|
+
*/
|
|
50
|
+
export declare function shouldReleaseToken(userProfileLoginStatus: LoginStatus<UserProfile>, terraProfileLoginStatus: LoginStatus<TerraResponse>, terraTOSLoginStatus: LoginStatus<TerraTermsOfServiceResponse>): boolean;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import Router, { useRouter } from "next/router";
|
|
2
|
+
import React, { createContext, useCallback } from "react";
|
|
3
|
+
import { useIdleTimer } from "react-idle-timer";
|
|
4
|
+
import { LOGIN_STATUS_NOT_STARTED } from "../hooks/useAuthentication/common/constants";
|
|
5
|
+
import { AUTHENTICATION_STATUS, } from "../hooks/useAuthentication/common/entities";
|
|
6
|
+
import { useAuthenticationComplete } from "../hooks/useAuthentication/useAuthenticationComplete";
|
|
7
|
+
import { useAuthenticationStatus } from "../hooks/useAuthentication/useAuthenticationStatus";
|
|
8
|
+
import { useFetchGoogleProfile, } from "../hooks/useAuthentication/useFetchGoogleProfile";
|
|
9
|
+
import { useFetchTerraNIHProfile, } from "../hooks/useAuthentication/useFetchTerraNIHProfile";
|
|
10
|
+
import { useFetchTerraProfile, } from "../hooks/useAuthentication/useFetchTerraProfile";
|
|
11
|
+
import { useFetchTerraTermsOfService, } from "../hooks/useAuthentication/useFetchTerraTermsOfService";
|
|
12
|
+
import { useTokenClient } from "../hooks/useAuthentication/useTokenClient";
|
|
13
|
+
import { useConfig } from "../hooks/useConfig";
|
|
14
|
+
import { INACTIVITY_PARAM } from "../hooks/useSessionTimeout";
|
|
15
|
+
// Template constants
|
|
16
|
+
export const ROUTE_LOGIN = "/login";
|
|
17
|
+
/**
|
|
18
|
+
* Auth context for storing and using auth-related state.
|
|
19
|
+
*/
|
|
20
|
+
export const AuthContext = createContext({
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function -- allow dummy function for default state.
|
|
22
|
+
authenticateUser: () => { },
|
|
23
|
+
authenticationStatus: AUTHENTICATION_STATUS.INCOMPLETE,
|
|
24
|
+
isAuthenticated: false,
|
|
25
|
+
isEnabled: false,
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function -- allow dummy function for default state.
|
|
27
|
+
requestAuthentication: () => { },
|
|
28
|
+
terraNIHProfileLoginStatus: LOGIN_STATUS_NOT_STARTED,
|
|
29
|
+
terraProfileLoginStatus: LOGIN_STATUS_NOT_STARTED,
|
|
30
|
+
terraTOSLoginStatus: LOGIN_STATUS_NOT_STARTED,
|
|
31
|
+
token: undefined,
|
|
32
|
+
userProfile: undefined,
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Auth provider for consuming components to subscribe to changes in auth-related state.
|
|
36
|
+
* @param props - Component inputs.
|
|
37
|
+
* @param props.children - Set of children components that can possibly consume the query provider.
|
|
38
|
+
* @param props.sessionTimeout - If provided, will set the value for a session timeout (in milliseconds).
|
|
39
|
+
* @returns Provider element to be used by consumers to both update authentication state and subscribe to changes in authentication state.
|
|
40
|
+
*/
|
|
41
|
+
export function AuthProvider({ children, sessionTimeout }) {
|
|
42
|
+
const { config } = useConfig();
|
|
43
|
+
const { authentication, redirectRootToPath } = config;
|
|
44
|
+
const { basePath } = useRouter();
|
|
45
|
+
const { token, tokenClient } = useTokenClient();
|
|
46
|
+
const terraNIHProfileLoginStatus = useFetchTerraNIHProfile(token);
|
|
47
|
+
const terraProfileLoginStatus = useFetchTerraProfile(token);
|
|
48
|
+
const terraTOSLoginStatus = useFetchTerraTermsOfService(token);
|
|
49
|
+
const userProfileLoginStatus = useFetchGoogleProfile(token);
|
|
50
|
+
const isEnabled = Boolean(authentication);
|
|
51
|
+
const isAuthenticated = userProfileLoginStatus.isSuccess;
|
|
52
|
+
const releaseToken = shouldReleaseToken(userProfileLoginStatus, terraProfileLoginStatus, terraTOSLoginStatus);
|
|
53
|
+
const authenticationStatus = useAuthenticationStatus(userProfileLoginStatus, terraProfileLoginStatus, terraTOSLoginStatus, terraNIHProfileLoginStatus);
|
|
54
|
+
// Handle completion of authentication process.
|
|
55
|
+
useAuthenticationComplete(authenticationStatus);
|
|
56
|
+
/**
|
|
57
|
+
* If sessionTimeout is set and user is authenticated, the app will reload and redirect to
|
|
58
|
+
* origin, including base path, root path, and query param.
|
|
59
|
+
*/
|
|
60
|
+
useIdleTimer({
|
|
61
|
+
onIdle: () => isAuthenticated &&
|
|
62
|
+
sessionTimeout &&
|
|
63
|
+
(window.location.href =
|
|
64
|
+
window.location.origin +
|
|
65
|
+
basePath +
|
|
66
|
+
redirectRootToPath +
|
|
67
|
+
"?" +
|
|
68
|
+
`${INACTIVITY_PARAM}=true`),
|
|
69
|
+
timeout: sessionTimeout,
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* Requests access token and authenticates user.
|
|
73
|
+
*/
|
|
74
|
+
const authenticateUser = useCallback(() => {
|
|
75
|
+
tokenClient.requestAccessToken();
|
|
76
|
+
}, [tokenClient]);
|
|
77
|
+
/**
|
|
78
|
+
* Navigates to login page.
|
|
79
|
+
*/
|
|
80
|
+
const requestAuthentication = useCallback(() => {
|
|
81
|
+
Router.push(ROUTE_LOGIN);
|
|
82
|
+
}, []);
|
|
83
|
+
return (React.createElement(AuthContext.Provider, { value: {
|
|
84
|
+
authenticateUser,
|
|
85
|
+
authenticationStatus,
|
|
86
|
+
isAuthenticated,
|
|
87
|
+
isEnabled,
|
|
88
|
+
requestAuthentication,
|
|
89
|
+
terraNIHProfileLoginStatus,
|
|
90
|
+
terraProfileLoginStatus,
|
|
91
|
+
terraTOSLoginStatus,
|
|
92
|
+
token: releaseToken ? token : undefined,
|
|
93
|
+
userProfile: userProfileLoginStatus.response,
|
|
94
|
+
} }, children));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Token is released for the following conditions:
|
|
98
|
+
* - Terra endpoint is configured and the terms of service response is successful, or
|
|
99
|
+
* - Terra endpoint is not configured and the user profile response is successful.
|
|
100
|
+
* @param userProfileLoginStatus - User profile login status.
|
|
101
|
+
* @param terraProfileLoginStatus - Terra profile login status.
|
|
102
|
+
* @param terraTOSLoginStatus - Terra terms of service login status.
|
|
103
|
+
* @returns true if the token should be released.
|
|
104
|
+
*/
|
|
105
|
+
export function shouldReleaseToken(userProfileLoginStatus, terraProfileLoginStatus, terraTOSLoginStatus) {
|
|
106
|
+
if (terraProfileLoginStatus.isSupported) {
|
|
107
|
+
return terraTOSLoginStatus.isSuccess;
|
|
108
|
+
}
|
|
109
|
+
return userProfileLoginStatus.isSuccess;
|
|
110
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { Dispatch, ReactNode } from "react";
|
|
2
|
+
export declare const DEFAULT_LAYOUT_STATE: {
|
|
3
|
+
headerHeight: number;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Layout state.
|
|
7
|
+
*/
|
|
8
|
+
export type LayoutState = {
|
|
9
|
+
headerHeight: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Model of layout state context.
|
|
13
|
+
*/
|
|
14
|
+
export type LayoutStateContextProps = {
|
|
15
|
+
layoutDispatch: Dispatch<LayoutAction>;
|
|
16
|
+
layoutState: LayoutState;
|
|
17
|
+
};
|
|
18
|
+
export declare const LayoutStateContext: React.Context<LayoutStateContextProps>;
|
|
19
|
+
export interface LayoutStateProps {
|
|
20
|
+
children: ReactNode | ReactNode[];
|
|
21
|
+
}
|
|
22
|
+
export declare function LayoutStateProvider({ children, }: LayoutStateProps): JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Layout action kind.
|
|
25
|
+
*/
|
|
26
|
+
export declare enum LayoutActionKind {
|
|
27
|
+
UpdateHeaderHeight = "UPDATE_HEADER_HEIGHT"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Layout action.
|
|
31
|
+
*/
|
|
32
|
+
export type LayoutAction = UpdateHeaderHeightAction;
|
|
33
|
+
/**
|
|
34
|
+
* Update header height action.
|
|
35
|
+
*/
|
|
36
|
+
type UpdateHeaderHeightAction = {
|
|
37
|
+
payload?: number;
|
|
38
|
+
type: LayoutActionKind.UpdateHeaderHeight;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { createContext, useReducer } from "react";
|
|
2
|
+
import { HEADER_HEIGHT } from "../components/Layout/components/Header/common/constants";
|
|
3
|
+
// Default layout state.
|
|
4
|
+
export const DEFAULT_LAYOUT_STATE = {
|
|
5
|
+
headerHeight: HEADER_HEIGHT + 1, // 1px for bottom border.
|
|
6
|
+
};
|
|
7
|
+
export const LayoutStateContext = createContext({
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function -- allow dummy function for default state.
|
|
9
|
+
layoutDispatch: () => { },
|
|
10
|
+
layoutState: DEFAULT_LAYOUT_STATE,
|
|
11
|
+
});
|
|
12
|
+
export function LayoutStateProvider({ children, }) {
|
|
13
|
+
// Layout state.
|
|
14
|
+
const [layoutState, layoutDispatch] = useReducer((s, a) => layoutReducer(s, a), DEFAULT_LAYOUT_STATE);
|
|
15
|
+
return (React.createElement(LayoutStateContext.Provider, { value: {
|
|
16
|
+
layoutDispatch,
|
|
17
|
+
layoutState,
|
|
18
|
+
} }, children));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Layout action kind.
|
|
22
|
+
*/
|
|
23
|
+
export var LayoutActionKind;
|
|
24
|
+
(function (LayoutActionKind) {
|
|
25
|
+
LayoutActionKind["UpdateHeaderHeight"] = "UPDATE_HEADER_HEIGHT";
|
|
26
|
+
})(LayoutActionKind || (LayoutActionKind = {}));
|
|
27
|
+
/**
|
|
28
|
+
* Layout reducer.
|
|
29
|
+
* @param state - Layout state.
|
|
30
|
+
* @param action - Layout action.
|
|
31
|
+
* @returns layout state.
|
|
32
|
+
*/
|
|
33
|
+
function layoutReducer(state, action) {
|
|
34
|
+
const { payload, type } = action;
|
|
35
|
+
// eslint-disable-next-line sonarjs/no-small-switch -- allow small switch.
|
|
36
|
+
switch (type) {
|
|
37
|
+
// Updates header height.
|
|
38
|
+
case LayoutActionKind.UpdateHeaderHeight: {
|
|
39
|
+
return {
|
|
40
|
+
...state,
|
|
41
|
+
headerHeight: payload ?? state.headerHeight,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
default:
|
|
45
|
+
return state;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CommonColors, PaletteColor } from "@mui/material/styles";
|
|
2
|
+
import { ThemeProps } from "../../../theme/theme";
|
|
3
|
+
export declare const alertLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
4
|
+
export declare const alertLightest: ({ theme, }: ThemeProps) => PaletteColor["lightest"];
|
|
5
|
+
export declare const alertMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
6
|
+
export declare const errorMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
7
|
+
export declare const infoLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
8
|
+
export declare const infoLightest: ({ theme }: ThemeProps) => PaletteColor["lightest"];
|
|
9
|
+
export declare const infoMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
10
|
+
export declare const inkLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
11
|
+
export declare const inkMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
12
|
+
export declare const primaryDark: ({ theme }: ThemeProps) => PaletteColor["dark"];
|
|
13
|
+
export declare const primaryLightest: ({ theme, }: ThemeProps) => PaletteColor["lightest"];
|
|
14
|
+
export declare const primaryMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
15
|
+
export declare const smokeDark: ({ theme }: ThemeProps) => PaletteColor["dark"];
|
|
16
|
+
export declare const smokeLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
17
|
+
export declare const smokeLightest: ({ theme, }: ThemeProps) => PaletteColor["lightest"];
|
|
18
|
+
export declare const smokeMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
19
|
+
export declare const successLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
20
|
+
export declare const successLightest: ({ theme, }: ThemeProps) => PaletteColor["lightest"];
|
|
21
|
+
export declare const successMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
22
|
+
export declare const warningLight: ({ theme }: ThemeProps) => PaletteColor["light"];
|
|
23
|
+
export declare const warningLightest: ({ theme, }: ThemeProps) => PaletteColor["lightest"];
|
|
24
|
+
export declare const warningMain: ({ theme }: ThemeProps) => PaletteColor["main"];
|
|
25
|
+
export declare const white: ({ theme }: ThemeProps) => CommonColors["white"];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Alert
|
|
2
|
+
export const alertLight = ({ theme }) => theme.palette.alert.light;
|
|
3
|
+
export const alertLightest = ({ theme, }) => theme.palette.alert.lightest;
|
|
4
|
+
export const alertMain = ({ theme }) => theme.palette.alert.main;
|
|
5
|
+
// Error
|
|
6
|
+
export const errorMain = ({ theme }) => theme.palette.error.main;
|
|
7
|
+
// Info
|
|
8
|
+
export const infoLight = ({ theme }) => theme.palette.info.light;
|
|
9
|
+
export const infoLightest = ({ theme }) => theme.palette.info.lightest;
|
|
10
|
+
export const infoMain = ({ theme }) => theme.palette.info.main;
|
|
11
|
+
// Ink
|
|
12
|
+
export const inkLight = ({ theme }) => theme.palette.ink.light;
|
|
13
|
+
export const inkMain = ({ theme }) => theme.palette.ink.main;
|
|
14
|
+
// Primary
|
|
15
|
+
export const primaryDark = ({ theme }) => theme.palette.primary.dark;
|
|
16
|
+
export const primaryLightest = ({ theme, }) => theme.palette.primary.lightest;
|
|
17
|
+
export const primaryMain = ({ theme }) => theme.palette.primary.main;
|
|
18
|
+
// Smoke
|
|
19
|
+
export const smokeDark = ({ theme }) => theme.palette.smoke.dark;
|
|
20
|
+
export const smokeLight = ({ theme }) => theme.palette.smoke.light;
|
|
21
|
+
export const smokeLightest = ({ theme, }) => theme.palette.smoke.lightest;
|
|
22
|
+
export const smokeMain = ({ theme }) => theme.palette.smoke.main;
|
|
23
|
+
// Success
|
|
24
|
+
export const successLight = ({ theme }) => theme.palette.success.light;
|
|
25
|
+
export const successLightest = ({ theme, }) => theme.palette.success.lightest;
|
|
26
|
+
export const successMain = ({ theme }) => theme.palette.success.main;
|
|
27
|
+
// Warning
|
|
28
|
+
export const warningLight = ({ theme }) => theme.palette.warning.light;
|
|
29
|
+
export const warningLightest = ({ theme, }) => theme.palette.warning.lightest;
|
|
30
|
+
export const warningMain = ({ theme }) => theme.palette.warning.main;
|
|
31
|
+
// White
|
|
32
|
+
export const white = ({ theme }) => theme.palette.common.white;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
export declare const textBody400: (props: any) => SerializedStyles;
|
|
3
|
+
export declare const textBody4002Lines: (props: any) => SerializedStyles;
|
|
4
|
+
export declare const textBody500: (props: any) => SerializedStyles;
|
|
5
|
+
export declare const textBody5002Lines: (props: any) => SerializedStyles;
|
|
6
|
+
export declare const textBodyLarge400: (props: any) => SerializedStyles;
|
|
7
|
+
export declare const textBodyLarge4002Lines: (props: any) => SerializedStyles;
|
|
8
|
+
export declare const textBodyLarge500: (props: any) => SerializedStyles;
|
|
9
|
+
export declare const textBodySmall400: (props: any) => SerializedStyles;
|
|
10
|
+
export declare const textBodySmall4002Lines: (props: any) => SerializedStyles;
|
|
11
|
+
export declare const textBodySmall500: (props: any) => SerializedStyles;
|
|
12
|
+
export declare const textHeading: (props: any) => SerializedStyles;
|
|
13
|
+
export declare const textHeadingLarge: (props: any) => SerializedStyles;
|
|
14
|
+
export declare const textHeadingSmall: (props: any) => SerializedStyles;
|
|
15
|
+
export declare const textHeadingXLarge: (props: any) => SerializedStyles;
|
|
16
|
+
export declare const textUppercase500: (props: any) => SerializedStyles;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { css } from "@emotion/react";
|
|
2
|
+
import { TEXT_BODY_400, TEXT_BODY_400_2_LINES, TEXT_BODY_500, TEXT_BODY_500_2_LINES, TEXT_BODY_LARGE_400, TEXT_BODY_LARGE_400_2_LINES, TEXT_BODY_LARGE_500, TEXT_BODY_SMALL_400, TEXT_BODY_SMALL_400_2_LINES, TEXT_BODY_SMALL_500, TEXT_HEADING, TEXT_HEADING_LARGE, TEXT_HEADING_SMALL, TEXT_HEADING_XLARGE, TEXT_UPPERCASE_500, } from "../../../theme/common/typography";
|
|
3
|
+
/**
|
|
4
|
+
* Returns typography style for the specified typography variant.
|
|
5
|
+
* @param TYPOGRAPHY - Typography variant name.
|
|
6
|
+
* @returns typography styles for the variant.
|
|
7
|
+
*/
|
|
8
|
+
function typographyToCSS(TYPOGRAPHY) {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO revisit any.
|
|
10
|
+
return (props) => {
|
|
11
|
+
return css `
|
|
12
|
+
${props.theme.typography[TYPOGRAPHY]}
|
|
13
|
+
`;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export const textBody400 = typographyToCSS(TEXT_BODY_400);
|
|
17
|
+
export const textBody4002Lines = typographyToCSS(TEXT_BODY_400_2_LINES);
|
|
18
|
+
export const textBody500 = typographyToCSS(TEXT_BODY_500);
|
|
19
|
+
export const textBody5002Lines = typographyToCSS(TEXT_BODY_500_2_LINES);
|
|
20
|
+
export const textBodyLarge400 = typographyToCSS(TEXT_BODY_LARGE_400);
|
|
21
|
+
export const textBodyLarge4002Lines = typographyToCSS(TEXT_BODY_LARGE_400_2_LINES);
|
|
22
|
+
export const textBodyLarge500 = typographyToCSS(TEXT_BODY_LARGE_500);
|
|
23
|
+
export const textBodySmall400 = typographyToCSS(TEXT_BODY_SMALL_400);
|
|
24
|
+
export const textBodySmall4002Lines = typographyToCSS(TEXT_BODY_SMALL_400_2_LINES);
|
|
25
|
+
export const textBodySmall500 = typographyToCSS(TEXT_BODY_SMALL_500);
|
|
26
|
+
export const textHeading = typographyToCSS(TEXT_HEADING);
|
|
27
|
+
export const textHeadingLarge = typographyToCSS(TEXT_HEADING_LARGE);
|
|
28
|
+
export const textHeadingSmall = typographyToCSS(TEXT_HEADING_SMALL);
|
|
29
|
+
export const textHeadingXLarge = typographyToCSS(TEXT_HEADING_XLARGE);
|
|
30
|
+
export const textUppercase500 = typographyToCSS(TEXT_UPPERCASE_500);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const PALETTE: {
|
|
2
|
+
readonly ALERT_LIGHT: "var(--mui-palette-alert-light)";
|
|
3
|
+
readonly ALERT_LIGHTEST: "var(--mui-palette-alert-lightest)";
|
|
4
|
+
readonly ALERT_MAIN: "var(--mui-palette-alert-main)";
|
|
5
|
+
readonly BACKGROUND_DEFAULT: "var(--mui-palette-background-default)";
|
|
6
|
+
readonly BACKGROUND_PAPER: "var(--mui-palette-background-paper)";
|
|
7
|
+
readonly COMMON_BACKGROUND: "var(--mui-palette-common-background)";
|
|
8
|
+
readonly COMMON_BLACK: "var(--mui-palette-common-black)";
|
|
9
|
+
readonly COMMON_WHITE: "var(--mui-palette-common-white)";
|
|
10
|
+
readonly ERROR_CONTRAST_TEXT: "var(--mui-palette-error-contrastText)";
|
|
11
|
+
readonly ERROR_DARK: "var(--mui-palette-error-dark)";
|
|
12
|
+
readonly ERROR_LIGHT: "var(--mui-palette-error-light)";
|
|
13
|
+
readonly ERROR_MAIN: "var(--mui-palette-error-main)";
|
|
14
|
+
readonly INFO_CONTRAST_TEXT: "var(--mui-palette-info-contrastText)";
|
|
15
|
+
readonly INFO_DARK: "var(--mui-palette-info-dark)";
|
|
16
|
+
readonly INFO_LIGHT: "var(--mui-palette-info-light)";
|
|
17
|
+
readonly INFO_LIGHTEST: "var(--mui-palette-info-lightest)";
|
|
18
|
+
readonly INFO_MAIN: "var(--mui-palette-info-main)";
|
|
19
|
+
readonly INK_LIGHT: "var(--mui-palette-ink-light)";
|
|
20
|
+
readonly INK_MAIN: "var(--mui-palette-ink-main)";
|
|
21
|
+
readonly PRIMARY_CONTRAST_TEXT: "var(--mui-palette-primary-contrastText)";
|
|
22
|
+
readonly PRIMARY_DARK: "var(--mui-palette-primary-dark)";
|
|
23
|
+
readonly PRIMARY_LIGHT: "var(--mui-palette-primary-light)";
|
|
24
|
+
readonly PRIMARY_LIGHTEST: "var(--mui-palette-primary-lightest)";
|
|
25
|
+
readonly PRIMARY_MAIN: "var(--mui-palette-primary-main)";
|
|
26
|
+
readonly SECONDARY_CONTRAST_TEXT: "var(--mui-palette-secondary-contrastText)";
|
|
27
|
+
readonly SECONDARY_DARK: "var(--mui-palette-secondary-dark)";
|
|
28
|
+
readonly SECONDARY_LIGHT: "var(--mui-palette-secondary-light)";
|
|
29
|
+
readonly SECONDARY_MAIN: "var(--mui-palette-secondary-main)";
|
|
30
|
+
readonly SMOKE_DARK: "var(--mui-palette-smoke-dark)";
|
|
31
|
+
readonly SMOKE_LIGHT: "var(--mui-palette-smoke-light)";
|
|
32
|
+
readonly SMOKE_LIGHTEST: "var(--mui-palette-smoke-lightest)";
|
|
33
|
+
readonly SMOKE_MAIN: "var(--mui-palette-smoke-main)";
|
|
34
|
+
readonly SUCCESS_CONTRAST_TEXT: "var(--mui-palette-success-contrastText)";
|
|
35
|
+
readonly SUCCESS_DARK: "var(--mui-palette-success-dark)";
|
|
36
|
+
readonly SUCCESS_LIGHT: "var(--mui-palette-success-light)";
|
|
37
|
+
readonly SUCCESS_LIGHTEST: "var(--mui-palette-success-lightest)";
|
|
38
|
+
readonly SUCCESS_MAIN: "var(--mui-palette-success-main)";
|
|
39
|
+
readonly TEXT_DISABLED: "var(--mui-palette-text-disabled)";
|
|
40
|
+
readonly TEXT_PRIMARY: "var(--mui-palette-text-primary)";
|
|
41
|
+
readonly TEXT_SECONDARY: "var(--mui-palette-text-secondary)";
|
|
42
|
+
readonly WARNING_CONTRAST_TEXT: "var(--mui-palette-warning-contrastText)";
|
|
43
|
+
readonly WARNING_DARK: "var(--mui-palette-warning-dark)";
|
|
44
|
+
readonly WARNING_LIGHT: "var(--mui-palette-warning-light)";
|
|
45
|
+
readonly WARNING_LIGHTEST: "var(--mui-palette-warning-lightest)";
|
|
46
|
+
readonly WARNING_MAIN: "var(--mui-palette-warning-main)";
|
|
47
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const PALETTE = {
|
|
2
|
+
ALERT_LIGHT: `var(--mui-palette-alert-light)`,
|
|
3
|
+
ALERT_LIGHTEST: `var(--mui-palette-alert-lightest)`,
|
|
4
|
+
ALERT_MAIN: `var(--mui-palette-alert-main)`,
|
|
5
|
+
BACKGROUND_DEFAULT: `var(--mui-palette-background-default)`,
|
|
6
|
+
BACKGROUND_PAPER: `var(--mui-palette-background-paper)`,
|
|
7
|
+
COMMON_BACKGROUND: `var(--mui-palette-common-background)`,
|
|
8
|
+
COMMON_BLACK: `var(--mui-palette-common-black)`,
|
|
9
|
+
COMMON_WHITE: `var(--mui-palette-common-white)`,
|
|
10
|
+
ERROR_CONTRAST_TEXT: `var(--mui-palette-error-contrastText)`,
|
|
11
|
+
ERROR_DARK: `var(--mui-palette-error-dark)`,
|
|
12
|
+
ERROR_LIGHT: `var(--mui-palette-error-light)`,
|
|
13
|
+
ERROR_MAIN: `var(--mui-palette-error-main)`,
|
|
14
|
+
INFO_CONTRAST_TEXT: `var(--mui-palette-info-contrastText)`,
|
|
15
|
+
INFO_DARK: `var(--mui-palette-info-dark)`,
|
|
16
|
+
INFO_LIGHT: `var(--mui-palette-info-light)`,
|
|
17
|
+
INFO_LIGHTEST: `var(--mui-palette-info-lightest)`,
|
|
18
|
+
INFO_MAIN: `var(--mui-palette-info-main)`,
|
|
19
|
+
INK_LIGHT: `var(--mui-palette-ink-light)`,
|
|
20
|
+
INK_MAIN: `var(--mui-palette-ink-main)`,
|
|
21
|
+
PRIMARY_CONTRAST_TEXT: `var(--mui-palette-primary-contrastText)`,
|
|
22
|
+
PRIMARY_DARK: `var(--mui-palette-primary-dark)`,
|
|
23
|
+
PRIMARY_LIGHT: `var(--mui-palette-primary-light)`,
|
|
24
|
+
PRIMARY_LIGHTEST: `var(--mui-palette-primary-lightest)`,
|
|
25
|
+
PRIMARY_MAIN: `var(--mui-palette-primary-main)`,
|
|
26
|
+
SECONDARY_CONTRAST_TEXT: `var(--mui-palette-secondary-contrastText)`,
|
|
27
|
+
SECONDARY_DARK: `var(--mui-palette-secondary-dark)`,
|
|
28
|
+
SECONDARY_LIGHT: `var(--mui-palette-secondary-light)`,
|
|
29
|
+
SECONDARY_MAIN: `var(--mui-palette-secondary-main)`,
|
|
30
|
+
SMOKE_DARK: `var(--mui-palette-smoke-dark)`,
|
|
31
|
+
SMOKE_LIGHT: `var(--mui-palette-smoke-light)`,
|
|
32
|
+
SMOKE_LIGHTEST: `var(--mui-palette-smoke-lightest)`,
|
|
33
|
+
SMOKE_MAIN: `var(--mui-palette-smoke-main)`,
|
|
34
|
+
SUCCESS_CONTRAST_TEXT: `var(--mui-palette-success-contrastText)`,
|
|
35
|
+
SUCCESS_DARK: `var(--mui-palette-success-dark)`,
|
|
36
|
+
SUCCESS_LIGHT: `var(--mui-palette-success-light)`,
|
|
37
|
+
SUCCESS_LIGHTEST: `var(--mui-palette-success-lightest)`,
|
|
38
|
+
SUCCESS_MAIN: `var(--mui-palette-success-main)`,
|
|
39
|
+
TEXT_DISABLED: `var(--mui-palette-text-disabled)`,
|
|
40
|
+
TEXT_PRIMARY: `var(--mui-palette-text-primary)`,
|
|
41
|
+
TEXT_SECONDARY: `var(--mui-palette-text-secondary)`,
|
|
42
|
+
WARNING_CONTRAST_TEXT: `var(--mui-palette-warning-contrastText)`,
|
|
43
|
+
WARNING_DARK: `var(--mui-palette-warning-dark)`,
|
|
44
|
+
WARNING_LIGHT: `var(--mui-palette-warning-light)`,
|
|
45
|
+
WARNING_LIGHTEST: `var(--mui-palette-warning-lightest)`,
|
|
46
|
+
WARNING_MAIN: `var(--mui-palette-warning-main)`,
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|