-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix-hover-tooltip
- Loading branch information
Showing
28 changed files
with
619 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 13 additions & 7 deletions
20
...mponents/data-table/hooks/useLightbox.tsx → ...c/core/components/common/use-lightbox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 65 additions & 66 deletions
131
packages/geoview-core/src/core/components/data-table/data-table-style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,77 @@ | ||
import { Theme } from '@mui/material'; | ||
|
||
// ? I doubt we want to define an explicit type for style properties? | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export const getSxClasses = (theme: Theme): any => ({ | ||
dataPanel: { background: theme.palette.geoViewColor.bgColor.main, paddingBottom: '1rem' }, | ||
gridContainer: { paddingLeft: '1rem', paddingRight: '1rem' }, | ||
selectedRows: { | ||
transition: 'box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms', | ||
fontWeight: 400, | ||
fontSize: theme.palette.geoViewFontSize.sm, | ||
linHeight: 1.43, | ||
letterSpacing: '0.01071em', | ||
display: 'flex', | ||
padding: '6px', | ||
}, | ||
selectedRowsDirection: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}, | ||
tableCell: { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden' }, | ||
dataTableWrapper: { | ||
'& .MuiTableContainer-root': { | ||
borderRadius: '6px', | ||
export const getSxClasses = (theme: Theme) => | ||
({ | ||
dataPanel: { background: theme.palette.geoViewColor.bgColor.main, paddingBottom: '1rem' }, | ||
gridContainer: { paddingLeft: '1rem', paddingRight: '1rem' }, | ||
selectedRows: { | ||
transition: 'box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms', | ||
fontWeight: 400, | ||
fontSize: theme.palette.geoViewFontSize.sm, | ||
linHeight: 1.43, | ||
letterSpacing: '0.01071em', | ||
display: 'flex', | ||
padding: '6px', | ||
}, | ||
'& .MuiToolbar-root ': { | ||
borderRadius: '6px', | ||
selectedRowsDirection: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}, | ||
}, | ||
filterMap: { | ||
'& .Mui-checked': { | ||
'& .MuiTouchRipple-root': { | ||
color: theme.palette.action.active, | ||
tableCell: { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden' }, | ||
dataTableWrapper: { | ||
'& .MuiTableContainer-root': { | ||
borderRadius: '6px', | ||
}, | ||
}, | ||
'& .MuiTouchRipple-root': { | ||
color: theme.palette.geoViewColor.grey.dark[900], | ||
}, | ||
}, | ||
tableHeadCell: { | ||
'& .MuiCollapse-wrapperInner': { | ||
'& .MuiBox-root': { | ||
gridTemplateColumns: '1fr', | ||
'& .MuiToolbar-root ': { | ||
borderRadius: '6px', | ||
}, | ||
}, | ||
'& .MuiInput-root': { fontSize: theme.palette.geoViewFontSize.sm, '& .MuiSvgIcon-root': { width: '0.75em', height: '0.75em' } }, | ||
'& .MuiBadge-root': { | ||
marginLeft: '0.5rem', | ||
'>span': { | ||
width: '100%', | ||
filterMap: { | ||
'& .Mui-checked': { | ||
'& .MuiTouchRipple-root': { | ||
color: theme.palette.action.active, | ||
}, | ||
}, | ||
svg: { | ||
marginTop: '0.25rem', | ||
marginBottom: '0.25rem', | ||
'& .MuiTouchRipple-root': { | ||
color: theme.palette.geoViewColor.grey.dark[900], | ||
}, | ||
'& .keyboard-focused': { | ||
backgroundColor: 'rgba(81, 91, 165, 0.08)', | ||
borderRadius: '50%', | ||
border: `1px solid black !important`, | ||
'> svg': { | ||
opacity: 1, | ||
}, | ||
tableHeadCell: { | ||
'& .MuiCollapse-wrapperInner': { | ||
'& .MuiBox-root': { | ||
gridTemplateColumns: '1fr', | ||
}, | ||
}, | ||
'& .MuiInput-root': { fontSize: theme.palette.geoViewFontSize.sm, '& .MuiSvgIcon-root': { width: '0.75em', height: '0.75em' } }, | ||
'& .MuiBadge-root': { | ||
marginLeft: '0.5rem', | ||
'>span': { | ||
width: '100%', | ||
}, | ||
svg: { | ||
marginTop: '0.25rem', | ||
marginBottom: '0.25rem', | ||
}, | ||
'& .keyboard-focused': { | ||
backgroundColor: 'rgba(81, 91, 165, 0.08)', | ||
borderRadius: '50%', | ||
border: `1px solid black !important`, | ||
'> svg': { | ||
opacity: 1, | ||
}, | ||
}, | ||
}, | ||
}, | ||
dataTableInstructionsTitle: { | ||
fontSize: theme.palette.geoViewFontSize.lg, | ||
fontWeight: '600', | ||
lineHeight: '1.5em', | ||
}, | ||
dataTableInstructionsBody: { | ||
fontSize: theme.palette.geoViewFontSize.sm, | ||
}, | ||
rightPanelContainer: { | ||
overflowY: 'auto', | ||
color: theme.palette.geoViewColor.textColor.main, | ||
}, | ||
}, | ||
dataTableInstructionsTitle: { | ||
fontSize: theme.palette.geoViewFontSize.lg, | ||
fontWeight: '600', | ||
lineHeight: '1.5em', | ||
}, | ||
dataTableInstructionsBody: { | ||
fontSize: theme.palette.geoViewFontSize.sm, | ||
}, | ||
rightPanelContainer: { | ||
overflowY: 'auto', | ||
color: theme.palette.geoViewColor.textColor.main, | ||
}, | ||
}); | ||
} as const); |
Oops, something went wrong.