@databiosphere/findable-ui 37.1.0 → 38.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 +11 -0
- package/lib/components/DataDictionary/components/Entities/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entity/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/components/ColumnFilterTags/columnFilterTags.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/filters.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/EntitiesLayout/entitiesLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/EntitiesLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/OutlineLayout/outlineLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/OutlineLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Table/table.js +3 -3
- package/lib/components/DataDictionary/components/Title/title.d.ts +2 -2
- package/lib/components/DataDictionary/components/Title/title.js +1 -1
- package/lib/components/DataDictionary/components/Title/title.styles.d.ts +5 -1
- package/lib/components/DataDictionary/dataDictionary.js +2 -2
- package/lib/components/Detail/components/DetailViewTable/detailViewTable.js +3 -3
- package/lib/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.js +2 -2
- package/lib/components/Detail/components/Table/components/TableRows/tableRows.js +2 -2
- package/lib/components/Detail/components/Table/table.js +1 -1
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +2 -2
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +3 -2
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.d.ts +5 -0
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.js +5 -0
- package/lib/components/Filter/components/FilterCountChip/filterCountChip.js +1 -1
- package/lib/components/Filter/components/FilterCountChip/filterCountChip.styles.d.ts +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterMenu/filterMenu.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +2 -2
- package/lib/components/Filter/components/Filters/filters.d.ts +1 -2
- package/lib/components/Filter/components/Filters/filters.js +4 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.d.ts +1 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +5 -3
- package/lib/components/Index/components/EntityView/components/controls/ActionButton/actionButton.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/controls/ActionButton/actionButton.js +10 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.js +20 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.d.ts +5 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.js +18 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.d.ts +5 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/hook.d.ts +2 -0
- package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/hook.js +3 -3
- package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.d.ts +1 -1
- package/lib/components/Index/{stories/index.stories.d.ts → components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.d.ts} +2 -2
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.js +6 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.js +13 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/constants.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/constants.js +5 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.js +15 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.d.ts +10 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.js +17 -0
- package/lib/components/Index/components/EntityView/components/layout/Title/title.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Title/title.js +11 -0
- package/lib/components/Index/components/{Tabs → EntityView/components/navigation/Tabs}/common/utils.d.ts +2 -2
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/common/utils.js +14 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.js +23 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.js +19 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.js +12 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.js +14 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.d.ts +7 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.js +16 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.js +6 -2
- package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.styles.d.ts +13 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.styles.js +2 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.js +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.js +3 -3
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/types.d.ts +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/types.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.js +1 -1
- package/lib/components/Index/components/EntityView/components/views/ChartView/types.d.ts +8 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.d.ts +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.js +1 -1
- package/lib/components/Index/components/EntityView/components/views/TableView/tableView.d.ts +3 -0
- package/lib/components/Index/components/{EntitiesView/components/EntityList/entityList.js → EntityView/components/views/TableView/tableView.js} +4 -4
- package/lib/components/Index/components/EntityView/context/context.d.ts +2 -0
- package/lib/components/Index/components/EntityView/context/context.js +7 -0
- package/lib/components/Index/components/EntityView/context/hook.d.ts +6 -0
- package/lib/components/Index/components/EntityView/context/hook.js +9 -0
- package/lib/components/Index/components/EntityView/context/types.d.ts +7 -0
- package/lib/components/Index/index.d.ts +1 -1
- package/lib/components/Index/index.js +34 -17
- package/lib/components/Index/index.styles.d.ts +29 -8
- package/lib/components/Index/index.styles.js +55 -7
- package/lib/components/Index/types.d.ts +0 -7
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +1 -1
- package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.d.ts +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +4 -4
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.d.ts +3 -3
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +3 -3
- package/lib/components/Layout/components/Sidebar/sidebar.d.ts +2 -7
- package/lib/components/Layout/components/Sidebar/sidebar.js +8 -7
- package/lib/components/Layout/components/Sidebar/sidebar.stories.js +0 -4
- package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +1 -1
- package/lib/components/Table/common/gridTable.styles.d.ts +1 -1
- package/lib/components/Table/common/gridTable.styles.js +10 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.js +3 -2
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.d.ts +5 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.js +8 -0
- package/lib/components/Table/components/PaginationSummary/paginationSummary.js +1 -1
- package/lib/components/Table/components/TableBody/tableBody.d.ts +3 -1
- package/lib/components/Table/components/TableBody/tableBody.js +9 -3
- package/lib/components/Table/components/TableCell/components/CodeCell/codeCell.styles.d.ts +2 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.d.ts +1 -3
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.js +2 -2
- package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.styles.d.ts +1 -1
- package/lib/components/Table/components/TableFeatures/ColumnFilter/components/ColumnFilterTag/columnFilterTag.styles.d.ts +2 -2
- package/lib/components/Table/components/TableHead/tableHead.d.ts +1 -1
- package/lib/components/Table/components/TableHead/tableHead.js +8 -10
- package/lib/components/Table/components/TableHead/types.d.ts +0 -2
- package/lib/components/Table/components/TablePagination/stories/args.d.ts +3 -0
- package/lib/components/Table/components/TablePagination/stories/args.js +9 -0
- package/lib/components/{Index/components/Hero/components/Summaries/stories/summaries.stories.d.ts → Table/components/TablePagination/stories/tablePagination.stories.d.ts} +2 -2
- package/lib/components/Table/components/TablePagination/stories/tablePagination.stories.js +9 -0
- package/lib/components/Table/components/TablePagination/tablePagination.d.ts +2 -0
- package/lib/components/Table/components/TablePagination/tablePagination.js +20 -0
- package/lib/components/Table/components/TablePagination/tablePagination.styles.d.ts +7 -0
- package/lib/components/Table/components/TablePagination/tablePagination.styles.js +10 -0
- package/lib/components/Table/components/TablePagination/types.d.ts +8 -0
- package/lib/components/Table/components/TableRow/tableRow.styles.d.ts +3 -4
- package/lib/components/Table/components/TableRow/tableRow.styles.js +1 -1
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -1
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.js +6 -6
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.d.ts +5 -0
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.js +5 -0
- package/lib/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.d.ts +1 -1
- package/lib/components/Table/components/TableRows/tableRows.d.ts +1 -1
- package/lib/components/Table/components/TableRows/tableRows.js +2 -2
- package/lib/components/Table/components/TableToolbar/constants.d.ts +2 -0
- package/lib/components/Table/components/TableToolbar/constants.js +6 -0
- package/lib/components/Table/components/TableToolbar/tableToolbar.d.ts +1 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.js +12 -11
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.d.ts +3 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.js +14 -13
- package/lib/components/Table/table.d.ts +1 -2
- package/lib/components/Table/table.js +10 -11
- package/lib/components/Table/table.styles.d.ts +14 -1
- package/lib/components/Table/table.styles.js +34 -1
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.d.ts +2 -5
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.js +4 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +6 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.js +8 -8
- package/lib/components/common/Button/components/DropdownButton/types.d.ts +4 -0
- package/lib/components/common/Button/constants.d.ts +2 -2
- package/lib/components/common/Button/constants.js +10 -0
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +1 -1
- package/lib/components/common/Dot/dot.d.ts +2 -4
- package/lib/components/common/Drawer/provider/context.d.ts +2 -0
- package/lib/components/common/Drawer/provider/context.js +6 -0
- package/lib/components/common/Drawer/provider/hook.d.ts +6 -0
- package/lib/components/common/Drawer/provider/hook.js +9 -0
- package/lib/components/common/Drawer/provider/provider.d.ts +4 -0
- package/lib/components/common/Drawer/provider/provider.js +8 -0
- package/lib/components/common/Drawer/provider/types.d.ts +6 -0
- package/lib/components/common/Drawer/provider/types.js +1 -0
- package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
- package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +1 -1
- package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
- package/lib/components/common/Input/input.styles.d.ts +1 -1
- package/lib/components/common/OutlinedInput/components/InputAdornment/components/ClearInputAdornment/clearInputAdornment.styles.d.ts +1 -1
- package/lib/components/common/OutlinedInput/components/InputAdornment/inputAdornment.styles.d.ts +1 -1
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.js +5 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.d.ts +5 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.js +8 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.js +5 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.d.ts +7 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.js +10 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.js +5 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.d.ts +5 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.js +9 -0
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +1 -1
- package/lib/components/common/Tabs/tabs.js +1 -1
- package/lib/components/common/Tabs/tabs.styles.d.ts +1 -1
- package/lib/components/common/Title/title.d.ts +2 -7
- package/lib/components/common/Title/title.js +9 -5
- package/lib/components/common/Title/title.styles.d.ts +1 -1
- package/lib/components/common/Title/title.styles.js +3 -1
- package/lib/config/entities.d.ts +14 -7
- package/lib/config/utils.js +0 -1
- package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.js +1 -1
- package/lib/hooks/UseLayoutSpacing/types.js +1 -0
- package/lib/hooks/useSummary.d.ts +2 -8
- package/lib/hooks/useSummary.js +19 -20
- package/lib/routes/constants.d.ts +1 -0
- package/lib/routes/constants.js +1 -0
- package/lib/styles/common/constants/colorMixes.d.ts +2 -0
- package/lib/styles/common/constants/colorMixes.js +2 -0
- package/lib/styles/common/mui/paper.js +0 -1
- package/lib/styles/common/mui/toggleButton.d.ts +9 -0
- package/lib/styles/common/mui/toggleButton.js +18 -0
- package/lib/styles/common/mui/typography.js +1 -0
- package/lib/tests/testIds.d.ts +1 -1
- package/lib/tests/testIds.js +1 -1
- package/lib/theme/common/components.js +64 -59
- package/lib/views/ExploreView/exploreView.js +10 -59
- package/package.json +2 -2
- package/src/components/DataDictionary/components/Entities/types.ts +1 -1
- package/src/components/DataDictionary/components/Entity/entity.styles.ts +1 -1
- package/src/components/DataDictionary/components/Entity/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/EntitiesLayout/entitiesLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/EntitiesLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/FiltersLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/OutlineLayout/outlineLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/OutlineLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/TitleLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Table/table.tsx +4 -7
- package/src/components/DataDictionary/components/Title/title.tsx +5 -3
- package/src/components/DataDictionary/dataDictionary.tsx +2 -2
- package/src/components/Detail/components/DetailViewTable/detailViewTable.tsx +3 -3
- package/src/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.tsx +3 -3
- package/src/components/Detail/components/Table/components/TableRows/tableRows.tsx +3 -3
- package/src/components/Detail/components/Table/table.tsx +1 -1
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.styles.ts +6 -0
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +6 -3
- package/src/components/Filter/components/FilterCountChip/filterCountChip.tsx +1 -0
- package/src/components/Filter/components/Filters/filters.tsx +3 -3
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +4 -4
- package/src/components/Index/components/EntityView/components/controls/ActionButton/actionButton.tsx +12 -0
- package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.tsx +39 -0
- package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.tsx +39 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/hook.ts +15 -0
- package/src/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.ts +1 -1
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.tsx +12 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.tsx +24 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/constants.ts +7 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts +19 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.tsx +34 -0
- package/src/components/Index/components/EntityView/components/layout/Title/title.tsx +16 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/common/utils.ts +25 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.ts +20 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/tabs.tsx +28 -0
- package/src/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.tsx +14 -0
- package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.ts +17 -0
- package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.tsx +19 -0
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.styles.ts +2 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.tsx +10 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.tsx +1 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/types.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/types.ts +1 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.tsx +1 -1
- package/src/components/Index/components/EntityView/components/views/ChartView/types.ts +9 -0
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components/EntityList/entityList.tsx → EntityView/components/views/TableView/tableView.tsx} +4 -4
- package/src/components/Index/components/EntityView/context/context.ts +9 -0
- package/src/components/Index/components/EntityView/context/hook.ts +11 -0
- package/src/components/Index/components/EntityView/context/types.ts +11 -0
- package/src/components/Index/index.styles.ts +59 -11
- package/src/components/Index/index.tsx +63 -41
- package/src/components/Index/types.ts +0 -7
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +1 -1
- package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +8 -8
- package/src/components/Layout/components/Sidebar/sidebar.stories.tsx +0 -4
- package/src/components/Layout/components/Sidebar/sidebar.tsx +10 -18
- package/src/components/Table/common/gridTable.styles.ts +10 -0
- package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.ts +9 -0
- package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.tsx +6 -4
- package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +1 -1
- package/src/components/Table/components/TableBody/tableBody.tsx +11 -3
- package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.tsx +1 -10
- package/src/components/Table/components/TableHead/tableHead.tsx +37 -44
- package/src/components/Table/components/TableHead/types.ts +0 -2
- package/src/components/Table/components/TablePagination/stories/args.ts +12 -0
- package/src/components/Table/components/TablePagination/stories/tablePagination.stories.tsx +15 -0
- package/src/components/Table/components/TablePagination/tablePagination.styles.ts +11 -0
- package/src/components/Table/components/TablePagination/tablePagination.tsx +47 -0
- package/src/components/Table/components/TablePagination/types.ts +8 -0
- package/src/components/Table/components/TableRow/tableRow.styles.ts +3 -3
- package/src/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.ts +6 -0
- package/src/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.tsx +9 -10
- package/src/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.tsx +1 -1
- package/src/components/Table/components/TableRows/tableRows.tsx +4 -4
- package/src/components/Table/components/TableToolbar/constants.ts +8 -0
- package/src/components/Table/components/TableToolbar/tableToolbar.styles.ts +14 -14
- package/src/components/Table/components/TableToolbar/tableToolbar.tsx +21 -27
- package/src/components/Table/table.styles.ts +35 -1
- package/src/components/Table/table.tsx +10 -14
- package/src/components/common/Button/components/DropdownButton/dropdownButton.styles.ts +10 -10
- package/src/components/common/Button/components/DropdownButton/dropdownButton.tsx +8 -12
- package/src/components/common/Button/components/DropdownButton/types.ts +5 -0
- package/src/components/common/Button/constants.ts +12 -2
- package/src/components/common/Dot/dot.tsx +2 -5
- package/src/components/common/Drawer/provider/context.ts +8 -0
- package/src/components/common/Drawer/provider/hook.ts +11 -0
- package/src/components/common/Drawer/provider/provider.tsx +20 -0
- package/src/components/common/Drawer/provider/types.ts +10 -0
- package/src/components/common/Paper/components/FlatPaper/flatPaper.styles.ts +9 -0
- package/src/components/common/Paper/components/FlatPaper/flatPaper.tsx +10 -0
- package/src/components/common/Paper/components/FluidPaper/fluidPaper.styles.ts +11 -0
- package/src/components/common/Paper/components/FluidPaper/fluidPaper.tsx +10 -0
- package/src/components/common/Paper/components/RoundedPaper/roundedPaper.styles.ts +10 -0
- package/src/components/common/Paper/components/RoundedPaper/roundedPaper.tsx +10 -0
- package/src/components/common/Tabs/tabs.tsx +1 -1
- package/src/components/common/Title/title.styles.ts +3 -1
- package/src/components/common/Title/title.tsx +20 -28
- package/src/config/entities.ts +15 -7
- package/src/config/utils.ts +0 -1
- package/src/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.ts +1 -1
- package/src/hooks/useSummary.ts +20 -27
- package/src/routes/constants.ts +1 -0
- package/src/styles/common/constants/colorMixes.ts +2 -0
- package/src/styles/common/mui/paper.ts +0 -1
- package/src/styles/common/mui/toggleButton.ts +27 -0
- package/src/styles/common/mui/typography.ts +1 -0
- package/src/tests/testIds.ts +1 -1
- package/src/theme/common/components.ts +64 -59
- package/src/views/ExploreView/exploreView.tsx +10 -100
- package/tests/chart.test.tsx +3 -3
- package/tests/chartView.test.tsx +2 -2
- package/tests/viewToggle.test.tsx +56 -0
- package/types/data-explorer-ui.d.ts +0 -7
- package/lib/components/DataDictionary/components/Table/table.styles.d.ts +0 -3
- package/lib/components/DataDictionary/components/Table/table.styles.js +0 -5
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +0 -13
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +0 -8
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +0 -3
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +0 -2
- package/lib/components/Index/components/EntitiesView/entitiesView.js +0 -15
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +0 -3
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +0 -20
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +0 -2
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +0 -8
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +0 -50
- package/lib/components/Index/components/EntitiesView/types.d.ts +0 -8
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +0 -13
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +0 -3
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.js +0 -13
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js +0 -14
- package/lib/components/Index/components/Hero/components/Summaries/summaries.d.ts +0 -9
- package/lib/components/Index/components/Hero/components/Summaries/summaries.js +0 -12
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +0 -7
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.js +0 -26
- package/lib/components/Index/components/Hero/hero.d.ts +0 -11
- package/lib/components/Index/components/Hero/hero.js +0 -12
- package/lib/components/Index/components/Hero/hero.styles.d.ts +0 -16
- package/lib/components/Index/components/Hero/hero.styles.js +0 -44
- package/lib/components/Index/components/Hero/stories/hero.stories.d.ts +0 -6
- package/lib/components/Index/components/Hero/stories/hero.stories.js +0 -16
- package/lib/components/Index/components/Tabs/common/utils.js +0 -19
- package/lib/components/Index/components/Tabs/tabs.js +0 -20
- package/lib/components/Index/stories/index.stories.js +0 -17
- package/lib/components/Table/components/Pagination/pagination.d.ts +0 -9
- package/lib/components/Table/components/Pagination/pagination.js +0 -19
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +0 -28
- package/lib/components/Table/components/Pagination/pagination.stories.js +0 -24
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +0 -4
- package/lib/components/Table/components/Pagination/pagination.styles.js +0 -15
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.d.ts +0 -3
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.js +0 -3
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.d.ts +0 -8
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.js +0 -18
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.d.ts +0 -4
- package/src/components/DataDictionary/components/Table/table.styles.ts +0 -6
- package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +0 -9
- package/src/components/Index/components/EntitiesView/entitiesView.styles.ts +0 -21
- package/src/components/Index/components/EntitiesView/entitiesView.tsx +0 -30
- package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.ts +0 -15
- package/src/components/Index/components/EntitiesView/stories/entitiesView.stories.tsx +0 -76
- package/src/components/Index/components/EntitiesView/types.ts +0 -9
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.styles.ts +0 -14
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +0 -26
- package/src/components/Index/components/Hero/components/Summaries/stories/summaries.stories.tsx +0 -20
- package/src/components/Index/components/Hero/components/Summaries/summaries.styles.ts +0 -31
- package/src/components/Index/components/Hero/components/Summaries/summaries.tsx +0 -35
- package/src/components/Index/components/Hero/hero.styles.ts +0 -55
- package/src/components/Index/components/Hero/hero.tsx +0 -40
- package/src/components/Index/components/Hero/stories/hero.stories.tsx +0 -22
- package/src/components/Index/components/Tabs/common/utils.ts +0 -35
- package/src/components/Index/components/Tabs/tabs.tsx +0 -23
- package/src/components/Index/stories/index.stories.tsx +0 -23
- package/src/components/Table/components/Pagination/pagination.stories.tsx +0 -30
- package/src/components/Table/components/Pagination/pagination.styles.ts +0 -16
- package/src/components/Table/components/Pagination/pagination.tsx +0 -50
- package/src/components/Table/components/TableBody/hooks/virtualizer/constants.ts +0 -3
- package/src/components/Table/components/TableBody/hooks/virtualizer/hook.ts +0 -23
- package/src/components/Table/components/TableBody/hooks/virtualizer/types.ts +0 -5
- package/tests/entitiesView.test.tsx +0 -32
- /package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.js +0 -0
- /package/lib/components/Index/components/{Tabs → EntityView/components/navigation/Tabs}/tabs.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.d.ts +0 -0
- /package/lib/components/{DataDictionary/hooks/UseLayoutSpacing → Index/components/EntityView/components/views/ChartView/components/Chart}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView/components/Chart → EntityView/components/views/ChartView/hooks/UseChartView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView/hooks/UseChartView → EntityView/components/views/ChartView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/EntityList → EntityView/components/views/TableView}/types.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView → EntityView/components/views/TableView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/EntityList → EntityView/context}/types.js +0 -0
- /package/lib/components/{Index/components/EntitiesView → Table/components/TablePagination}/types.js +0 -0
- /package/lib/components/{Table/components/TableBody/hooks/virtualizer → common/Button/components/DropdownButton}/types.js +0 -0
- /package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.d.ts +0 -0
- /package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/types.d.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.tsx +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components/EntityList → EntityView/components/views/TableView}/types.ts +0 -0
- /package/src/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/types.ts +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Box } from "@mui/material";
|
|
2
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
import { fn } from "@storybook/test";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { LOREM_IPSUM } from "../../../../../storybook/loremIpsum";
|
|
6
|
-
import { EntitiesView } from "../entitiesView";
|
|
7
|
-
import { VIEW_MODE } from "../hooks/UseEntitiesView/types";
|
|
8
|
-
|
|
9
|
-
const meta: Meta<typeof EntitiesView> = {
|
|
10
|
-
args: {
|
|
11
|
-
onChange: fn(),
|
|
12
|
-
viewMode: VIEW_MODE.TABLE,
|
|
13
|
-
viewStatus: { disabled: true },
|
|
14
|
-
},
|
|
15
|
-
component: EntitiesView,
|
|
16
|
-
title: "Components/Entities/EntitiesView",
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default meta;
|
|
20
|
-
|
|
21
|
-
type Story = StoryObj<typeof meta>;
|
|
22
|
-
|
|
23
|
-
export const Default: Story = {
|
|
24
|
-
args: {
|
|
25
|
-
children: (
|
|
26
|
-
<Box
|
|
27
|
-
sx={{
|
|
28
|
-
backgroundColor: "white",
|
|
29
|
-
maxWidth: "800px",
|
|
30
|
-
padding: 5,
|
|
31
|
-
width: "100%",
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
{LOREM_IPSUM.LONG}
|
|
35
|
-
</Box>
|
|
36
|
-
),
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const ChartView: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
children: (
|
|
43
|
-
<Box
|
|
44
|
-
sx={{
|
|
45
|
-
backgroundColor: "white",
|
|
46
|
-
maxWidth: "800px",
|
|
47
|
-
padding: 5,
|
|
48
|
-
width: "100%",
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
{LOREM_IPSUM.SHORT}
|
|
52
|
-
</Box>
|
|
53
|
-
),
|
|
54
|
-
viewMode: VIEW_MODE.CHART,
|
|
55
|
-
viewStatus: { disabled: false },
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const TableView: Story = {
|
|
60
|
-
args: {
|
|
61
|
-
children: (
|
|
62
|
-
<Box
|
|
63
|
-
sx={{
|
|
64
|
-
backgroundColor: "white",
|
|
65
|
-
maxWidth: "800px",
|
|
66
|
-
padding: 5,
|
|
67
|
-
width: "100%",
|
|
68
|
-
}}
|
|
69
|
-
>
|
|
70
|
-
{LOREM_IPSUM.SHORT}
|
|
71
|
-
</Box>
|
|
72
|
-
),
|
|
73
|
-
viewMode: VIEW_MODE.TABLE,
|
|
74
|
-
viewStatus: { disabled: false },
|
|
75
|
-
},
|
|
76
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
-
import { ChildrenProps } from "../../../types";
|
|
3
|
-
import { VIEW_MODE, ViewStatus } from "./hooks/UseEntitiesView/types";
|
|
4
|
-
|
|
5
|
-
export interface EntitiesViewProps extends ChildrenProps {
|
|
6
|
-
onChange: ToggleButtonGroupProps["onChange"];
|
|
7
|
-
viewMode: VIEW_MODE;
|
|
8
|
-
viewStatus: ViewStatus;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { mediaTabletUp } from "../../../../../../styles/common/mixins/breakpoints";
|
|
3
|
-
import { ButtonPrimary } from "../../../../../common/Button/components/ButtonPrimary/buttonPrimary";
|
|
4
|
-
|
|
5
|
-
export const Button = styled(ButtonPrimary)`
|
|
6
|
-
border-bottom-left-radius: 0;
|
|
7
|
-
border-top-left-radius: 0;
|
|
8
|
-
display: none;
|
|
9
|
-
margin-left: -1px;
|
|
10
|
-
|
|
11
|
-
${mediaTabletUp} {
|
|
12
|
-
display: block;
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Tooltip } from "@mui/material";
|
|
2
|
-
import Link from "next/link";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { useDownloadStatus } from "../../../../../../hooks/useDownloadStatus";
|
|
5
|
-
import { TEST_IDS } from "../../../../../../tests/testIds";
|
|
6
|
-
import { Button } from "./exportButton.styles";
|
|
7
|
-
|
|
8
|
-
export const ExportButton = (): JSX.Element => {
|
|
9
|
-
const { disabled, isLoading, message } = useDownloadStatus();
|
|
10
|
-
return (
|
|
11
|
-
<Tooltip arrow title={message}>
|
|
12
|
-
<span>
|
|
13
|
-
<Link href="/export" legacyBehavior passHref>
|
|
14
|
-
<Button
|
|
15
|
-
data-testid={TEST_IDS.EXPORT_BUTTON}
|
|
16
|
-
disabled={disabled || isLoading}
|
|
17
|
-
href="passHref"
|
|
18
|
-
id="button-cohort-export"
|
|
19
|
-
>
|
|
20
|
-
Export
|
|
21
|
-
</Button>
|
|
22
|
-
</Link>
|
|
23
|
-
</span>
|
|
24
|
-
</Tooltip>
|
|
25
|
-
);
|
|
26
|
-
};
|
package/src/components/Index/components/Hero/components/Summaries/stories/summaries.stories.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Summaries } from "../summaries";
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof Summaries> = {
|
|
5
|
-
component: Summaries,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
|
|
12
|
-
export const Default: Story = {
|
|
13
|
-
args: {
|
|
14
|
-
summaries: [
|
|
15
|
-
{ count: "1", label: "Species" },
|
|
16
|
-
{ count: "1.1k", label: "Donors" },
|
|
17
|
-
{ count: "508.5k", label: "Files" },
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import {
|
|
3
|
-
mediaTabletDown,
|
|
4
|
-
mediaTabletUp,
|
|
5
|
-
} from "../../../../../../styles/common/mixins/breakpoints";
|
|
6
|
-
import { Dot as DXDot } from "../../../../../common/Dot/dot";
|
|
7
|
-
|
|
8
|
-
export const Summary = styled.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex: 1;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: 4px;
|
|
13
|
-
|
|
14
|
-
.MuiTypography-text-body-small-400 {
|
|
15
|
-
-webkit-box-orient: vertical;
|
|
16
|
-
display: -webkit-box;
|
|
17
|
-
-webkit-line-clamp: 1;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
${mediaTabletUp} {
|
|
22
|
-
flex: none;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const Dot = styled(DXDot)`
|
|
28
|
-
${mediaTabletDown} {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Typography } from "@mui/material";
|
|
2
|
-
import React, { Fragment, ReactNode } from "react";
|
|
3
|
-
import {
|
|
4
|
-
TEXT_BODY_SMALL_400,
|
|
5
|
-
TEXT_BODY_SMALL_500,
|
|
6
|
-
} from "../../../../../../theme/common/typography";
|
|
7
|
-
import { Dot, Summary } from "./summaries.styles";
|
|
8
|
-
|
|
9
|
-
export interface Summary {
|
|
10
|
-
count: string;
|
|
11
|
-
label: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface SummariesProps {
|
|
15
|
-
summaries?: Summary[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const Summaries = ({ summaries }: SummariesProps): JSX.Element => {
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
{summaries &&
|
|
22
|
-
summaries.map(({ count, label }, c) => (
|
|
23
|
-
<Fragment key={`${label}${c}`}>
|
|
24
|
-
{c !== 0 && <Dot />}
|
|
25
|
-
<Summary>
|
|
26
|
-
<Typography variant={TEXT_BODY_SMALL_500}>{count}</Typography>
|
|
27
|
-
<Typography color="ink.light" variant={TEXT_BODY_SMALL_400}>
|
|
28
|
-
{label}
|
|
29
|
-
</Typography>
|
|
30
|
-
</Summary>
|
|
31
|
-
</Fragment>
|
|
32
|
-
))}
|
|
33
|
-
</>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import {
|
|
3
|
-
mediaDesktopSmallUp,
|
|
4
|
-
mediaTabletUp,
|
|
5
|
-
} from "../../../../styles/common/mixins/breakpoints";
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
buttonWidget: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const HeroLayout = styled.div`
|
|
12
|
-
align-items: center;
|
|
13
|
-
display: grid;
|
|
14
|
-
gap: 16px;
|
|
15
|
-
grid-template-columns: 1fr;
|
|
16
|
-
padding: 0 16px;
|
|
17
|
-
|
|
18
|
-
${mediaTabletUp} {
|
|
19
|
-
grid-template-columns: 1fr auto;
|
|
20
|
-
padding: 0;
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const Widgets = styled.div`
|
|
25
|
-
align-items: center;
|
|
26
|
-
display: flex;
|
|
27
|
-
height: 60px;
|
|
28
|
-
|
|
29
|
-
${mediaTabletUp} {
|
|
30
|
-
height: 40px;
|
|
31
|
-
justify-self: flex-start;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
${mediaDesktopSmallUp} {
|
|
35
|
-
grid-column: 2;
|
|
36
|
-
justify-self: flex-end;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
|
|
40
|
-
export const SummaryWidget = styled.div<Props>`
|
|
41
|
-
align-items: center;
|
|
42
|
-
border: 1px solid ${({ theme }) => theme.palette.smoke.main};
|
|
43
|
-
border-radius: 4px;
|
|
44
|
-
display: flex;
|
|
45
|
-
gap: 0 8px;
|
|
46
|
-
flex: 1;
|
|
47
|
-
height: inherit;
|
|
48
|
-
padding: 12px 16px;
|
|
49
|
-
|
|
50
|
-
${mediaTabletUp} {
|
|
51
|
-
border-radius: ${({ buttonWidget }) =>
|
|
52
|
-
buttonWidget ? "4px 0 0 4px" : "4px"};
|
|
53
|
-
flex: none;
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { HeroTitle, Title } from "../../../common/Title/title";
|
|
3
|
-
import { ExportButton } from "./components/ExportButton/exportButton";
|
|
4
|
-
import { HeroLayout, SummaryWidget, Widgets } from "./hero.styles";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* ExploreView page hero component comprising title, summary counts, and export button.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export interface HeroProps {
|
|
11
|
-
SideBarButton?: ReactNode;
|
|
12
|
-
Summaries?: ReactNode;
|
|
13
|
-
title: HeroTitle;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const Hero = ({
|
|
17
|
-
SideBarButton,
|
|
18
|
-
Summaries,
|
|
19
|
-
title,
|
|
20
|
-
}: HeroProps): JSX.Element => {
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
{(title || SideBarButton || Summaries) && (
|
|
24
|
-
<HeroLayout>
|
|
25
|
-
<Title title={title} />
|
|
26
|
-
{SideBarButton}
|
|
27
|
-
{Summaries && (
|
|
28
|
-
<Widgets>
|
|
29
|
-
<SummaryWidget buttonWidget={true}>
|
|
30
|
-
{/* TODO +n link widget, and accompanying Dot separator */}
|
|
31
|
-
{Summaries}
|
|
32
|
-
</SummaryWidget>
|
|
33
|
-
<ExportButton />
|
|
34
|
-
</Widgets>
|
|
35
|
-
)}
|
|
36
|
-
</HeroLayout>
|
|
37
|
-
)}
|
|
38
|
-
</>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { composeStories, Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import * as summaryStories from "../components/Summaries/stories/summaries.stories";
|
|
4
|
-
import { Hero } from "../hero";
|
|
5
|
-
|
|
6
|
-
const { Default: Summaries } = composeStories(summaryStories);
|
|
7
|
-
|
|
8
|
-
const meta: Meta<typeof Hero> = {
|
|
9
|
-
component: Hero,
|
|
10
|
-
parameters: { layout: "fullscreen" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default meta;
|
|
14
|
-
|
|
15
|
-
type Story = StoryObj<typeof meta>;
|
|
16
|
-
|
|
17
|
-
export const Default: Story = {
|
|
18
|
-
args: {
|
|
19
|
-
Summaries: <Summaries />,
|
|
20
|
-
title: "Data Explorer",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EntityConfig } from "../../../../../config/entities";
|
|
2
|
-
import { Tab } from "../../../../common/Tabs/tabs";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Returns entity list tabs list for the tabs component.
|
|
6
|
-
* @param entities - Entities config.
|
|
7
|
-
* @returns tabs list.
|
|
8
|
-
*/
|
|
9
|
-
export function getEntityListTabs(entities: EntityConfig[]): Tab[] {
|
|
10
|
-
return entities.reduce(
|
|
11
|
-
(
|
|
12
|
-
acc: Tab[],
|
|
13
|
-
{
|
|
14
|
-
annotation,
|
|
15
|
-
label,
|
|
16
|
-
listView: { enableTab = true } = {},
|
|
17
|
-
route,
|
|
18
|
-
tabIcon: icon,
|
|
19
|
-
tabIconPosition: iconPosition,
|
|
20
|
-
}
|
|
21
|
-
) => {
|
|
22
|
-
if (enableTab) {
|
|
23
|
-
acc.push({
|
|
24
|
-
annotation,
|
|
25
|
-
icon,
|
|
26
|
-
iconPosition,
|
|
27
|
-
label,
|
|
28
|
-
value: route,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return acc;
|
|
32
|
-
},
|
|
33
|
-
[]
|
|
34
|
-
);
|
|
35
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Router from "next/router";
|
|
2
|
-
import React, { useCallback, useMemo } from "react";
|
|
3
|
-
import { useConfig } from "../../../../hooks/useConfig";
|
|
4
|
-
import { useExploreState } from "../../../../hooks/useExploreState";
|
|
5
|
-
import { Tabs as DXTabs, TabValue } from "../../../common/Tabs/tabs";
|
|
6
|
-
import { getEntityListTabs } from "./common/utils";
|
|
7
|
-
|
|
8
|
-
export const Tabs = (): JSX.Element | null => {
|
|
9
|
-
const { config } = useConfig();
|
|
10
|
-
const { exploreState } = useExploreState();
|
|
11
|
-
const { entities } = config;
|
|
12
|
-
const { tabValue } = exploreState;
|
|
13
|
-
const tabs = useMemo(() => getEntityListTabs(entities), [entities]);
|
|
14
|
-
|
|
15
|
-
// Callback fired when selected tab value changes.
|
|
16
|
-
const onTabChange = useCallback(async (tabValue: TabValue): Promise<void> => {
|
|
17
|
-
await Router.push(`/${tabValue}`);
|
|
18
|
-
}, []);
|
|
19
|
-
|
|
20
|
-
if (tabs.length <= 1) return null;
|
|
21
|
-
|
|
22
|
-
return <DXTabs onTabChange={onTabChange} tabs={tabs} value={tabValue} />;
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { composeStories, Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import * as summaryStories from "../components/Hero/components/Summaries/stories/summaries.stories";
|
|
4
|
-
import { Index } from "../index";
|
|
5
|
-
|
|
6
|
-
const { Default: Summaries } = composeStories(summaryStories);
|
|
7
|
-
|
|
8
|
-
const meta: Meta<typeof Index> = {
|
|
9
|
-
component: Index,
|
|
10
|
-
parameters: { layout: "fullscreen" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default meta;
|
|
14
|
-
|
|
15
|
-
type Story = StoryObj<typeof meta>;
|
|
16
|
-
|
|
17
|
-
export const Default: Story = {
|
|
18
|
-
args: {
|
|
19
|
-
Summaries: <Summaries />,
|
|
20
|
-
Tabs: undefined,
|
|
21
|
-
title: "Explore Data",
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Pagination } from "./pagination";
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
argTypes: {
|
|
6
|
-
canNextPage: { control: "boolean" },
|
|
7
|
-
canPreviousPage: { control: "boolean" },
|
|
8
|
-
currentPage: { control: "number" },
|
|
9
|
-
onNextPage: { action: "nextPage" },
|
|
10
|
-
onPreviousPage: { action: "previousPage" },
|
|
11
|
-
totalPage: { control: "number" },
|
|
12
|
-
},
|
|
13
|
-
component: Pagination,
|
|
14
|
-
title: "Components/Table",
|
|
15
|
-
} satisfies Meta<typeof Pagination>;
|
|
16
|
-
|
|
17
|
-
export default meta;
|
|
18
|
-
|
|
19
|
-
type Story = StoryObj<typeof meta>;
|
|
20
|
-
|
|
21
|
-
export const PaginationStory: Story = {
|
|
22
|
-
args: {
|
|
23
|
-
canNextPage: true,
|
|
24
|
-
canPreviousPage: false,
|
|
25
|
-
currentPage: 1,
|
|
26
|
-
onNextPage: () => {},
|
|
27
|
-
onPreviousPage: () => {},
|
|
28
|
-
totalPage: 25,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import styled from "@emotion/styled";
|
|
2
|
-
import { TABLET } from "../../../../theme/common/breakpoints";
|
|
3
|
-
|
|
4
|
-
export const Pagination = styled.div`
|
|
5
|
-
align-items: center;
|
|
6
|
-
background-color: ${({ theme }) => theme.palette.common.white};
|
|
7
|
-
color: ${({ theme }) => theme.palette.ink.main};
|
|
8
|
-
display: flex;
|
|
9
|
-
gap: 16px;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
padding: 20px;
|
|
12
|
-
|
|
13
|
-
${({ theme }) => theme.breakpoints.up(TABLET)} {
|
|
14
|
-
justify-content: flex-start;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { EastRounded, WestRounded } from "@mui/icons-material";
|
|
2
|
-
import { Typography } from "@mui/material";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { TEST_IDS } from "../../../../tests/testIds";
|
|
5
|
-
import { IconButton } from "../../../common/IconButton/iconButton";
|
|
6
|
-
import { Stack } from "../../../common/Stack/stack";
|
|
7
|
-
import { Pagination as TablePagination } from "./pagination.styles";
|
|
8
|
-
|
|
9
|
-
export interface PaginationProps {
|
|
10
|
-
canNextPage?: boolean;
|
|
11
|
-
canPreviousPage?: boolean;
|
|
12
|
-
currentPage: number;
|
|
13
|
-
onNextPage: () => void;
|
|
14
|
-
onPreviousPage: () => void;
|
|
15
|
-
totalPage: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const Pagination = ({
|
|
19
|
-
canNextPage = true,
|
|
20
|
-
canPreviousPage = true,
|
|
21
|
-
currentPage,
|
|
22
|
-
onNextPage,
|
|
23
|
-
onPreviousPage,
|
|
24
|
-
totalPage,
|
|
25
|
-
}: PaginationProps): JSX.Element => {
|
|
26
|
-
return (
|
|
27
|
-
<TablePagination data-testid={TEST_IDS.TABLE_PAGINATION}>
|
|
28
|
-
<div data-testid={TEST_IDS.TABLE_PAGINATION_PAGE}>
|
|
29
|
-
<Typography variant="text-body-400">Page </Typography>
|
|
30
|
-
<Typography variant="text-body-500">
|
|
31
|
-
{currentPage} of {totalPage}
|
|
32
|
-
</Typography>
|
|
33
|
-
</div>
|
|
34
|
-
<Stack direction="row" gap={2}>
|
|
35
|
-
<IconButton
|
|
36
|
-
color="secondary"
|
|
37
|
-
disabled={!canPreviousPage}
|
|
38
|
-
Icon={WestRounded}
|
|
39
|
-
onClick={onPreviousPage}
|
|
40
|
-
/>
|
|
41
|
-
<IconButton
|
|
42
|
-
color="secondary"
|
|
43
|
-
disabled={!canNextPage}
|
|
44
|
-
Icon={EastRounded}
|
|
45
|
-
onClick={onNextPage}
|
|
46
|
-
/>
|
|
47
|
-
</Stack>
|
|
48
|
-
</TablePagination>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Row, RowData } from "@tanstack/react-table";
|
|
2
|
-
import { useWindowVirtualizer } from "@tanstack/react-virtual";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { VIRTUALIZER_OPTIONS } from "./constants";
|
|
5
|
-
import { UseVirtualizer } from "./types";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A hook to create and manage TanStack window virtualizer for table rows.
|
|
9
|
-
* @param rows - Rows.
|
|
10
|
-
* @returns An object containing the virtualizer instance, which manages the visible rows.
|
|
11
|
-
*/
|
|
12
|
-
export function useVirtualizer<T extends RowData>(
|
|
13
|
-
rows: Row<T>[]
|
|
14
|
-
): UseVirtualizer {
|
|
15
|
-
const estimateSize = useCallback(() => 100, []);
|
|
16
|
-
const count = rows.length;
|
|
17
|
-
const virtualizer = useWindowVirtualizer({
|
|
18
|
-
...VIRTUALIZER_OPTIONS,
|
|
19
|
-
count,
|
|
20
|
-
estimateSize,
|
|
21
|
-
});
|
|
22
|
-
return { virtualizer };
|
|
23
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { composeStories } from "@storybook/react";
|
|
2
|
-
import { render, screen } from "@testing-library/react";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { VIEW_MODE } from "../src/components/Index/components/EntitiesView/hooks/UseEntitiesView/types";
|
|
5
|
-
import * as stories from "../src/components/Index/components/EntitiesView/stories/entitiesView.stories";
|
|
6
|
-
import { TEST_IDS } from "../src/tests/testIds";
|
|
7
|
-
|
|
8
|
-
const { Default } = composeStories(stories);
|
|
9
|
-
|
|
10
|
-
describe("EntitiesView", () => {
|
|
11
|
-
it("renders correctly", () => {
|
|
12
|
-
render(<Default />);
|
|
13
|
-
const viewEl = screen.getByTestId(TEST_IDS.ENTITIES_VIEW);
|
|
14
|
-
expect(viewEl).not.toBeNull();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it("does not render toggle buttons when disabled", () => {
|
|
18
|
-
render(<Default />);
|
|
19
|
-
const viewEl = screen.getByTestId(TEST_IDS.ENTITIES_VIEW);
|
|
20
|
-
const buttonsEl = viewEl.getElementsByClassName("MuiToggleButton-root");
|
|
21
|
-
expect(buttonsEl.length).toEqual(0);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it("renders toggle buttons when enabled", () => {
|
|
25
|
-
render(
|
|
26
|
-
<Default viewMode={VIEW_MODE.TABLE} viewStatus={{ disabled: false }} />
|
|
27
|
-
);
|
|
28
|
-
const viewEl = screen.getByTestId(TEST_IDS.ENTITIES_VIEW);
|
|
29
|
-
const buttonsEl = viewEl.getElementsByClassName("MuiToggleButton-root");
|
|
30
|
-
expect(buttonsEl.length).toEqual(2);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
File without changes
|
/package/lib/components/Index/components/{Tabs → EntityView/components/navigation/Tabs}/tabs.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/components/{Index/components/EntitiesView → Table/components/TablePagination}/types.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|